- <%@ page pageEncoding="UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>QQ在线客服</title>
- <style type="text/css">
- .QQbox{z-index:99; width:142px; right:0; top:180px; position:absolute}
- </style>
- </head>
- <body>
- <form id="form1" runat="server">
- <div style="height:800px">
- <div class="QQbox" id="divQQbox" style="display:none">
- <table height="166" cellSpacing="0" cellPadding="0" width="111" border="0">
- <TBODY>
- <tr>
- <td>
- <table class="pt9" cellSpacing="0" cellPadding="0" width="109" align="center" border="0">
- <tr>
- <td align="left"><IMG src="<c:out value="${jspStoreImgDir}p_w_picpaths/qqkf/help1.gif"/>" /></td>
- </tr>
- <tr>
- <td align="left" background="<c:out value="${jspStoreImgDir}p_w_picpaths/qqkf/help2.gif"/>">
- <table id="table1" class="pt9" cellspacing="0" cellpadding="0" border="0" style="border-width:0px;border-collapse:collapse;">
- <tr>
- <td>
- <table width="100" height="31" border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <td width="30" height="31" align="right">
- <a id="kf1" href="tencent://message/?uin=195243697&Site=&Menu=yes"><img id="img1" title="QQ:195243697" src="http://wpa.qq.com/pa?p=1:195243697:4" alt="" border="0" /></a>
- </td>
- <td class="pt9" align="center">
- <a id="kf11" title="客服1号×××" href="tencent://message/?uin=195243697&Site=&Menu=yes" class="black12">客服1号</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table width="100" height="31" border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <td width="30" height="31" align="right">
- <a id="kf2" href="tencent://message/?uin=195243697&Site=&Menu=yes"><img id="img2" title="QQ:195243697" src="http://wpa.qq.com/pa?p=1:195243697:4" alt="" border="0" /></a>
- </td>
- <td class="pt9" align="center">
- <a id="kf22" title="客服2号×××" href="tencent://message/?uin=195243697&Site=&Menu=yes" class="black12">客服2号</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="left"><IMG src="<c:out value="${jspStoreImgDir}p_w_picpaths/qqkf/help3.gif"/>" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </TBODY>
- </table>
- </div>
- </div>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- var tips;
- var theTop = 180/*这是默认高度,越大越往下*/;
- var old = theTop;
- function initFloatTips() {
- document.getElementById("divQQbox").style.display = "block";
- tips = document.getElementById("divQQbox");
- moveTips();
- };
- function moveTips() {
- var tt = 50;
- if (window.innerHeight) {
- pos = window.pageYOffset
- }
- else if (document.documentElement && document.documentElement.scrollTop) {
- pos = document.documentElement.scrollTop
- }
- else if (document.body) {
- pos = document.body.scrollTop;
- }
- pospos = pos - tips.offsetTop + theTop;
- pos = tips.offsetTop + pos / 10;
- if (pos < theTop) pos = theTop;
- if (pos != old) {
- tips.style.top = pos + "px";
- tt = 10;
- }
- old = pos;
- setTimeout(moveTips, tt);
- }
- initFloatTips();
- </script>