raider
12-03-2003, 06:36 PM
I know how to make a random-image, but I have simply no idea how to make this work in the <BODY>.
Can somebody give me a hint?
Can somebody give me a hint?
|
Click to See Complete Forum and Search --> : Random Background-image raider 12-03-2003, 06:36 PM I know how to make a random-image, but I have simply no idea how to make this work in the <BODY>. Can somebody give me a hint? Paul Jr 12-03-2003, 06:47 PM Well, I Googled "Random Background Image" and clicked on the first link that came up. Which gave me this. (http://javascriptkit.com/script/cut176.shtml). That will change the background image every time you refresh the page. TheBearMay 12-03-2003, 06:52 PM Several ways, but the most direct is probably to use the onload event to set document.body.background to an image. pyro 12-03-2003, 09:08 PM I would recommend using something along the lines of what TheBearMay has suggested, rather than the script in the link PaulJr has posted, as that using JavaScript to write in the <body> element - not a good idea. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |