鼠标悬停时调用灯箱?
我的疑问其实很简单。我有一个 V890 服务器的图像,当鼠标悬停在该图像上时,我想调用一个灯箱,它显示该服务器的规格。 我无法让代码工作。之前也从未使用过“onmouseover”功能,所以不知道如何编写代码。
我发现了一个有用的灯箱,名为“lightwondow”。
<a href="http://www.p51labs.com/lightwindow/blank-huge.html"class="lightwindow page-options" title="Sample Title"><strong>Monster Fixed Page</strong> - This page is just plain to big for the browser window unless you maximize a 30 inch monitor.</a>
我需要在此代码中添加鼠标悬停。
任何帮助将不胜感激。
谢谢。
阿南德.
My doubt is actually pretty simple. I have an image of a V890 server and on mouseover of that image i want to call a lightbox,which shows the specs of that server.
I cant get the code to work. Also never used 'onmouseover' function before so dunno how to write the code.
I have found a useful lightbox called 'lightwondow'.
<a href="http://www.p51labs.com/lightwindow/blank-huge.html"class="lightwindow page-options" title="Sample Title"><strong>Monster Fixed Page</strong> - This page is just plain to big for the browser window unless you maximize a 30 inch monitor.</a>
I need to add a mouseover to this code.
Any help would be appreciated.
Thanks.
Anand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为灯箱通常在 onclick 事件中加载,您必须更改它才能在鼠标悬停时启动它。
打开文件 lightbox.js 并更改行:
with:
顺便说一句,我认为您必须将 rel 属性添加到锚点:
HTH!
i think the lightbox is usually load at the onclick event, you have to change that to be able to lauch it onmouseover.
Open the file lightbox.js an change the line:
with:
By the way i think you ahve to add the rel attribute to the anchor:
HTH!