{"id":8,"date":"2007-01-08T21:55:21","date_gmt":"2007-01-09T04:55:21","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=8"},"modified":"2007-01-08T21:55:21","modified_gmt":"2007-01-09T04:55:21","slug":"amazing-javascript","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2007\/01\/08\/amazing-javascript\/","title":{"rendered":"Amazing javascript"},"content":{"rendered":"<p>Since the last couple of years, with the advent of AJAX , Javascript has got a new lease of life and has gone from becoming from a &#8216;web application sidekick&#8217; to the &#8216;big guy for Web interfaces&#8217;. Heres a neat little trick which anyone can do<br \/>\n<strong> 1<\/strong>.Load up a site with a good amount of graphics in your browser. Try <a title=\"http:\/\/news.google.com\" href=\"http:\/\/news.google.com\">http:\/\/news.google.com<\/a><br \/>\n<strong> 2<\/strong>.Wait till the page has completed loading and all the images are visible.<br \/>\n<strong> 3<\/strong>.Paste the script below into your browser address bar and press Enter<\/p>\n<div style=\"background-color: #ffffcc; color: black\">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=%27absolute%27; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval(%27A()%27,5); void(0);<\/div>\n<p><strong>4<\/strong>.Note it might not work with all sites, but most sites do put up a good performance.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Since the last couple of years, with the advent of AJAX , Javascript has got a new lease of life and has gone from becoming <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2007\/01\/08\/amazing-javascript\/\" title=\"Amazing javascript\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[35,36,156,257],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-programming","tag-amazing","tag-amit","tag-javascript-2","tag-truelogic"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}