在鼠标滑过或悬停隐藏图像标题工具提示弹出 [英] Hide Image Title Tool Tip Popup on Mouse Rollover or Hover
问题描述
我希望我能在这里回答了这个问题...
I'm hoping I can get this question answered here...
我有谁愿意加入收藏夹窗口中贝宝加入购物车按钮的客户端。我能够通过将贝宝code中的图片标题标签内实现这一目标。
I have a client who wants to add a PayPal "Add to Cart" button inside a Lightbox window. I was able to achieve this by placing the PayPal code inside the image title tag.
不知道这是否是最好的方式,但它的工作。
Not sure if this was the best way, but it worked.
然而,这里是我的问题...
However, here is my problem...
现在,当您将鼠标放在图片缩略图图片标题提示弹出式窗口,贝宝code。不好...
Now when you mouse over the image thumbnail the image title tooltip popup displays the PayPal code. Not good...
有没有一种方法来禁用此功能?我可以告诉浏览器不显示这个弹出?
Is there a way to disable this feature? Can I tell browsers to not display this popup?
下面是链接(我只应用了code到第两张照片):
Here is the link (I only applied the code to the first two photos):
的http://lancemissionart.com/index.php?Page=gallery&title=fof&gallery=msd
谢谢!
推荐答案
我将修改的灯箱使用不同的属性,而不是所有权,就像paypalForm。关于修改的lightbox.js 398线。
I would modify lightbox to use a different attribute instead of title, like paypalForm. Modification on line 398 of lightbox.js.
398: imageArray.push(new Array(anchor.getAttribute('href'), anchor.getAttribute('paypalForm')));
另一种选择是只设置标题属性 onmousedown事件
并在收藏夹关闭设回空字符串。
The other option would be to only set the title attribute onMouseDown
and setting it back to empty string when the lightbox is closed.
这篇关于在鼠标滑过或悬停隐藏图像标题工具提示弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!