|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi! There's this site I'm working on and in Windows Netscape and IE there's these popup windows (let's call them popup 1) that have a link.
But when you click on it there's no scroll bar, so I wanted to have the link close 'popup 1' and open it to a new (same size) popup window. Does anyone know a code to help with this? ~Luna Code |
|
#2
|
||||
|
||||
|
<script>
//Modeless window script- By DynamicDrive.com //for full source code and terms of use //visit http://www.dynamicdrive.com function modelesswin(url,mwidth,mheight){ if (document.all&&window.print) //if ie5 eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")') else eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")') } </script> Links, or window.location('<same thing as below>'): <a href="javascript:modelesswin('popup2',screen.availHieght,screen.availWidth)">Whatever</a> I'm not sure exactly what you mean, but I think that this may help. You can always mod it. |
|
#3
|
||||
|
||||
|
bad polyesterhat for propagating those nasty pop-ups.
There is a reason why I use Safari. |
|
#4
|
||||
|
||||
|
Well, then I have no Idea what luna_code meant in the first place, ALL HAIL SAFARI
|
|
#5
|
||||
|
||||
|
safari?
|
|
#6
|
||||
|
||||
|
For Mac OSX, it has a nice little popup blocker.
|
|
#7
|
||||
|
||||
|
Ah. That would explain why I've never heard of it
![]() |
|
#8
|
||||
|
||||
|
yep, Safari still doesn't handle all CSS correctly, but I only know of a couple websites it is not compatable with. Plus I forget about popups now, so when I surf on my XP box at work, I get nasty surprises.
I was just joking around about the popup thingy, btw. thought it would be a wiseass remark. Nice to see I am not the only OSX user around this place. |
|
#9
|
||||
|
||||
|
There are a lot of things safari has yet to do right. In lght of that, I just use IE on my mac, the mac version of it is better than the XP one anyway.
![]() Jeez, we haven't even answered the thread question.
__________________
I can do all things through Christ which strengtheneth me. ~Phil. 4:13 |
|
#10
|
|||
|
|||
|
I do think I asked about popup ads... but the little things bug me so much! ^^;
But about my question, I'd show you a sample but that would take to long. So just visit the site (URL) Go to the bottom to where there are four links (ADVERTISING, SUBSCRIPTIONS, DISTRIBUTION and EDITORIAL) click on one (doesn't matter which one) then there should be a gif blinking back and forth, click the link (it says 'Presentation Kit).... NOW! This is where I want it to open in a new window, AND close itself. The reason for this is cuz in 'Windows' the presentation link has no scroll bar. But if no one can help, I'm sure I'll find some other way. OK, I've taken up to much time.... ~Luna Code |
|
#11
|
||||
|
||||
|
for the link (presentation kit), you might put target="_blank" ahref="preskit;window.close()", or, if you are using modeless window, just include that , and have it link to a modeless window, then in the script after it calls eval(), put window.close(). If this does not work, then I do not understand what you mean.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Popups |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|