求这样一个javascript特效,鼠标停图片上,显示信息框
我的asp网页,想让鼠标一停在图片就显示alt信息,框框可以酷一点,类似songtaste,有吗?谢谢
追问:该怎么用啊?求指点haha 谢谢捧场啦 不过没什么希望啦
我的asp网页,想让鼠标一停在图片就显示alt信息,框框可以酷一点,类似songtaste,有吗?谢谢
追问:该怎么用啊?求指点haha 谢谢捧场啦 不过没什么希望啦
答案:只是鼠标移入移出的效果,只要把框做的好看点就行了
先做个框,绝对定位,然后把它隐藏了display='none'
要鼠标移入是让这个框显示,这个框的内容读图片的alt就行了,display='block',这里控制一下这个框的left和right
其他:#imagecloud a:hover span { background-attachment: scroll; background-clip: border-box; background-color: #471F1F; background-image: url(http://image.songtaste.com/images/ictrans.gif); background-origin: padding-box; border-bottom-color: #471F1F; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #471F1F; border-left-style: solid; border-left-width: 1px; border-right-color: #471F1F; border-right-style: solid; border-right-width: 1px; border-top-color: #471F1F; border-top-style: solid; border-top-width: 1px; bottom: 38px; color: white; cursor: auto; display: block; float: none; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px; height: 30px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: white; outline-style: none; outline-width: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; position: absolute; right: 10%; text-align: center; text-decoration: none; top: auto; width: 104px; word-break: break-all; z-index: 999; } 来留个名,好等会回来看有高人米
上一个:javascript 输出异常,本应是数字,却输出 NaN
下一个:Html,Javascript,Css是什么?