Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Modify javaScript to open external window

    I am using a image rotator java script that allows the user to click on a link to change the set of images that is rotating. The script also allows the user to click the image and be redirected to a url. In my case I would like the link to go to a larger view of the image.

    Can someone tell me how to modify this code so that the image displays in a seperate browser window when clicked on ?

    See: File attached ...
    Attached Files Attached Files

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could use ImagePOP!

    Original version: http://www.codingforums.com/showthre...&threadid=9836

    My (slightly better ) version: http://host44.ipowerweb.com/~skyzyxc...s/imagepop.htm

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Atlanta, GA.
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can change this

    function clickredir(){
    window.location=slidelinks[maininc][subinc]
    }

    to this

    function clickredir(){
    window.open( slidelinks[maininc][subinc] );
    }

    If you use the script by Skyzyx (which opens the window, resizes it to the exact dimensions of the image and centers the window for a much better presentation) then change it to this.

    function clickredir(){
    imgPop( slidelinks[maininc][subinc] );
    }

  • #4
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks Roy W and Skyzyx !

    Roy W and Skyzyx are masters !

    Thanks for the help guys...exactly what i needed.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •