Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 29-08-2006, 06:06 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2006
Posts: 4
Default help wid JS urgently


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[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

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","http://food.epicurious.com/run/recipe/view?id=10092","http://food.epicurious.com/run/recipe/view?id=100975","http://food.epicurious.com/run/recipe/view?id=2876","http://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 by noobie4q; 29-08-2006 at 06:06 PM. Reason: Automerged Doublepost
noobie4q is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 29-08-2006, 06:26 PM   #2 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: help wid JS urgently

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[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

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","http://food.epicurious.com/run/recipe/view?id=10092","http://food.epicurious.com/run/recipe/view?id=100975","http://food.epicurious.com/run/recipe/view?id=2876","http://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 by Pathik; 29-08-2006 at 06:26 PM. Reason: Automerged Doublepost
Pathik is offline  
Old 30-08-2006, 02:21 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2006
Posts: 4
Default Re: help wid JS urgently

it did not work..............some plz look into this..........
__________
doesnt anyone know Java script???

Last edited by noobie4q; 30-08-2006 at 02:21 PM. Reason: Automerged Doublepost
noobie4q is offline  
Old 31-08-2006, 09:24 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2006
Posts: 4
Default Re: help wid JS urgently

areey KOI TO BOLO.

someone plz helpme solve this prob.
noobie4q is offline  
Old 31-08-2006, 10:33 PM   #5 (permalink)
The Devil's Advocate
 
iMav's Avatar
 
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
Default Re: help wid JS urgently

please use the code bbcodes and give entire script
__________________
"The problem that shows up with the three red lights on the console is a complex interaction with some very complex parts.” - Robbie Bach

http://beingmanan.com
twitter: manan | Last.FM: manan
iMav is offline  
Old 31-08-2006, 10:41 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2006
Posts: 4
Default Re: help wid JS urgently

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>
noobie4q is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by ico
- by Tenida
- by gohan89
- by clinton

Advertisement




All times are GMT +5.5. The time now is 10:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2