Public Voice Network
- water marks on letterhead…
- blog 3027330273
- serif fonts 55
- Volume One 1616
- QBN Spam Report 2020
- EC: Anthony Lister 66
- Cannonball's Classica… 22
- skulls 4747
- Ignore button please. 2525
- party @ simonyi's 11
- New XBox Live 4949
- FMT 112108 3131
- For a better tomorrow 2121
- FFFind me a FFFound 33
- What printer should i buy… 11
- New Bond "Quantum of… 7777
- EC: Joe Wigdahl 2828
- Portfolio online 1818
- thread killer 22082208
- Batesoling was fun 1111
- 10 Greatest Thinkers 121121
- Australia! 2525
- Your Christmas List 2525
- What are you listening to… 891891
Changing background images 55 Responses
Last post: 3 months, 3 weeks ago | Thread started: Jul 28, 08, 2:53 a.m.
- honest
Hi folks, annoying print designer here with a silly web question on behalf of my wife (Japanese) who is teaching herself web development:
She wants to be able to have different background images loading on each visitation on a homepage.
How best to apply simple code for this? Is this that CSS magic that I keep hearing of or the powerful flash-killer that is Javascript?- Jul 28, 08, 2:53 a.m. – Permalink
- omgitsacamera
Javascript


- Dog-earJul 28, 08, 2:55 a.m. – Permalink
- PSYKHO
This works:
<SCRIPT LANGUAGE="Javascript"><!-- function bkgrnd() {} ; bg = new bkgrnd () ; n = 0 bg[n++] = "images/Image1.gif" bg[n++] = "images/Image2.gif" bg[n++] = "images/Image3.gif" bg[n++] = "images/Image4.gif" bg[n++] = "images/Image5.gif" //Just keep adding rnd = Math.floor(Math.random() * n) ; tmp = '<BODY BACKGROUND="' +bg[rnd]+ '"' +' BGCOLOR="#FFFFFF">' //--></SCRIPT></HEAD> <SCRIPT LANGUAGE="Javascript"><!-- document.write( tmp ) //--></SCRIPT>

- Dog-earJul 28, 08, 2:59 a.m. – Permalink
- VectorMasked
what they said ^^^
Because is she was german, the method would be different; and if she was Portuguese it could simply not be done.
;o)

- Dog-earJul 28, 08, 3:02 a.m. – Permalink

