Monday, 9 September 2013

Script div show/hide slide animation

Script div show/hide slide animation

I have this script:
// <![CDATA[
function showHide() {
var ele = document.getElementById("last-edition");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
}
}
// ]]>
And the animation made by it is show/hide, simple but I would like to
create a slide one if possible. How do I make it?
Example: http://thc-racing.ucoz.com/index/tmt/0-20 The 2012 is where
script is acting.
Thanks!
EDIT: I use jQuery.

No comments:

Post a Comment