javascript - Call a lightbox on mouseover? - Stack Overflow

My doubt is actually pretty simple. I have an image of a V890 server and on mouseover of that image i w

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=".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.

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./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.

Share Improve this question edited Mar 9, 2011 at 17:14 Pointy 414k62 gold badges595 silver badges629 bronze badges asked Mar 9, 2011 at 17:11 anandanand 4935 gold badges13 silver badges24 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

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:

anchor.onclick = function () {myLightbox.start(this); return false;}

with:

anchor.onmouseover= function () {myLightbox.start(this); return false;}

By the way i think you ahve to add the rel attribute to the anchor:

 rel="lightbox"

HTH!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745477793a4629426.html

相关推荐

  • javascript - Call a lightbox on mouseover? - Stack Overflow

    My doubt is actually pretty simple. I have an image of a V890 server and on mouseover of that image i w

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信