'rules' Example : rules : Javascript Collections : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Javascript Collections   » [  rules  ]   
 



'rules' Example

Please note that some example is only working under IE or Firefox.

    
<html>
<head>
<style type="text/css" id="myStyle">
.rule1 font-family:Times New Roman; font-size:18pt; color:blue; }
.rule2 font-family:Verdana; color:red; }
.rule3 color:red; }
.rule4 font-family:Verdana; font-size:18pt;}
.rule5 font-size:18pt; color:red; }
.rule6 font-size:18pt; }
.rule7 font-family:Verdana; font-size:18pt;color:red; }

</style></head>
<body>
<button onclick="alert(document.styleSheets(0).rules.length);">
    Get number of rules
</button>

    
      
      
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.