WebSiteMadeEasy.net
|
FontsMadeEasy.com
|
RankChecker.net
Google Search:
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advance Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Random Colors
[View Sample]
Every times a visitor comes to webpage with this JavaScript in effect, they get a different foreground and background color. However, occassionally you do get a background and foreground color that makes your text unreadable.
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function rnd(scale) { var dd=new Date(); return((Math.round(Math.abs(Math.sin(dd.getTime()))*1000000000)%scale)); } function show() { document.blah.bg.value=document.bgColor; document.blah.fg.value=document.fgColor; } document.fgColor=256*rnd(255)+16*rnd(255)+rnd(255); document.bgColor=256*rnd(255)+16*rnd(255)+rnd(255); // End --> </SCRIPT>
Insert into <BODY>
<CENTER> <a href="javascript:history.go(0)">Click here to get new colors</a> </center> <FORM name=blah> <table border=0 width=100%><tr><td align=left>Foreground color</td> <TD align=right>Background color</TD> </TR> <TR> <TD align=left> <input type=text name=fg> </TD> <TD align=right> <input type=text name=bg> </TD> </TR> </TABLE> </FORM> </CENTER>
Other Options