Posts Tagged ‘javascript’

Aug 06

This is script was taken from mailing list. By using simple javascript, we can create “images gallery”. This is not really an gallery, but maybe you can enhance it to be real gallery. Lets take some steps :

  • First, use google images to find images, maybe yo can copy and paste this to your address bar.

    http://images.google.com/images?hl=en&q=ithighlight&gbv=2&aq=f&oq=&aqi=#start=0&imgsz=qsvga

    Google Images Search

  • After google load your search result, change your address bar by copy and paste this 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()’,10); void(0)

  • Now, you can see it, it’s amazing, isn’t?
    Photobucket
Jan 15

jquery
A new major jQuery release with the following highlights :

  • Sizzle: A sizzlin’ hot CSS selector engine.
  • Live Events: Event delegation with a jQuery twist.
  • jQuery Event Overhaul: Completely rewired to simplify event handling.
  • HTML Injection Rewrite: Lightning-fast HTML appending.
  • Offset Rewrite: Super-quick position calculation.
  • No More Browser Sniffing: Using feature detection to help jQuery last for many more years to come.

Visit JQuery Blog : http://blog.jquery.com/2009/01/14/jquery-13-and-the-jquery-foundation