help wid JS urgently

Status
Not open for further replies.

noobie4q

Right off the assembly line
Okay, here goes. I got the script below from the internet. It creates a slideshow with clickable images. Each image in the slideshow can be the link to a unique URL. Problem is, when I click on an image, the target URL opens in a new window, which I don't want.

Is there anyway to tweak it?




<!--Hide from old browsers

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>



<!--

//configure the paths of the images, plus corresponding target links
slideshowimages("photo01.jpg","photo02.jpg","photo03.jpg","photo04.jpg","photo05.jpg")
slideshowlinks("blooming.jpg","*food.epicurious.com/run/recipe/view?id=10092","*food.epicurious.com/run/recipe/view?id=100975","*food.epicurious.com/run/recipe/view?id=2876","*food.epicurious.com/run/recipe/view?id=20010")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2500

var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages>
__________
someone plzzzzzz reply.........its very urgent.
 
Last edited:

Pathik

Google Bot
i dunno much but u can try this....
<!--Hide from old browsers

var slideimages=Array()
var slidelinks=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>



<!--

//configure the paths of the images, plus corresponding target links
slideshowimages("photo01.jpg","photo02.jpg","photo 03.jpg","photo04.jpg","photo05.jpg")
slideshowlinks("blooming.jpg","*food.epicurious.com/run/recipe/view?id=10092","*food.epicurious.com/run/recipe/view?id=100975","*food.epicurious.com/run/recipe/view?id=2876","*food.epicurious.com/run/recipe/view?id=20010")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2500

var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages>
__________
someone plzzzzzz reply.........its very urgent.
__________
and m not sure it ll work... but u can try it...
 
Last edited:
OP
N

noobie4q

Right off the assembly line
it did not work..............some plz look into this..........
__________
doesnt anyone know Java script???
 
Last edited:
OP
N

noobie4q

Right off the assembly line
That was the full script. I saved it as an external script file.

In the HTML file, I just added the following coding:


Quote:
<a><img></a>
<script></script>
 
Status
Not open for further replies.
Top Bottom