![]() 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: |
![]() 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 |
![]() Use the search Luke, use the search! |
Nervous Wreck (II) Inmate From: |
![]() Thanks for the link! |
Nervous Wreck (II) Inmate From: |
![]() 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: |
![]() Sorry, same script, but easier to read code: <script type="text/javascript">
|
Paranoid (IV) Inmate From: France |
![]() Use the |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() EvilEgg, |
Paranoid (IV) Inmate From: France |
![]() 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. |