dede仿网站右侧qq状态栏

<script type="text/javascript"> 
document.write("<div id=QQFloat style=Z-INDEX:20;LEFT:88%;VISIBILITY:visible;WIDTH:112px;POSITION:absolute;TOP:400px;HEIGHT:300px;>")
document.write("<div class=qq><div class=qq_t><img src={dede:global.cfg_templets_skin/}/images/qq01.png /></div><div class=qq_bg><ul>")
document.write("<li><img SRC=http://www.djjwz.com/images/qq.gif  border=0 align=absmiddle /><a target=_blank href='http://wpa.qq.com/msgrd?v=3&uin=873739091&site=qq&menu=yes'><font color='#000000'>业务咨询</font></a></li>")
document.write("<li><img SRC=http://www.djjwz.com/images/qq.gif  border=0 align=absmiddle /><a target=_blank href='http://wpa.qq.com/msgrd?v=3&uin=1293776153&site=qq&menu=yes'><font color='#000000'>售后服务</font></a>")
document.write("</ul></div><div class=qq_d><img src={dede:global.cfg_templets_skin/}/images/qq02.png /></div></div>")
document.write("</div>")
var tips; var theTop = 200
var old = theTop;
function initFloatTips() {
  tips = document.getElementById('QQFloat');
  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;
  }


  pos=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> 
阅读更多
文章标签: qq状态栏
个人分类: QQ状态栏
上一篇form表单提交既有文字也有图片的情况下,增加enctype属性
下一篇dede分页样式
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭