What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » changing backgrounds in html?

changing backgrounds in html?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: changing backgrounds in html?
code:
<!-- 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">

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

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

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.28 KB  -->
08-03-2005 04:10 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
changing backgrounds in html? - by marissa on 08-03-2005 at 03:25 AM
RE: changing backgrounds in html? - by ShawnZ on 08-03-2005 at 03:28 AM
RE: changing backgrounds in html? - by marissa on 08-03-2005 at 03:42 AM
RE: changing backgrounds in html? - by YottabyteWizard on 08-03-2005 at 03:50 AM
RE: changing backgrounds in html? - by DJeX on 08-03-2005 at 03:59 AM
RE: changing backgrounds in html? - by ShawnZ on 08-03-2005 at 04:00 AM
RE: changing backgrounds in html? - by marissa on 08-03-2005 at 04:06 AM
RE: changing backgrounds in html? - by matty on 08-03-2005 at 04:10 AM
RE: changing backgrounds in html? - by surfichris on 08-03-2005 at 04:12 AM
RE: changing backgrounds in html? - by marissa on 08-03-2005 at 04:14 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On