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

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



Using Color Attributes

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


/*
Mastering JavaScript, Premium Edition
by James Jaworski 

ISBN:078212819X
Publisher Sybex CopyRight 2001
*/
<HTML>
<HEAD>
<TITLE>Changing Colors</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
document.fgColor="white"
document.linkColor="yellow"
// --></SCRIPT>
</HEAD>
<BODY>
<H1>Changing Colors</H1>
<P>This Web page shows how document colors can be changed.</P>
<P>Here is a <A HREF="nowhere">sample link</A>.</P>
<SCRIPT LANGUAGE="JavaScript"><!--
document.bgColor="black"
// --></SCRIPT>
</BODY>
</HTML>

           
       
Related examples in the same category
1.   Using Colors in JavaScript
2.  Code for the Actual JavaScript Code and Color Selectors
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.