167
rated 0 times
[
169]
[
2]
/ answers: 1 / hits: 86693
/ 12 Years ago, tue, january 15, 2013, 12:00:00
I made this script, which opens a div with the right class and close the others.
function showhide(id) {
if (document.getElementById) {
var divid = document.getElementById(id);
var divs = document.getElementsByClassName(hideable);
for (var i = 0; i < divs.length; i = i + 1) {
divs[i].style.display = none;
}
divid.style.display = block;
}
return false;
}
Is it possible to make some animation, like fadout, easeout instead of just showing it by display options?
More From » animation