View Full Version : Popup Window INSIDE Popup Window?
90210
07-21-2008, 11:36 PM
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. :rolleyes:
NOW!..the tricky part.
as you can see I am using
http://www.dynamicdrive.com/dynamicindex14/dropitslide.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! :D
THANKS!
Jesdisciple
07-22-2008, 05:23 AM
Have you, by any chance, looked here (http://dynamicdrive.com/dynamicindex8/index.html)?
jscheuer1
07-22-2008, 09:48 AM
If you are using:
http://www.dynamicdrive.com/dynamicindex14/dropitslide.htm
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), 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):
function rotatelink(){
window.location=droplinks[linkindex]
}
You can change it to:
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:
//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:
<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):
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)
}
}
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()
}
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.