Lame JavaScript
Sunday, September 17, 2006
Here is another one of those lame Javascript that is plain annoying:
Because this is a long code, I had to split it into three parts. Copy the above code in red first, paste it on your browser's address bar; copy the one in blue and paste it next to the already pasted code in the address bar; and finally copy the one in black, paste it beside the other two and hit "go". It works differently in IE and Firefox. Haven't tried it on Opera, and not-so-famous browsers. If you do try this on other browsers, let me know how it works.
Technorati tags: Javascript, Web, Firefox, Internet Explorer, IE, Opera
javascript:R=-1;DI=document.links;DIL=DI.length;function A(a,b,c){return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position='absolute';
DIS.left=A(5,100,500);DIS.top=A(5.6,60,150)}
setInterval('R++;B(R%DIL)',15);void(0)
Because this is a long code, I had to split it into three parts. Copy the above code in red first, paste it on your browser's address bar; copy the one in blue and paste it next to the already pasted code in the address bar; and finally copy the one in black, paste it beside the other two and hit "go". It works differently in IE and Firefox. Haven't tried it on Opera, and not-so-famous browsers. If you do try this on other browsers, let me know how it works.
Technorati tags: Javascript, Web, Firefox, Internet Explorer, IE, Opera