{"id":146,"date":"2009-09-21T18:51:00","date_gmt":"2009-09-21T18:51:00","guid":{"rendered":"http:\/\/aasims.wordpress.com\/?p=146"},"modified":"2025-04-30T12:31:24","modified_gmt":"2025-04-30T12:31:24","slug":"funny-scripts","status":"publish","type":"post","link":"https:\/\/aasimnaseem.com\/blog\/funny-scripts\/","title":{"rendered":"Funny JavaScripts ::"},"content":{"rendered":"<tr>\n<td valign='top'><strong>Hey folks &#8230; try these codes in address bar of your browser windows and see what happen &#8230;  <\/strong><br \/>\n<br \/>\njavascript:function Shw(n) {if (self.moveBy) {for (i = 35; i &gt; 0; i&#8211;) {for (j = n; j &gt; 0; j&#8211;) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)<br \/>\n&lt;\/td<\/p>\n<td>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/AasimNaseem.com\/wp-content\/uploads\/2009\/09\/code.jpeg\" alt=\"javascript code\" title=\"javascript code\" width=\"130\" height=\"98\" class=\"aligncenter size-full wp-image-151\" \/>\n<\/td>\n<\/tr>\n<p>javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var DI= document.images; DIL=DI.length; function A(){for(i=0; i&lt;DIL; i++){DIS=DI[ i ].style; DIS.position=&#39;absolute&#39;; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5+&quot;px&quot;; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+&quot;px&quot;}R++}tag=setInterval(&#39;A()&#39;,5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i&lt;DIL; i++){DI[i].style.position=&quot;static&quot;;}}; void(0)<\/p>\n<p><strong>this is one really nice . Just copy and paste this code &#8230; into your web browser &#8230; as you are on one page &#8230; you can do this to any site &#8230; it is so funny &#8230;<\/strong><br \/>\njavascript:document.body.contentEditable=&#8217;true&#8217;; document.designMode=&#8217;on&#8217;; void 0<\/p>\n<p><strong>where my webpage is going &#8230;<\/strong><\/p>\n<p>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.getElementsByTagName(&#8220;div&#8221;); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=&#8217;absolute&#8217;; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+&#8221;px&#8221;; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+&#8221;px&#8221;}R++}setInterval(&#8216;A()&#8217;,5); void(0);<\/p>\n<p>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.getElementsByTagName(&#8220;body&#8221;); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=&#8217;absolute&#8217;; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+&#8221;px&#8221;; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+&#8221;px&#8221;}R++}setInterval(&#8216;A()&#8217;,5); void(0);<\/p>\n<p>ooook guys &#8230; break time end .. me going back to work .. c ya<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey folks &#8230; try these codes in address bar of your browser windows and see what happen &#8230; javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i &gt; 0; i&#8211;) {for (j = n; j &gt; 0; j&#8211;) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6) &lt;\/td javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[396,592],"class_list":["post-146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-fun-with-script","tag-javascripts"],"_links":{"self":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":2,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":5243,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions\/5243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media\/5234"}],"wp:attachment":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}