Project

General

Profile

Feature #8776 » slide_show.html

Pablo Fiuza, 2011-07-11 01:26

 
1

    
2
<center>
3

    
4
<script language="JavaScript">
5
 //By Paul Davis - www.kaosweaver.com 
6
   var j,d="",l="",m="",p="",q="",z="",list= new Array()
7

    
8
   
9
    list[list.length]='http://codigofonte.net/img/2.gif';
10
  
11
    list[list.length]='http://codigofonte.net/img/banner468.gif';
12
  
13
    list[list.length]='http://codigofonte.net/img/banner120.gif';
14

    
15

    
16
   j=parseInt(Math.random()*list.length);
17
  j=(isNaN(j))?0:j;
18
    document.write("<img name='seqSlideShow' src='"+list[j]+"' border=0 >");
19
function seqSlideShow(t,l) {
20
  x=document.seqSlideShow;
21
  j=l;
22
  j++;
23
  if (j==list.length) j=0;
24
  x.src=list[j];
25
  setTimeout("seqSlideShow("+t+","+j+")",t);
26
  }
27
 </script>
28

    
29
<script language="JavaScript"> seqSlideShow(2000,0); </script>
30

    
31
</center>
32

    
(2-2/3)