jquery 参数无效

Bodil 2008-12-10 10:12:28
今天用了jquery 的一个控件 flickrGallery 照demo做了,在ff中没有任何问题,在ie中无法切换图片,提示 参数无效,用vs调试显示的是jquery.1.2.6.min.js中的错误.....有人知道为什么么
...全文
666 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
alian 2011-08-29
  • 打赏
  • 举报
回复
遇到过类似问题,下载新版本的jquery。注意把下载的文件名要改一下。
sunshine_anycall 2008-12-11
  • 打赏
  • 举报
回复
代码贴出来看下
sunshine_anycall 2008-12-11
  • 打赏
  • 举报
回复
mark下
Bodil 2008-12-11
  • 打赏
  • 举报
回复
结贴了,找到原因了,调了大半天,试了N种办法,甚至把demo文件拷贝到我的项目下运行都报同样错误,后来发现问题所在,这几个js和css文件我是使用vs的添加--》现有项--》找到demo文件目录下的文件添加过来的,可能就是这里有问题,用这种方法添加过来,里面字符流应该会出问题,于是乎我就把那几个文件删除,重新手动复制过去项目下,运行。。。。。。。成功了。。。。。无语中。。。。
gongsun 2008-12-11
  • 打赏
  • 举报
回复
母页中的样式引起了问题?
Bodil 2008-12-11
  • 打赏
  • 举报
回复
<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SunWay.web.Default" Title="主页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="css/flickrGallery-large.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-personalized-1.6rc2.min.js"></script>
<script type="text/javascript" src="js/jquery.flickr-1.0.js"></script>
<script type="text/javascript" src="js/jquery.flickrGallery-1.0.2.js"></script>
<script language="javascript" type="text/javascript">
$().ready(function(){
$('#show_produce').flickrGallery();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="main">
<div class="box" id="show_produce">
<ul id="thumbs_1" class="thumbs">
<li><img src="images/production_img/production_001.bmp" title="Desert Moon" width="300" /></li>
<li><img src="images/production_img/production_002.bmp" title="Cat + Tree" width="500" /></li>
<li><img src="images/production_img/production_003.bmp" title="Matisyahu - Hasidic Rap Reggae Superstar" width="400" /></li>
<li><img src="images/production_img/production_004.bmp" title="Weirdo" width="650" /></li>
<li><img src="images/production_img/production_005.bmp" title="Astronomy Picture of the Day" width="600" /></li>
<li><img src="images/production_img/production_006.bmp" title="Blind Melon - Nico" width="450" /></li>
<li><img src="images/production_img/production_007.bmp" title="DeFacto....Dub" width="500" /></li>
<li><img src="images/production_img/production_008.bmp" title="Chopper Style" width="600" /></li>
<li><img src="images/production_img/production_009.bmp" title="There ain't no second chance against the thing with the forty eyes, girl. " width="500" /></li>
</ul>
</div>
</div>
</asp:Content>


以上为代码,引用的几个js和css都是demo里的,郁闷的是它提供的demo没问题,但是到这里了就出问题了。。。。。。
yeah920 2008-12-11
  • 打赏
  • 举报
回复
友情顶
benbenkui 2008-12-11
  • 打赏
  • 举报
回复
应该不会吧,jquery插件的兼容性一般都很好的.
如题 jQuery使用on()绑定动态生成元素的事件无效的问题 jQuery的on()方法可以绑定动态生成元素的事件,但是在实际使用时发现无效。如下HTML:

123

使用如下方式,对静态元素有效,但是绑定动态生成的a元素的事件时无效: $('a').on('mouseenter', function(){ ............}); 需要绑定a的父级元素(此元素必须为静态元素,不是后来动态生成的),然后设定on()方法的selector参数才行: $('p').on('mouseenter', 'a', function(){ .........

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧