Results 1 to 3 of 3

Thread: Ultimate Fade-In Slide Show -- link=pop up window?

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

    Default Ultimate Fade-In Slide Show -- link=pop up window?

    Hello,
    When I click on an image in my slideshow (uses Ultimate Fade-in Slide Show), a regular browser window comes up. How can I set the image link to create a pop-up window with no browser toolbar, a set width and no horiz. scrollbar?

    Thanks!
    Last edited by 1saucygirl; 06-02-2006 at 08:58 PM. Reason: answered own prev. question, here's another!

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

    Default

    That would involve changing this function in the script:

    Code:
    fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    picobj.innerHTML=slideHTML
    }
    See how it is building the slideHTML string and then populating the picobj with this generated code? You would need to substitute your desired code, something like:

    Code:
    fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML='<a href="'+this.theimages[picindex][1]+'" onclick="myWin(this.href);return false;">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    picobj.innerHTML=slideHTML
    }
    Then you then could have a function on your page called myWin, something like this:

    function myWin(url){
    window.open(url,'_blank','width=240, height=300, top=200, left=250')
    }

    Using whatever specifications you want for the new window.
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much! I'll give that a try.

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
  •