is there a code or something that'll change your background on something in HTML nothing else, but i was just wondering. Probably not, since html is just basic stuff...but you never know. i just want to know so i can have an alternating background on my myspace (NOT msn's my spaces >.<)
This post was edited on 08-03-2005 at 03:26 AM by marissa.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
oh crap, maybe i worded that wrong..
like i want...say, a blue background *the person refreshes* a red background *refresh* a green background...etc. or would those codes still work? i dont know.
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
RE: changing backgrounds in html?
* ShawnZ claps for the people that told her what to do but not how to do it
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
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>
oh, i wasnt calling them losers I was calling myspace losers for not being able to use java, but i guess that's good in a way. it would muck peoples pages up to the point of...no return! dun dun dun