Advanced Search

Results 1 to 3 of 3

Thread: Popup Window INSIDE Popup Window?

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Popup Window INSIDE Popup Window?

    i know its possible! (=
    but im having some trouble.

    URL - http://tinyurl.com/6mp9ue
    (click on the "ENTER our Virtual Chatroom" picture on the left for 1st popup window.)

    it should open ( http://tinyurl.com/5jtp3p ) in a small popup window.
    NOW!..the tricky part.
    as you can see I am using
    http://www.dynamicdrive.com/dynamici...ropitslide.htm
    for my slideshow (on the bottom portion of the popup)

    I would like each picture to open a separate popup without creating tabs. (firefox creates tabs.)
    i have tried all my resources..
    _blank
    _self
    _top
    none of them work.

    whenever i try to use "open()", the gallery does not show up. Im not advanced with anything so if you are going to leave some feedback please keep it simple!

    THANKS!

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Have you, by any chance, looked here?

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,694
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    If you are using:

    http://www.dynamicdrive.com/dynamici...ropitslide.htm

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    Fix that up please. But it doesn't look like that's the script you are using. It looks like another DD script though, or possibly an older version of Drop-in Slideshow Script.

    If it is a DD script though, you do need to include the credit in the source code of the page and in the external script file.

    To answer your question, here is where you should edit (assuming that you haven't already radically altered what happens when an image in the slideshow is clicked):

    Code:
    function rotatelink(){
    window.location=droplinks[linkindex]
    }
    You can change it to:

    Code:
    function rotatelink(){
    window.open(droplinks[linkindex], '_blank', 'top=50, left=100, width=250, height=400');
    }
    For the highlighted area you can use whatever window.open() specifications you prefer, what I used there is just an example.

    Added Later:

    I looked over what you are using for this script a bit more and see that there is a credit:

    Code:
    //Drop-in slideshow II (hyperlinked)- By Dynamic Drive
    //visit http://www.dynamicdrive.com
    It was just that it wasn't at the top of the script, that's why I missed it. The DD usage terms state though that it must also appear on the page:

    Code:
    <script type="text/javascript" src="http://thenext2shine.com/N2S/templates/ja_corona/js/custom/image_slide_chat.js">
    //Drop-in slideshow II (hyperlinked)- By Dynamic Drive
    //visit http://www.dynamicdrive.com
    </script>
    And I see that the advice I gave you isn't going to work without further modification. These lines also need to be changed (highlighted):

    Code:
    function movepic(){
    if (curpos<0){
    curpos=Math.min(curpos+degree,0)
    tempobj.style.top=curpos+"px"
    }
    else{
    clearInterval(dropslide)
    nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
    tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
    tempobj.innerHTML='<a href="'+droplinks[curimageindex]+'" onclick="rotatelink();return false;"><img src="'+dropimages[curimageindex]+'" border=0></a>'
    nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0
    setTimeout("rotateimage()",pause)
    }
    }
    Code:
    function startit(){
    var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'" onclick="rotatelink();return false;"><img src="'+dropimages[curimageindex]+'" border=0></a>'
    rotateimage()
    }
    Last edited by jscheuer1; 07-22-2008 at 03:08 PM. Reason: add info
    - 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
  •