我正在使用这个jQuery幻灯片形式:
http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/
适用于除IE7之外的所有浏览器,它会给函数带来错误:
“对象不支持函数或方法”
它所指的功能行是:
<script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will be your tab
pathToTabImage: 'sites/all/themes/my_theme/images/contact_tab.gif', //path to the image for the tab (optionaly can be set using css)
imageHeight: '122px', //height of tab image
imageWidth: '40px', //width of tab image
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '200px', //position from the top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
});
</script>
它适用于所有其他浏览器甚至IE8,但有一些样式问题,但jQuery仍然有效。有谁知道我如何在IE7中运行这个功能,上面的示例代码的网站可以在IE中找到,所以如果我使用相同的代码怎么能被破坏。