[英]Javascript image slideshow - mouseover
I am having a hard time searching for the answer to my problem. 我很难找到问题的答案。 Mainly because I have no idea how to ask it in a google/yahoo search.
主要是因为我不知道如何在Google /雅虎搜索中询问它。
My site: http://www.wbsnightout.com/sidekick 我的网站: http : //www.wbsnightout.com/sidekick
On the right side I have three sponsor ad div's with images rotating. 在右侧,我有三个带图像旋转的赞助商广告区。 Each image has a title and is a clickable link.
每个图像都有标题,并且是可单击的链接。 The only problem is, is that when you mouse over the image, the LINK and TITLE for the image BEHIND the shown image comes up.
唯一的问题是,当您将鼠标悬停在图像上时,图像的链接和标题会出现在显示的图像后面。 When I click on it, it takes me to the wrong link, because it's the link for the image behind it.
当我单击它时,它会将我带到错误的链接,因为它是其后面图像的链接。
Here is an example of my HTML: 这是我的HTML的示例:
<div id="right-sponsor"> <!-- Begin right Sidebar -->
<div class="advertiseSlides" id="sponsor2">
<a title='Click for more Info!' href='http://www.ricochetsrapiddetail.net/' target='_blank' rel='nofollow'><img src='/images/advertise/ricochet_ad.jpg' alt='Ricochet's Rapid Detail' title='Ricochet's Rapid Detail' height='200' width='240' />
</a> </div>
This is pulled dynamically using php and mysql. 这是使用php和mysql动态提取的。
I have this before my closing body tag within a script tag 我在脚本标签中的结束body标签之前有这个
initImageGallery('sponsor1', 5000);
And my javascript file can be found: http://www.wbsnightout.com/sidekick/js/slideshow.js 并且可以找到我的JavaScript文件: http : //www.wbsnightout.com/sidekick/js/slideshow.js
I don't know much about javascript so I just used I script that I found online. 我对javascript不太了解,所以只使用了我在网上找到的脚本。
If you can answer or point me to a discussion or tutorial, that would be great! 如果您可以回答或指出我的讨论或教程,那就太好了!
Thanks, 谢谢,
您需要将其添加(将'z-index:9999;'添加到CSS中的.advertiseSlides img
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.