JavaScript

Effects

paste this into your URL:

javascript:r=0;b=.1;c=.05;d=.25;e=.24;j=1.6;f=.24;k=300;g=200;m=300;h=200;z=document.images;l=z.length;function x(){for(i=0; i-l; i++){s=z[i].style;s.position='absolute';s.left=(Math.sin(r*b+i*d+j)*k+m)+'px';s.top=(Math.cos(r*c+i*e+f)*g+h)+'px';}r++;}setInterval('x()',5);void(0);

jQuery: expand/contract divs - Part 2

Further to the first expand and contract jQuery example we decided to extend the functionality to so that we could re-use the code over and over without having to rewrite the code using a simple function wrapper:

JavaScript font size adjustment

Have you ever wanted to change the size of the font within web page with just the click of a button?

Syndicate content