Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java link

  Asked By: David    Date: Jun 11    Category: Java    Views: 705
  

I have this web slide show that I really like, but it never ends.
After all the slides are shown it keeps on looping. Is there
something that I can add to the java script to end the slide show and
automatically return the viewer to my home page. The script for the
page looks like this: Thank you for your help.

<html><head></script>
<script language="JavaScript1.1">
var speed=2000
var slideimages =new Array
("images/a.jpg","images/b.jpg","images/c.jpg")
var slidelinks =new Array
("images/a.jpg","images/b.jpg","images/c.jpg")
var imagecontainer=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++)
{ imagecontainer[i]=new Image() imagecontainer[i].src=slideimages[i]}
function gotolink() {window.location=slidelinks[linkcount] }
var transcount=2 var x = new Array();
x[0] = {"q":"progid:DXImageTransform.Microsoft.RandomDissolve()"};
x[1] = {"q":"progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,
motion=in, duration=1)"};
x[2] = {"q":"progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,
motion=out, duration=1)"};
var i=0; function updateTrans()
{ if (i >= transcount){slide.style.filter=x[i].q; i=0; } else
{slide.style.filter=x[i].q; i++}}
//--></script>
<div align="center"><a href="javascript:gotolink()"> </a>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
height="100%" align="center">
<tr><td>
<div align="center"><a href="javascript:gotolink()"><img
src="images/a.jpg" name="slide" border=0
style="filter:progid:DXImageTransform.Microsoft.RadialWipe
(wipeStyle='clock')" width="640" height="480"></a></div>
</td></tr></table>
<div align="left"> <font size="1" face="Arial, Helvetica, sans-
serif">This slide
show was created with Web Slide Show - <a
href="http://www.digitalphotoslideshow.com">http://www.digitalphotosli
deshow.com</a></font>
<script language="JavaScript1.1">
<!--
var linkcount=0
var imagecount=0
function changeslide()
{
updateTrans()
if (!document.images) return
if (ie55) document.images.slide.filters[0].apply()
document.images.slide.src=imagecontainer[imagecount].src
if (ie55) document.images.slide.filters[0].play()
linkcount=imagecount
imagecount=(imagecount<slideimages.length-1)? imagecount+1 : 0
setTimeout("changeslide()",speed)
}
changeslide()
//-->
</script>
</div>
</div>
</body>
</html>

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Java link Or get search suggestion and latest updates.




Tagged: