vikaspa Posted February 8, 2009 Share Posted February 8, 2009 Dear All I found this forum most beneficial and effective The slide show fiunction is in 2 parts following part is embeded in header <script language="JavaScript1.1"> <!-- /* JavaScript Image slideshow: By JavaScript Kit (www.javascriptkit.com) Over 200+ free JavaScript here! */ var slideimages=new Array() var slidelinks=new Array() function slideshowimages(){ for (i=0;i<slideshowimages.arguments.length;i++){ slideimages=new Image() slideimages.src=slideshowimages.arguments } } function slideshowlinks(){ for (i=0;i<slideshowlinks.arguments.length;i++) slidelinks=slideshowlinks.arguments } function gotoshow(){ if (!window.winslide||winslide.closed) winslide=window.open(slidelinks[whichlink]) else winslide.location=slidelinks[whichlink] winslide.focus() } //--> </script> The other part of javascript where the slide show happens is also given below <td width="35%" height="210" valign="top"> <?php if ($snimg[0]!='') { ?> <a href="javascript:gotoshow()"> <img src="<?php echo $snimg[0]; ?>" name="slide" border=0 width=200 height=200 vspace="5"></a> <?php } ?> <script> <!-- //configure the paths of the images, plus corresponding target links slideshowimages("<?php echo $snimg[0]; ?>","<?php echo $snimg[1]; ?>","<?php echo $snimg[2]; ?>","<?php echo $snimg[3]; ?>","<?php echo $snimg[0]; ?>") slideshowlinks("<?php echo $snlink[0]; ?>","<?php echo $snlink[1]; ?>","<?php echo $snlink[2]; ?>","<?php echo $snlink[3]; ?>","<?php echo $snlink[0] ; ?>") //slideshowlinks("<?php echo $snlink[0]; ?>","<?php echo $snlink[1]; ?>","<?php echo $snlink[2]; ?>","<?php echo $snlink[3]; ?>","<?php echo $snlink[0]; ?>") //configure the speed of the slideshow, in miliseconds var slideshowspeed=4000 var whichlink=0 var whichimage=0 function slideit(){ if (!document.images) return document.images.slide.src=slideimages[whichimage].src whichlink=whichimage if (whichimage<slideimages.length-1) whichimage++ else whichimage=0 setTimeout("slideit()",slideshowspeed) } slideit() //--> </script> Now the problem .. if the link is not given a blank page is opened up how to avoid opening of blank page Link to comment https://forums.phpfreaks.com/topic/144341-link-to-be-removed-in-slide-show/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.