style sheets by resolution




JavaScript Source Code 3000: User Details: Style Sheets by Resolution










































Style Sheets by Resolution







Loads a style sheet depending on the user's screen resolution. Includes a default size for Netscape users.









JavaScript Source Code 3000: User Details: Style Sheets by Resolution
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!





    





<!-- ONE STEP TO INSTALL STYLE SHEETS BY RESOLUTION:

1. Copy the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<!-- Set default stylesheet for Netscape users at 800 x 600 -->
<link rel="stylesheet" type="text/css" href="netscape.css">
<!-- Set variable stylesheets for Internet Explorer users -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Bob Pearson and Leah Murray (bob@pagecraft.on.ca) -->
<!-- Web Site: http://www.pagecraft.on.ca -->

<! >
<! >

<!-- Begin
//document.write('Your settings are ' + screen.width + ' x ' + screen.height + '');
if (screen.width == 640) {
document.write('<link rel="stylesheet" type="text/css" href="640.css">');
//alert("Style Sheet for 640 x 480 would have been loaded.");
}
if (screen.width == 800) {
document.write('<link rel="stylesheet" type="text/css" href="800.css">');
//alert("Style Sheet for 800 x 600 would have been loaded.");
}
if (screen.width == 1024) {
document.write('<link rel="stylesheet" type="text/css" href="1024.css">');
//alert("Style Sheet for 1024 x 768 would have been loaded.");
}
if (screen.width == 1280) {
document.write('<link rel="stylesheet" type="text/css" href="1280.css">');
//alert("Style Sheet for 1280 x 960 would have been loaded.");
}
if (screen.width == 1600) {
document.write('<link rel="stylesheet" type="text/css" href="1600.css">');
//alert("Style Sheet for 1600 x 1200 would have been loaded.");
}
// End -->
</script>




<!-- Script Size: 1.74 KB -->











Wyszukiwarka

Podobne podstrony:
Lolita and what can and what can t be done by style
Found And Downloaded by Amigo
kod z WOŚP polecane chomiki by closer9
Found And Downloaded by Amigo
Found And Downloaded by Amigo
resolution05
30 31 by darog83
style
edit style
Found And Downloaded by Amigo

więcej podobnych podstron