Topic awaiting preservation: Can i use javascript to load a diff. image everytime the page is loaded or refreshed? (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 08-22-2003 23:19
Can i use javascript to load a diff. image everytime the page is loaded or refreshed? And is it possible to do this with a script that works in IE5, IE6, NS4, NS6. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-22-2003 23:28
Use the search Luke, use the search! |
Nervous Wreck (II) Inmate From: |
posted 08-23-2003 05:17
Thanks for the link! |
Nervous Wreck (II) Inmate From: |
posted 08-23-2003 05:23
With the little knowlege i have of javascript i asume that this part goes into the <HEAD> tags code: <script type="text/javascript"><!--DocOzone's Javascript code, copyright 2000// Feel free to borrow and modify this code,// but be sure to leave this credit in the source!// Your pal, -Dr. Thaddeus Ozone-// [url=http://www.ozones.com/]http://www.ozones.com/[/url] // start random logo scriptlogonames = new Array ("gurus_logo_ozone2.jpeg","gurus_logo_ozone.jpeg","gurus_logo_ozone4.gif");rando = Math.round( Math.random() * (logonames.length - 1) )logoname = logonames[rando];document.write('<img src="http://gurusnetwork.com/images/logos/'+logoname+'" width="360" height="128" border="0" />');//--></script>
|
Nervous Wreck (II) Inmate From: |
posted 08-23-2003 05:28
Sorry, same script, but easier to read code: <script type="text/javascript">
|
Paranoid (IV) Inmate From: France |
posted 08-23-2003 06:17
Use the Edit/Delete button Luke. Use the Edit/Delete button. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-23-2003 10:11
EvilEgg, |
Paranoid (IV) Inmate From: France |
posted 08-23-2003 10:21
mr.maX: woops. As you said putting an IMG in the HEAD is ugly and IE nor Fb do bypass that method. But I haven't tried to set a DTD to see how behaves Fb. |