Pop Ups: Advanced Options

HomeTutorialsForumWebwasp MembersTemplatesMatesFoodContact

 


Flash Tutorials

   

Flash - Pop Up Windows

 

Free Flash Pop Up Tutorial


Step 4    <<   Previous      Intro   1   2   3   4    >>       >>   Webwasp Mates

 

Step Four: Advance Options: By Rabid Lemming

A recent security flaw in windows service pack 2 now allows you to run a pop up code that will work against most popular pop up blockers. First add this to the head section of you web page with you flash movie on it:

<script type="text/javascript" language="javascript" src="blockbuster.js"></script>

Then create a new web page and replace all the html code with the following:

var win = null;
var g_fIssp2 = false;
g_fIssp2 = (window.navigator.userAgent.indexOf("SV1") != -1);
function shellscript1() {
win = window.open('http://www.YourWebSite.com/TheWebPage.html', 'mini', 'width=400,height=500,screenY=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0');
win.focus();
if (win && win.open) {
return true;
} else {
alert("\n_________________________________ \n\n"+" Your browser blocked the pop up window! \n\n"+" Please allow pop-ups on this site \n\n"+"_________________________________ \n\n");
return false;
}
}
function blockbuster1() {
if (g_fIssp2) {
x.DOM.Script.execScript(shellscript1.toString());
x.DOM.Script.execScript("shellscript1()");
} else {
win = window.open('http://www.YourWebSite.com/TheWebPage.html', 'mini', 'width=400,height=500,screenY=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0');
win.focus();
location.reload();
if (win && win.open) {
return true;
} else {
alert("\n_________________________________ \n\n"+" Your browser blocked the pop up window! \n\n"+" Please allow pop-ups on this site \n\n"+"_________________________________ \n\n");
return false;
}
}
}
defaultStatus = "http://www.YourWebSite.com";

Customize the script as required. The http://www.YourWebSite.com/TheWebPage.html is web url of the pop up window you want to pop up.

Save the page as: blockbuster.js

Then in flash use this code on your flash button:

on (release) {
getURL("javascript:blockbuster1()");
}

It probably wont be long before pop up blockers and Microsoft become wise to this but until they do enjoy the script.

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 4    <<   Previous      Intro   1   2   3   4    >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

Phil Schulz's Facebook profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.