|
-
Feb 22nd, 2003, 08:51 AM
#1
Thread Starter
Fanatic Member
changing background image..
Hi,
I want my background imahe change everytime I re-enter my web site....could you help me?
thanks
-
Feb 22nd, 2003, 09:29 AM
#2
Create an array, like
bgimgs[1] = 'first.gif';
bgimgs[2] = 'thirty.gif';
bgimgs[32] = 'nine.gif';
Now, everytime the page loads, select a random number, get it's corresponding value in the array and
<body onLoad="document.body.background = bgimgs[rndm];">
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|