我在此页面上使用 jQuery Cycle 进行幻灯片放映:http: //energync.ehclients.com/并将其设置为当您将鼠标悬停在其下方的寻呼机事件上时图像会发生变化。由于这些链接是由 jQuery 动态创建的,我如何添加指向站点上其他页面的链接?
这是html:
<div id="slideshow">
<img src="http://energync.ehclients.com/images/uploads/slideshow-1.jpg" alt="Making Energy Work" width="645" height="333">
<img src="http://energync.ehclients.com/images/uploads/slideshow-2.jpg" alt="We Collaborate" width="645" height="333">
<img src="http://energync.ehclients.com/images/uploads/slideshow-3.jpg" alt="We Analyze" width="645" height="333">
<img src="http://energync.ehclients.com/images/uploads/slideshow-4.jpg" alt="We Advocate" width="645" height="333">
<img src="http://energync.ehclients.com/images/uploads/slideshow-5.jpg" alt="We Educate" width="645" height="333">
</div>
这是jQuery:
$('#slideshow').cycle({
fx: 'fade',
pager : '#slideshow-nav',
pagerEvent: 'mouseover',
speed: 2000,
delay: 3000,
});