-
JavaScript Question
okay heres my site (just look at the source for the code):
http://39webdesign.streamlinenettria...ntitled-1.html
Is there a way to add some code to that code to make it change between the small and the big smoothly like this one here:
http://39webdesign.streamlinenettrial.co.uk/test.html
But with just editing the original code
-
I'm pretty sure you could achieve that with jquery.
Examples: http://docs.jquery.com/Tutorials:Liv...ples_of_jQuery
-
If you use jQuery, you can do stuff like that very easily
Code:
$("#ButtonId").click(function(){$("#TableCellID").animate({width: "200%"},1500 );});
Substitute "200%" with any % or px value.
1500 is time in ms.
If you are going to do a lot of animation, it's definately worth to go for jQuery, or a similar library.
-
All the code is already available at: http://39webdesign.streamlinenettrial.co.uk/test.html
Just do a 'view source'