Results 1 to 3 of 3

Thread: Pixelating Image slideshow

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pixelating Image slideshow

    IS there a way to set it up to open in a different frame or a new window. Sorry if there is allready a thread on this but didnt see one.

    script link: http://www.dynamicdrive.com/dynamicindex14/pixelate.htm

    I found this link but it still only opens in the same window frame.
    http://www.dynamicdrive.com/forums/s...ght=Pixelating
    Last edited by Darksaint; 03-31-2006 at 07:28 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, here is where the link is activated:

    Code:
    function gotoshow(){
    window.location=slidelinks[whichlink]
    }
    You can use the window.open() method to force all links to a new window:

    Code:
    function gotoshow(){
    window.open(slidelinks[whichlink])
    }
    Or use a frame name:

    Code:
    function gotoshow(){
    frameName.location=slidelinks[whichlink]
    }
    But you may need to use top or parent:

    Code:
    function gotoshow(){
    parent.frameName.location=slidelinks[whichlink]
    }
    I think ddadmin and possibly I each worked out a way to modify either the image and/or link array so that each could have a custom opening method. I'll look around and see if I can find one of those threads.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I couldn't find it so, you could use this as your link array (comments green):

    Code:
    var slidelinks=new Array();
    slidelinks[0]=["http://www.dynamicdrive.com", "_new"] // syntax for new window
    slidelinks[1]=["http://google.com", "main"] // syntax for frame named 'main'
    slidelinks[2]=["http://www.geocities.com", ""] // syntax for same window or frame as script
    and this for the gotoshow() function:

    Code:
    function gotoshow(){
    if (slidelinks[whichlink][1]=='_new')
    window.open(slidelinks[whichlink][0])
    else if (slidelinks[whichlink][1]!='')
    parent[slidelinks[whichlink][1]].location=slidelinks[whichlink][0]
    else
    window.location=slidelinks[whichlink][0]
    }
    Last edited by jscheuer1; 03-31-2006 at 07:58 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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