我终于启动并运行了我的网站。我是平面设计师,不是程序员,所以我是新手。代码方面,它可能不是最漂亮的,但它的工作原理。如果你去我网站的工作部分http://www.maryhutchisondesign.com,寻呼机(我使用背景gif作为a和活动状态)功能在Safari,Chrome,Firefox和Opera中有效,但在Internet Explorer中消失了。我得到了Mike Alsup通过电子邮件发送给我的pagerAnchorBuilder专线。有什么我做错了吗?这是css和js的示例。当我从malsups高级寻呼机演示中复制代码时,它也适用于图像缩略图,但在IE中它会改变主要投资组合图像的位置。
.nav_ocn li {
width: 10px;
float: left;
margin: 5px;
list-style: none;
margin-left: 0px;
}
.nav_ocn a {
border: 0px solid #ccc;
text-decoration: none;
margin: -1px;
padding: 10px;
background-image: url(../images/pager.gif);
background-repeat: no-repeat;
background-position: left;
}
.nav_ocn a.activeSlide {
background-image: url(../images/pager_select.gif);
background-repeat: no-repeat;
background-position: left;
}
.nav_ocn a:focus { outline: none; }
$(document).ready(function() {
$('#OCN_gallery').cycle({
fx: 'scrollLeft',
next: '#OCN_gallery',
speed: 'fast',
timeout: 0,
pause: 1,
pager: '.nav_ocn',
// callback fn that creates a thumbnail to use as pager anchor
pagerAnchorBuilder: function() {
return '<li><a href="#"</a></li>';
}
});
});
任何帮助和内部都将非常感激。
谢谢,
玛丽
答案 0 :(得分:1)
更改
return '<li><a href="#"</a></li>';
到
return '<li><a href="#"></a></li>';
缺少'&gt;' IE不像其他浏览器那样处理。