asp.net mvc调用QQ停靠问题出现错误
错误提示:Microsoft JScript 运行时错误: 对象不支持“Sonline”属性或方法 
页面代码如下:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace=" BookShop.Models.SystemManager" %>
<%@ Import Namespace="Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>智慧吧-首页</title>
<link rel="stylesheet" type="text/css" href="/Content/Css/WebManagerCss/ShowManagerCss/style.css" /><link rel="stylesheet" type="text/css" href="/Content/QQcs/style/red.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="/Content/QQcs/js/jquery.Sonline.js"></script>
<script type="text/javascript">
    $(function () {
        $().Sonline({
            Position: "left", //left或right
            Top: 100, //顶部距离,默认200px
            Width: 165, //顶部距离,默认200px
            Style: 6, //图标的显示风格共6种风格,默认显示第一种:1
            Effect: true, //滚动或者固定两种方式,布尔值:true或false
            DefaultsOpen: true, //默认展开:true,默认收缩:false
            Tel: "400-555-6565", //其它信息图片等
            Qqlist: "402719549|售前咨询,402719549|售前咨询,402719549|售后咨询,402719549|技术支持,402719549|建议/投诉" //多个QQ用','隔开,QQ和客服名用'|'隔开        });
    })
</script>
<script type="text/javascript">
    $(function () {
        $(".nav > ul > li").hover(function () {
            $(this).addClass("current");
            var subHeight = ($(this).find(".subNav").find("a").length) * 42;
            $(this).find(".subNav").stop(true, true).animate({ height: subHeight }, "fast");
        }, function () {
            $(this).removeClass("current");
            $(this).find(".subNav").animate({ height: 0 }, "fast");
        });
    })
</script></head>
<body>
<div id="wrap">
  <div class="header">
    <div class="logo"><span class="logoStyle"></span></div>
    <div id="menu" style="float:left">
      <% Html.RenderPartial("menu"); %>
    </div>
    <% Html.RenderAction("SEARCH_INFO", "Pub"); %>
  </div>
  <div class="center_content">
    <div class="left_content">
      <div class="title"><span class="title_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/bullet1.gif" alt="" title="" /></span>推荐书籍</div>
      <%foreach (Hashtable item in ViewData["recommendList"] as List<Hashtable>) %>
      <%{ %>
      <div class="feat_prod_box">
        <div class="prod_img"><a href="/WebManager/ShowManager/details/<%=item["ID"] %>"><img src="<%=item["BOOK_IMGURL"] %>" alt="<%=item["BOOK_NAME"] %>" title="<%=item["BOOK_NAME"] %>" border="0" style="width:120px;height:160px;overflow:hidden" /></a></div>
        <div class="prod_det_box">
          <div class="box_top"></div>
          <div class="box_center">
            <div class="prod_title"><%=Tools.substring(Tools.nullObject2String(item["BOOK_NAME"]),13)%></div>
            <p class="more_details"><%=Tools.substring(Tools.nullObject2String(item["BOOK_INTRODUCTION"]),110)%></p>
            <a href="/WebManager/ShowManager/details/<%=item["ID"] %>" class="more" target="_blank">- 更多 -</a>
            <div class="clear"></div>
          </div>
          <div class="box_bottom"></div>
        </div>
        <div class="clear"></div>
      </div>
      <%} %>      
      <div class="title"><span class="title_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/bullet2.gif" alt="new" title="new" /></span>新书上架</div>
          <div class="new_products">
          <%foreach (Hashtable item in ViewData["newsList"] as List<Hashtable>) %>
          <%{ %>
                <div class="new_prod_box"> <a href="/WebManager/ShowManager/details/<%=item["ID"] %>"><%=Tools.substring(Tools.nullObject2String(item["BOOK_NAME"]),5)%></a>
                <div class="new_prod_bg"> <span class="new_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/new_icon.gif" alt="" title="" /></span> <a href="/WebManager/ShowManager/details/<%=item["ID"] %>"><img src="<%=item["BOOK_IMGURL"] %>" alt="<%=item["BOOK_NAME"] %>" title="<%=item["BOOK_NAME"] %>" class="thumb" border="0" style="width:80px;height:108px;overflow:hidden" /></a> </div>
                </div>
          <%} %>
          </div>
      <div class="clear"></div>
    </div>
    <!--end of left content-->
    <div class="right_content">
      <% Html.RenderAction("LOGIN_INFO", "Pub"); %>
      <% Html.RenderAction("CART_INFO", "Pub"); %>
      <div class="title" style="width:200px;"><span class="title_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/bullet3.gif" alt="" title="" /></span>关于我们</div>
      <% Html.RenderAction("ABOUT_US", "Pub"); %>
      <% Html.RenderAction("PROMOTION_LIST","Pub"); %>
      <div class="right_box">
        <div class="title"><span class="title_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/bullet5.gif" alt="" title="" /></span>分类</div>
        <% Html.RenderAction("BOOK_CATEGORY","Pub"); %>
        <div class="title"><span class="title_icon"><img src="/Content/Images/WebmManagerImages/ShowManagerImages/bullet6.gif" alt="" title="合作伙伴" /></span>合作伙伴</div>
        <ul class="list">
          <li><a href="http://book.dangdang.com/" target="_blank">当当网</a></li>
          <li><a href="http://www.amazon.cn/%E5%9B%BE%E4%B9%A6/b/ref=sa_menu_bo0?ie=UTF8&node=658390051" target="_blank">卓越亚马逊</a></li>
          <li><a href="" target="_blank">苏宁易购</a></li>
          <li><a href="http://www.gome.com.cn/ec/homeus/book.html" target="_blank">国美电器网上商城</a></li>
          <li><a href="http://book.360buy.com/" target="_blank">京东商城</a></li>
        </ul>
      </div>
    </div>
    <!--end of right content-->
    <div class="clear"></div>
  </div>
  <!--end of center content-->
  <% Html.RenderPartial("foot"); %>
</div>
<!-- zhi8.net Baidu tongji analytics -->
<script type="text/javascript">
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F10e048dfc9cbe74a2f38c859e9fb827f' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>
javascript插件QQ在线客服停靠

解决方案 »

  1.   

    不要$()这样调用,1.4+返回[],1.3-返回的是document
      
         $(document).Sonline({
                Position: "left", //left或right
                Top: 100, //顶部距离,默认200px
                Width: 165, //顶部距离,默认200px
                Style: 6, //图标的显示风格共6种风格,默认显示第一种:1
                Effect: true, //滚动或者固定两种方式,布尔值:true或false
                DefaultsOpen: true, //默认展开:true,默认收缩:false
                Tel: "400-555-6565", //其它信息图片等
                Qqlist: "402719549|售前咨询,402719549|售前咨询,402719549|售后咨询,402719549|技术支持,402719549|建议/投诉" //多个QQ用','隔开,QQ和客服名用'|'隔开
     
            });