|
solutions -
superscript bonus
tip summary:
Description: Do you want
to or have copies of your web site on several different FWPs? Sick and
tired of throwing seven different propriatory scripts into your page?
Well, here's the superscript, designed to kill all pop-ups! Get this
one into your site! solution:
just throw this somewhere in your page, preferrably after the
<head> tag.
Original Script Created By John Cooper (JohnC),
The Super Pop-Up Killer.
He Maintains the Web Site "Bat
Site Crack Searcher"
Modified Version, used here, created by Bill Webb (Snicker).
He Maintains the Web Site "Counterexploitation
and the FWP" and
"Snicker
- The Lighter Side Of Computing" Basic
SuperScript - For People Who Don't Use window.open()
<xmp>
--------------------------------
<SCRIPT LANGUAGE="JavaScript">
<!--
function open() {return true;}
//-->
</SCRIPT>
--------------------------------
</xmp> This
Script has to be put before the FWP's code. So, in some cases this
means that you will have to insert it at the beginning of your
document, before your opening <html> tag. On other FWPs, you can
put this anywhere in your page, because the FWP opens its pop-up after
the closing </html> tag. Advanced
SuperScript - For People Who Use window.open() Written
by JohnC,
The Super Pop-Up Killer, Bat Site CrackSearcher
<SCRIPT LANGUAGE="JavaScript">
<!--
function ScreenIt(url,name,parm){
if(url.indexOf("popup.html")!=-1) return false;
return window.Xopen(url,name,parm);
}
window.Xopen=window.open;
window.open=ScreenIt;
//-->
</SCRIPT> This script is
for people who use window.open()
within their pages. This script will screen all requests for window.open()
and if the url contains popup.html (change
this to whatever your FWP has in their URL) then it won't open, but if
it's a good pop-up (one of yours) then it will. If your FWP changes
their code every couple of days (ahem, GeoCities) then you might want
to find something common in it (usually a ?
is in a FWP pop-up), then place that
where popup.html is at the moment.
NOTE: Be sure not to include the forbidden phrase in your
pop-up code. If
you find a FWP that this doesn't work with, then e-mail us!
popbusters@hello.net.au
|