help wid JS urgently

Discussion in 'Software Q&A' started by noobie4q, Aug 29, 2006.

Thread Status:
Not open for further replies.
  1. noobie4q

    noobie4q New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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","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: Aug 29, 2006
  2. Pathik

    Pathik Google Bot

    Joined:
    Aug 28, 2005
    Messages:
    9,747
    Likes Received:
    20
    Trophy Points:
    0
    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","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: Aug 29, 2006
  3. OP
    OP
    noobie4q

    noobie4q New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    it did not work..............some plz look into this..........
    __________
    doesnt anyone know Java script???
     
    Last edited: Aug 30, 2006
  4. OP
    OP
    noobie4q

    noobie4q New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    areey KOI TO BOLO.

    someone plz helpme solve this prob.
     
  5. iMav

    iMav The Devil's Advocate

    Joined:
    Mar 28, 2006
    Messages:
    7,004
    Likes Received:
    11
    Trophy Points:
    0
    Location:
    Masti Ki Paathshaala
    please use the code bbcodes and give entire script
     
  6. OP
    OP
    noobie4q

    noobie4q New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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>
     
Thread Status:
Not open for further replies.

Share This Page