当前位置:编程问答 > asp >

浮动QQ在线客服代码,加入ASP网页中时,总出现:java script error Description:缺少。。还出现大片空白区域

问题:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>QQ在线客服</title>
<SCRIPT language=javascript>
function CloseQQ()
{
divStayTopleft.style.display="none";
return true;
}
function FloatTop()
{
var startX1 =document.body.offsetWidth-125 ,startY1 = 5;
var startX2 =0,startY2 = 95;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id,startX,startY)
{
  var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
  if(d.layers)el.style=el;
  el.sP=function(x,y){this.style.left=x;this.style.top=y;};
  el.x = startX;
  el.y = startY;
  return el;
}
window.stayTopLeft=function()
{
  var pY = ns ? pageYOffset : document.body.scrollTop;
  ftlObj.y += (pY + startY1 - ftlObj.y)/8;
  ftlObj1.y += (pY + startY2 - ftlObj1.y)/8;
  ftlObj.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);
  ftlObj1.sP(ftlObj1.x, ftlObj1.y);
  setTimeout("stayTopLeft()", 30);
}
ftlObj = ml("divStay",(document.body.scrollLeft+document.body.offsetWidth)/2+505,0);
ftlObj1 = ml("divStayTopLeft",(document.body.scrollLeft+document.body.offsetWidth)/2+509,30);
stayTopLeft();
}
</SCRIPT>
</head>
<body>
<DIV id=divStay style="POSITION:absolute"></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width="7%"></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript>
function picsize(obj,MaxWidth){
  img=new Image();
  img.src=obj.src;
  if (img.width>MaxWidth)
  {
    return MaxWidth;
  }
  else
  {
    return img.width;
  }
}
function CloseQQ()
{
divStayTopleft.style.display="none";
return true;
}
var online= new Array();
</SCRIPT>
<div id="divStayTopleft" style="POSITION: absolute; left: 267px; top: 34px;">
<table cellspacing="0" cellpadding="0" width="109" border="0">
  <tr>
   <td colspan="3">
   <a onClick="CloseQQ()" href="javascript:;" shape="circle" coords="91,16,12">
   <img height="34" src="QQ3.png" width="109" usemap="#Map" border="0"></a></td>
  </tr>
  <tr>
   <td width="6"><img height="250" src="QQ2.png" width="6"></td>
   <td valign="top" width="96" background="sto/qq_bg.gif">
   <table cellspacing="0" cellpadding="0" width="96" align="center" border="0">
    <tr>
      <td height="30">
        <table cellspacing="0" cellpadding="0" width="90" border="0">
          <tr>
            <td align="center"><span class="font_12">
              <span style="font-size: 12px">在线客服中心</span></span></td>
            </tr>
          </table>

中间省略。。。。。。。。。

FloatTop();
</script>
<!--End -->
<table><tr><td height="800"></td></tr></table>
<script type="text/javascript">FloatTop();</script>
</body>
</html>

在主页的BODY之间插入,调入网页时用的语句是:<!-#include file="qq.asp"->
请问是哪里出了问题,请高手帮助解决一下,万分感谢。
,总出现:java script error Description:缺少。。还出现大片空白区域
答案:ftlObj.y += (pY - startY - ftlObj.y)/8;}ftlObj.sP(ftlObj.x, ftlObj.y);setTimeout("stayTopLeft()", 10);}ftlObj = ml("divStayTopLeft");stayTopLeft();}JSFX_FloatTopDiv();</script></html>第三步:下载相关素材(在图片上点右键-图片另存为…),保存到images目录下。 http://imis.qq.com/images/wpa/images/kefu_up.gif http://imis.qq.com/images/wpa/images/ kefu_middle.gif http://imis.qq.com/images/wpa/images/ kefu_down.gif http://imis.qq.com/images/wpa/images/ QQonline.gif http://imis.qq.com/images/wpa/images/ QQoffline.gif http://imis.qq.com/css/im.css第四步:将所有文件和目录保持原有结构(kefu.htm和文件夹images),拷贝到您的网站目录中,在你要添加“浮动QQ在线客服”的页面的最后面添加一行:<!--#include file="kefu.htm"-->演示地址: http://www.biaopaiji.com/connection.asp完整代码: http://inbo521.bokee.com/viewdiary.14756215.html http://hi.zhaoxi.net/inbo/blog/item/d20031ce5a7d6d39b700c8fd.html

上一个:帮个忙,用asp中的vb怎样编写,请给出正确代码,要求用循环嵌套
下一个:ASP.NET中,如何在配置文件中添加连接字符串,并在后来的代码中使用?

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,