|
|
![]() |
|
Figure 1: Setting style rules for IE and Navigator. Continued from A Site for All Seasons
<html>
<head>
<style id="ssA" type="text/css"></style>
<script language="JavaScript">
<!--
if (document.all) {
document.styleSheets["ssA"].addRule ("h1", "color:blue");
document.styleSheets["ssA"].addRule ("h1", "font-size:50pt");
} else if (document.layers) {
document.tags.h1.color="blue";
document.tags.h1.fontSize="50pt";
}
// -->
</script>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
Next: Figure 2: Customizing a Web site based on window size. Published as Internet Builder in the 5/4/99 issue of PC Magazine. Related Links |
||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
| TOP | Copyright (c) 1999 Ziff-Davis Inc. |