Using Colors in JavaScript : Color : Development : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Development   » [  Color  ]   
 



Using Colors in JavaScript

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


/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000

*/

<html>
<head>
  <title>JavaScript Unleashed</title>
</head>
<body>
   
  <h2>
    <script type="text/javascript">
    <!--
      document.writeln("Company Picnic!".fontcolor("crimson"));
    // -->
    </script>
  </h2>
  <h4>
    <script type="text/javascript">
    <!--
      document.writeln("July 19th at 1pm".fontcolor("blue"));
      document.writeln("<br>" "Bring your family!".fontcolor("#008000"));
    // -->
    </script>
  </h4></body>
</html>


           
       
Related examples in the same category
1.  Code for the Actual JavaScript Code and Color Selectors
2.  Using Color Attributes
3.  Using setInterval () to Repeatedly Change the Document Background Color
4.  Color Sampler
























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