keissfootball
10-12-2006, 02:37 PM
Hi! Is it possible to create a popup that won't be blocked? It's extremely important to me at this time.
|
||||
popup that is not blocked ???keissfootball 10-12-2006, 02:37 PM Hi! Is it possible to create a popup that won't be blocked? It's extremely important to me at this time. Bill Posters 10-12-2006, 02:48 PM Popups triggered by a manual user action, such as onclick, typically aren't blocked. That said, it's always possible that some users may have settings which specify that all attempts at triggering a new window are to be blocked (or rerouted). It's considered wise (and user-friendly) not to put anything absolutely critical into a new window. keissfootball 10-12-2006, 03:00 PM My popup works on the onload event, so it's blocked. Not every user know how to show this popup even it is disabled, so I'm trying to find a some way... I found a code, here: <html> <head> <style type="text/css"> html, body, #wrap { height:100% ; margin:0 ; overflow:hidden ; padding:0 ; width:100% } a img { border:none } a { text-decoration:none } p { margin:0 ; padding:.5em 0 } #wrap { background:#FFF ; color:#000 ; overflow:auto } #wrap2 { padding-top:21px } #pop { background:#DEDEFF ; border:2px solid #039 ; color:#000 ; left:100px ; position:absolute ; top:100px ; visibility:hidden ; width:200px } #pop div { font-weight:bold ; text-align:right } #close { background:#808080 ; font-weight:bold ; position:absolute ; right:0 ; text-align:right ; width:100% } #close a span, #pop div a span { background:#C00 ; color:#FFF ; padding:0 .5em } </style> <script type="text/javascript"> function countdown() { setTimeout('pop()',90000); } function pop() { document.getElementById('pop').style.visibility = "visible"; setTimeout('popunder()',300); } function popunder() { document.getElementById('pop').style.visibility = "hidden"; } function toggle() { document.getElementById('close').style.display = "none"; document.getElementById('wrap').style.display = "none"; document.getElementById('pop').style.visibility = "visible"; } </script> </head> <body id="home" onload="javascript:toggle();"> <div id="close"><a href="javascript: self.close ()">X</a></div> <div id="pop"> <div><a href="javascript: self.close ()">X</a></div> <p>Content</p> <p>Content</p> <p>Content</p> <p>Content</p> </div> <div id="wrap"> <div id="wrap2"> </div> </div> </body> </html> the problem is that I can't figure out how to close this window? any ideas? Somehow I need to disable a popup showing function, is that possible? slef.close doesn't work :( |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum