Closed Thread Icon

Topic awaiting preservation: Refreshing a image (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8861" title="Pages that link to Topic awaiting preservation: Refreshing a image (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Refreshing a image <span class="small">(Page 1 of 1)</span>\

 
name
Obsessive-Compulsive (I) Inmate

From:
Insane since: Sep 2003

posted posted 09-17-2003 13:28

Hello !
I have seen somewhere on ozones site a bunch of pictures which where automaicily change. How did he do that and where did they go. They were betuifull nature picture probably from Sthlm (skärgård)

The function that the user could look at it for twenty seconds and then the it went to next picture
As you might understand of my question i am not a genius on html and java and so on.....

velvetrose
Paranoid (IV) Inmate

From: overlooking the bay
Insane since: Apr 2001

posted posted 09-17-2003 13:39

welcome to the asylum
visit our :FAQ: reception room
and for the answer to your question: :FAQ:



bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-18-2003 01:13

Someone plz send to DHTML.


code:
<html>
<head>
<script language="javascript">
// just keep adding images in the same format
// Image 0 should be the same image that you start
// with in the Image tag

imgs[0] = "image1.gif";
imgs[1] = "image2.gif";
imgs[2] = "image3.gif";
imgs[3] = "image4.gif";
imgs[4] = "image5.gif";
imgs[5] = "image6.gif";
imgs[6] = "image7.gif";
imgs[7] = "image8.gif";
// ...etc..


// Set the number of seconds you want to delay here


// Nothing from here down needs to change
delay = 20;
function init() {

delay = delay * 1000;
count = 0;
slideshow();
}
function slideshow() {
count++;
if (count == imgs.length) count = 0;
document.images['slide'].src = imgs[count];
setTimeout('slideshow()',delay);
}


</script>
</head>
<body onLoad="init()">
<img name="slide" src="image1.gif">

</body>
</html>





.:[ Never resist a perfect moment ]:.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-18-2003 09:51

I'm moving this to DHTML forum...


« BackwardsOnwards »

Show Forum Drop Down Menu