Jump to content

Link to be removed in slide show


vikaspa

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.