Analog New Member Mar 4, 2007 #1 1. Goto a site like: https://www.google.com or https://news.bbc.co.uk/ 2. Go up to the address bar and paste this in and hit enter: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); 3. Fun, isn't is???????????????
1. Goto a site like: https://www.google.com or https://news.bbc.co.uk/ 2. Go up to the address bar and paste this in and hit enter: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); 3. Fun, isn't is???????????????
Hero999 Banned Mar 4, 2007 #3 You need to paste it in to the tool bar when a page containing images is displayed, if you paste it in to a blank tab nothing will happen. Attachments Cool function.PNG 195.3 KB · Views: 401 Last edited: Mar 4, 2007
You need to paste it in to the tool bar when a page containing images is displayed, if you paste it in to a blank tab nothing will happen.
Analog New Member Mar 4, 2007 #5 AllVol said: Didn't do anything for me, either. Click to expand... For whatever reason, this board puts a space where it doesn't belong, I can't seem to get rid of it: Interval comes out as: Inter val Just delete that space and it works. Sorry about that!
AllVol said: Didn't do anything for me, either. Click to expand... For whatever reason, this board puts a space where it doesn't belong, I can't seem to get rid of it: Interval comes out as: Inter val Just delete that space and it works. Sorry about that!
Hero999 Banned Mar 4, 2007 #6 AllVol said: Didn't do anything for me, either. Click to expand... What browser are you using? Do you have Java scripting enabled? I've tried it on Opera, Firefox and Internet Explorer 7.0 and it works on all of them.
AllVol said: Didn't do anything for me, either. Click to expand... What browser are you using? Do you have Java scripting enabled? I've tried it on Opera, Firefox and Internet Explorer 7.0 and it works on all of them.
Andy1845c Active Member Mar 4, 2007 #7 I think you just need to remove the space like Analog said. It didn't work for me until I did that.
B bxngoc New Member Mar 4, 2007 #8 There are some syntax errors in the script. I have just fixed Code: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5};R++;} setInterval('A()',5); void(0);
There are some syntax errors in the script. I have just fixed Code: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5};R++;} setInterval('A()',5); void(0);