Click to See Complete Forum and Search --> : Help...


man
07-15-2003, 07:28 AM
How can i put Links behind the gif´s?

<script language="JavaScript">
var specifyimage=new Array() //Your images
specifyimage[0]="images/vivo.gif"
specifyimage[1]="images/wmp.gif"
specifyimage[2]="images/java.gif"

var delay=3000 //3 seconds
...
...
...

AdamGundry
07-15-2003, 07:45 AM
Huh? I take it this is a slideshow script and you want to hyperlink each image to something. We'll need the whole script.

Adam

man
07-15-2003, 08:09 AM
Originally posted by AdamGundry
Huh? I take it this is a slideshow script and you want to hyperlink each image to something. We'll need the whole script.

Adam

<script language="JavaScript">
var specifyimage=new Array() //Your images
specifyimage[0]="images/vivo.gif"
specifyimage[1]="images/wmp.gif"
specifyimage[2]="images/java.gif"

var delay=3000 //3 seconds

//Counter for array
var count =1;

var cubeimage=new Array()
for (i=0;i<specifyimage.length;i++){
cubeimage[i]=new Image()
cubeimage[i].src=specifyimage[i]
}

function movecube(){
if (window.createPopup)
cube.filters[0].apply()
document.images.cube.src=cubeimage[count].src;
if (window.createPopup)
cube.filters[0].play()
count++;
if (count==cubeimage.length)
count=0;
setTimeout("movecube()",delay)
}

window.onload=new Function("setTimeout('movecube()',delay)")
</script>

<img src="images/vivo.gif" name="cube" border=0 style="filter:progid:DXImageTransform.Microsoft.Stretch(stretchStyle='PUSH')" width="22" height="22">
<script language="JavaScript" type="text/javascript">
<!--
document.write(navigator.userAgent)
// -->
</script>