Нужен скрипт чтобы сайт "сломался"

:D затрясло. Теперь буду гадить...
 
Парни есть ещё какие скрипты ?
 
ага вот!
Код:
<script language=JavaScript>
activ = window.setInterval("Farbe()",100);
i = 0, farbe = 1;
function Farbe() {
 
if(farbe==1) {
document.bgColor="FFFF00"; farbe=2; }
else {
document.bgColor="FF0000"; farbe=1; }
i = i + 1;
}
</script>
 
Психоделический топ :D
 
еще один
скринсивер!
Код:
<script type="text/javascript">
function ScreenSaver(a){this.settings=a;this.nTimeout=this.settings.timeout;document.body.screenSaver=this;document.body.onmousemove=ScreenSaver.prototype.onevent;document.body.onmousedown=ScreenSaver.prototype.onevent;document.body.onkeydown=ScreenSaver.prototype.onevent;document.body.onkeypress=ScreenSaver.prototype.onevent;var b=this;var c=function(){b.timeout()};this.timerID=window.setTimeout(c,this.nTimeout)}function StarFieldSaver(a){this.speed=50;this.nStars=50;this.zIndex=1e3;if(a.speed)this.speed=a.speed;if(a.nStars)this.nStars=a.nStars;if(a.zIndex)this.zIndex=a.zIndex}function drawShapes(){gr.penColor="red";gr.drawLine(10,10,190,190);gr.penColor="green";gr.drawLine(190,10,10,190);gr.penColor="blue";c=gr.drawCircle(100,100,45);gr.zIndex=1;gr.penColor="lime";gr.fillRectangle(50,70,100,20);gr.zIndex=0;drawProp()}function drawProp(){if(p)gr.removeShape(p);var b=Math.round(Math.sin(a)*45);var c=Math.round(Math.cos(a)*45);a-=Math.PI/25;gr.penColor="black";p=gr.drawLine(100+b,100+c,100-b,100-c);window.setTimeout("drawProp();",10)}function FillRectangle(a,b,c,d){this.x=a;this.y=b;this.w=c;this.h=d}function Circle(a,b,c){this.x=a;this.y=b;this.radius=c}function Line(a,b,c,d){this.x1=a;this.y1=b;this.x2=c;this.y2=d}function Point(a,b){this.x=a;this.y=b}function Graphics(a){this.canvas=a;this.cache=new Array;this.shapes=new Object;this.nObject=0;this.penColor="black";this.zIndex=0}Graphics.prototype.createPlotElement=function(a,b,c,d){if(!this.oCanvas){switch(typeof this.canvas){case"string":this.oCanvas=document.getElementById(this.canvas);break;case"object":this.oCanvas=this.canvas;break;default:this.oCanvas=document.body;break}}var e;if(this.cache.length)e=this.cache.pop();else{e=document.createElement("div");this.oCanvas.appendChild(e);e.style.position="absolute";e.style.margin="0px";e.style.padding="0px";e.style.overflow="hidden";e.style.border="0px"}e.style.zIndex=this.zIndex;e.style.backgroundColor=this.penColor;e.style.left=a;e.style.top=b;e.style.width=c+"px";e.style.height=d+"px";e.style.visibility="visible";return e};Graphics.prototype.releasePlotElement=function(a){a.style.visibility="hidden";this.cache.push(a)};Graphics.prototype.addShape=function(a){a.oGraphics=this;a.graphicsID=this.nObject;this.shapes[this.nObject]=a;this.nObject++;a.draw();return a};Graphics.prototype.removeShape=function(a){if(a instanceof Object&&a.oGraphics==this&&this.shapes[a.graphicsID]==a){a.undraw();this.shapes[a.graphicsID]=undefined;a.oGraphics=undefined}};Graphics.prototype.clear=function(){for(var a in this.shapes)this.removeShape(this.shapes[a])};Graphics.prototype.drawPoint=function(a,b){return this.addShape(new Point(a,b))};Point.prototype.draw=function(){this.oDiv=this.oGraphics.createPlotElement(this.x,this.y,1,1)};Point.prototype.undraw=function(){this.oGraphics.releasePlotElement(this.oDiv);this.oDiv=undefined};Graphics.prototype.drawLine=function(a,b,c,d){return this.addShape(new Line(a,b,c,d))};Line.prototype.draw=function(){this.plots=new Array;var a=this.x2-this.x1;var b=this.y2-this.y1;var c=this.x1;var d=this.y1;var e=Math.max(Math.abs(a),Math.abs(b));a=a/e;b=b/e;for(i=0;i<=e;i++){this.plots.push(this.oGraphics.createPlotElement(Math.round(c),Math.round(d),1,1));c+=a;d+=b}};Line.prototype.undraw=function(){while(this.plots.length)this.oGraphics.releasePlotElement(this.plots.pop());this.plots=undefined};Graphics.prototype.drawCircle=function(a,b,c){return this.addShape(new Circle(a,b,c))};Circle.prototype.draw=function(){this.plots=new Array;var a=this.radius*this.radius;var b=0;var c=this.radius;while(b<=c){this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x+b),Math.round(this.y+c),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x-b),Math.round(this.y+c),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x+b),Math.round(this.y-c),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x-b),Math.round(this.y-c),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x+c),Math.round(this.y+b),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x+c),Math.round(this.y-b),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x-c),Math.round(this.y+b),1,1));this.plots.push(this.oGraphics.createPlotElement(Math.round(this.x-c),Math.round(this.y-b),1,1));b++;c=Math.round(Math.sqrt(a-b*b))}};Circle.prototype.undraw=Line.prototype.undraw;Graphics.prototype.fillRectangle=function(a,b,c,d){return this.addShape(new FillRectangle(a,b,c,d))};FillRectangle.prototype.draw=function(){this.oDiv=this.oGraphics.createPlotElement(this.x,this.y,this.w,this.h)};FillRectangle.prototype.undraw=Point.prototype.undraw;Point.prototype.move=function(a,b){this.oDiv.style.left=a+"px";this.oDiv.style.top=b+"px"};Point.prototype.setSize=function(a){this.oDiv.style.width=a+"px";this.oDiv.style.height=a+"px"};StarFieldSaver.prototype.init=function(){this.oCanvas=document.createElement("div");document.body.appendChild(this.oCanvas);this.oCanvas.style.zIndex=this.zIndex;this.oCanvas.style.position="absolute";this.oCanvas.style.backgroundColor="black";this.g=new Graphics(this.oCanvas);this.g.penColor="white";this.aPoints=new Array};StarFieldSaver.prototype.start=function(){if(this.bActive)return;this.bActive=true;if(!this.oCanvas)this.init();this.oCanvas.style.visibility="visible";this.tick()};StarFieldSaver.prototype.stop=function(){if(!this.bActive)return;window.clearTimeout(this.timerID);this.oCanvas.style.visibility="hidden";for(var a in this.aPoints){this.aPoints[a].undraw()}this.aPoints=new Array;this.bActive=false};StarFieldSaver.prototype.tick=function(){this.oCanvas.style.left=document.body.scrollLeft+"px";this.oCanvas.style.top=document.body.scrollTop+"px";this.oCanvas.style.width=document.body.clientWidth+"px";this.oCanvas.style.height=document.body.clientHeight+"px";this.width=document.body.clientWidth;this.height=document.body.clientHeight;var a=this.width/2;var b=this.height/2;for(var c in this.aPoints){var d=this.aPoints[c];var e=d.x-a;var f=d.y-b;d.x+=e/50;d.y+=f/50;if(d.x<0||d.x>this.width-Math.ceil(d.n/50)||d.y<0||d.y>this.height-Math.ceil(d.n/50)){d.x=Math.random()*this.width;d.y=Math.random()*this.height;d.n=0}d.move(Math.floor(d.x),Math.floor(d.y));d.setSize(Math.ceil(d.n++/50))}while(this.aPoints.length<this.nStars){var g=Math.random()*this.width;var h=Math.random()*this.height;var d=this.g.drawPoint(Math.floor(g),Math.floor(h));d.setSize(1);d.x=g;d.y=h;d.n=0;this.aPoints.push(d)}var i=this;var j=function(){i.tick()};this.timerID=window.setTimeout(j,this.speed)};ScreenSaver.prototype.timeout=function(){if(!this.saver){this.saver=this.settings.create()}this.saver.start()};ScreenSaver.prototype.signal=function(){if(this.saver){this.saver.stop()}window.clearTimeout(this.timerID);var a=this;var b=function(){a.timeout()};this.timerID=window.setTimeout(b,this.nTimeout)};ScreenSaver.prototype.onevent=function(a){this.screenSaver.signal()};var saver;saver=new ScreenSaver({timeout:10,speed:50,nStars:100,zIndex:100,create:function(){return new StarFieldSaver(this)}})
</script>
 
Зачет!
Прикольно, то , что бы испытать код, надо всего лишь выделить его мышкой :D
 
Хм, прикольная XSS уязвимость ....
Печенья можно пиз#$@..
 
Назад
Сверху