r colors




JavaScript Source Code 3000: BG Effects: Random Colors


































Random Colors








Every times a visitor comes to a page with this script 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.





Random colors

Click here to get new colors


Foreground color
Background color















JavaScript Source Code 3000: BG Effects: Blinker
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!




    





<!-- TWO STEPS TO INSTALL RANDOM COLORS:

1. Paste the first code into the HEAD of your HTML document
2. Put the last coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- 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>

<!-- STEP TWO: Paste this coding into the BODY of your HTML document -->

<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>



<!-- Script Size: 1.28 KB -->











Wyszukiwarka

Podobne podstrony:
COLORS
safe colors
option force hex style colors
hover colors
colors
Four Colors Gamemasters Guide
colors
alloc colors
2007 08 Common Colors Creating Icc Color Profiles with Argyll Cms
Autumn leaf colors
ColorSelectionModel
function ncurses use default colors
colors

więcej podobnych podstron