|
网络朋友要一个特效:鼠标悬停的特效,弄了个CSS的。
.tips { FILTER: revealTrans(transition=26,duration=0.5) blendTrans(duration=0.5); VISIBILITY: hidden; POSITION: absolute; BACKGROUND-COLOR: #FFFFFF; width:128px; line-height:18px; border: 1px solid #666666; color:#616161; padding: 4px; font-size: 12px; } |
<SCRIPT language=JavaScript1.2> <!-- function Show(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "visible"; divid.filters.revealTrans.play(); } function Hide(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "hidden"; divid.filters.revealTrans.play(); } //--> </SCRIPT> |
在需要的地方调用这段JS就可以了! 其中divid表示你用的层div的ID号! 调用方法:
<a onmouseover="Show(act01)" onMouseOut="Hide(act01)" style="cursor:hand;"><fon t color="#FFFFFF">显示</font></a> <DIV class="tips" id="act01" align="left"><font color="#FF0000">每次刷新都不一样</font><br> 快刷新试试</DIV> |
赶快随便发挥吧!
大鹤的方法也不错: 收录:
| <font title="大鹤是美女,博士是帅哥">大鹤是美女,博士是帅哥</font> |
|