Click to See Complete Forum and Search --> : Transitions effects with text


Vamsee Krishna
02-01-2003, 12:14 PM
Hi all,
Can I use transition effects like fade in etc. with my text???
i've designed some pages and in the index page, i got a table and some forms...each table data is a link and on mouse over, one of the forms becomes visible which describes the link...now, i want some transition effect when the form becomes visible and invisible rather than just appearing and disappearing...if I don't seem to make any sense, pls check out
this site (http://196.12.44.6/~vamsee_k/oly).

Can you help me out?
thanking u all in anticipation

Zach Elfers
02-01-2003, 12:37 PM
Here it is:

<script type="text/JavaScript">
<!--
function change(id) {
if (document.getElementById) {
el = document.getElementById(id);
if (el.style.display == "block") {
el.style.display = "none";
}
else {
el.style.display = "block";
}
return true;
}
}
//-->
</script>
...
<div style="color:blue;" onMouseOver="this.style.color = 'navy';return change('descrip');" onMouseOut="this.style.color = 'blue';return change('descrip');">
Menu
</div>
...
<div style="z-index:1;height:30px;">
Description will appear here.
</div>
<div id="descrip" style="display:none;z-index:2;position:relative;left:0px;top:-30px;">
Description
</div>