ie中的jquery用户代理错误

时间:2012-06-22 06:41:46

标签: jquery asp.net html internet-explorer

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E)
Timestamp: Fri, 22 Jun 2012 05:20:36 UTC
Message: Expected identifier, string or number
Line: 39
Char: 1
Code: 0
URI: [http://app.eschooltrack.com/scripts/functions.js][1]

有了这个错误,完成 jQuery 文件在转换为asp.net版本后无法在IE中运行,它在其他浏览器和 HTML 版本中运行良好,

请帮帮我。

1 个答案:

答案 0 :(得分:0)

尝试在functions.js

中删除高度:20和高度:160之后的逗号
$(function(){
$('#alerts').vTicker({ 
speed: 500,
pause: 4000,
animation: 'fade',
mousePause: true,
showItems: 2,
direction: 'up',
height:20
});
});



$(function(){
$('#news').vTicker({ 
speed: 500,
pause: 4000,
animation: 'fade',
mousePause: true,
showItems: 2,
direction: 'up',
height:160
});
});