DIGIT-ARC read-only archive · snapshot: July 23, 2026

help wid JS urgently

6 posts · originally from https://geek.digit.in/community/threads/help-wid-js-urgently.35192/

N
noobie4q Original post #1
Aug 29, 2006 at 6:06 PM
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.
Pathik
Pathik #2
Aug 29, 2006 at 6:26 PM
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...
N
Aug 30, 2006 at 2:21 PM
it did not work..............some plz look into this..........
__________
doesnt anyone know Java script???
N
Aug 31, 2006 at 9:24 PM
areey KOI TO BOLO.

someone plz helpme solve this prob.
iMav
iMav #5
Aug 31, 2006 at 10:33 PM
please use the code bbcodes and give entire script
N
Aug 31, 2006 at 10:41 PM
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>