当前位置:
搜档网 › 分享一下在ecshop中实现浮动qq客服的js代码
分享一下在ecshop中实现浮动qq客服的js代码
分享一下在ecshop中实现浮动qq客服的js代码
https://www.sodocs.net/doc/4f2821234.html,/post/64.html
document.write("
");
document.write("
");
document.write("
");
document.write("
路路通商城 欢迎您
");
document.write("
");
document.write("
");document.write("
"); document.write(" ");document.write("
"); document.write(" ");document.write("
");document.write("
"); document.write(" ");document.write('
在线旺旺 ');document.write("
");document.write('
咨询电话:400-6762-668
');document.write('
关闭在线客服
');document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
//
var tips; var theTop = 145/*这是默认高度,越大越往下*/; var old = theTop; function initFloatTips() {
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;
}
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;
//alert(tips.style.top);
old = pos;
setTimeout(moveTips,tt);
}
//!]]>
initFloatTips();
function OnlineOver(){
document.getElementById("divMenu").style.display = "none"; document.getElementById("divOnline").style.display = "block"; document.getElementById("divQQbox").style.width = "145px"; }
function OnlineOut(){
document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "none"; }
function guan(){
document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "none"; OnlineOut();
function hideMsgBox(theEvent){ //theEvent用来传入事件,Firefox的方式if (theEvent){
var browser=https://www.sodocs.net/doc/4f2821234.html,erAgent; //取得浏览器属性
if (browser.indexOf("Firefox")>0){ //如果是Firefox
if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //如果是子元素
return; //结束函式
}
}
if (browser.indexOf("MSIE")>0){ //如果是IE
if (document.getElementById('divOnline').contains(event.toElement)) { //如果是子元素
return; //结束函式
}
}
}
}
js闪烁的星空特效源码 1 颜色选择器
页面背景篇--颜色选择器 页面背景篇--颜色选择器 2 闪烁星空 页面背景篇--闪烁星空 页面背景篇--闪烁星空 页面中的浮动窗口 1. 左栏浮动广告 QUOTE: 2.右栏浮动广告 QUOTE: 3.左栏固定广告 QUOTE:
推荐↓ 浮动div代码
随滚动条移动的层- https://www.sodocs.net/doc/4f2821234.html, 正中...
左上...
使用方法: 方法一.直接把以上代码插入到网页合适位置,修改以上汉字提示信息(效果如本页面实例展示,本页面显示的图片大小是100*250象素). 方法二.1、用记事本保存以上源代码,建立后缀名为.js的文件,比如ad.js 2.在需要显示浮动广告的网页中加入 表示调用该ad.js文件。 注意事项: 1.新建立的显示浮动广告的网页,需要删除代码第一行的标签,如果不删除,只会显示广告图片,但该图片不会随着滚动条上下滚动。你可以先不删除,测试效果;然后删除,再看效果,应该有所不同。 2.如果需要单侧显示广告,比如只显示左侧,那么删除右侧显示代码就可以,即删除suspendcode14=""js实现网页上的浮动广告 漫游于网络之间,你会发觉,因特网不但是信息的海洋,也是广告的海洋。除了普通的Gif Banner、Flash外,浮动广告也是时下网上较为流行的广告形式之一。当你拖动浏览器的滚动条时,这种在页面上浮动的广告,可以跟随屏幕一起移动。尽管这种效果对于广告展示有相当的实用价值,但对浏览你网页的人来讲,这则是个既妨碍阅读,又影响阅读兴趣的东西,因此一定不能滥用。不过,如果你能善用的话,它就能发挥出极大的作用。 要做出浮动式广告的效果并不困难,如果你有JS基础的可以自己写一个,如果连写都懒得写的话,到网上下载一个特效工具,按提示粘贴一下代码就OK。不过,想要真正了解它是怎样做出来的,则需要掌握一些JS知识了。这里向大家介绍一下简单的浮动广告做法。 以下这段代码可放在
之间,其间我加入了一些注释(即“//”后的文字及“”之间的文字)。 9. 防止被人frame 10. 网页将不能被另存为 11. 12. 怎样通过asp的手段来检查来访者是否用了代理 <% if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then response.write "您通过了代理服务器,"& _ "真实的IP为"&Request.ServerVariables("HTTP_X_FORWARDED_FOR") end if %> 13. 取得控件的绝对位置 //javascript 9. 防止被人frame 10. 网页将不能被另存为 11. js实现浮动窗口(广告) 1.
Insert title here
2. var sObj = null; var mObj = null; function main(){ sObj = new StaticObj(7, -2); sObj.run(); mObj = new MoveObj(); } function windowSizeChanged(){ sObj.resizeEvent(); } function move() { var top= document.body.scrollTop;旺旺在线源代码 1.如何在网页上显示腾讯QQ在线洽谈? QQ在线咨询代码(qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码) (将123456换成你的号码,site后面换成你的网站就可以了) 2.阿里巴巴旺旺 阿里巴巴贸易通在线状态代码生成,mengzhisui改成你的ID就行了,还有ALT改成你的内容 3、阿里旺旺在线生成状态
在这里可以把代码中的粗体 mengzhisui换成你的旺旺ID即可,下面的有问题XX 可以换成任意你想要鼠标放在上面的显示。 4、在线制作 5、Trademanager在线生成状态 有二种风格,href的最后数字可换风格
鼠标滑过小图显示大图预览效果(html代码,css样式,javascript) 鼠标滑过小图显示大图预览效果(html代码,css样式,javascript) 一、预览效果:
二、代码部分(将以下代码复制粘贴到记事本,然后将后缀改成.htm或html即可)
很酷的鼠标滑过小图显示大图预览效果丨https://www.sodocs.net/doc/4f2821234.html, 网页设计代码大全
段落标记background:网页背景图像… bgcolor:网页背景颜色align:left right center text:字体颜色强制换行标记link:可链接文字的色彩 alink:被鼠标点中时可链接文字的颜色预排格式标记vlink:已经单击过的可链接文字的颜色 leftmargin:页面左边距插入水平线标记topmargin:页面上边距
Vlink:已经单击过的可链接文字的颜色文本缩标记Leftmargin:页面左边距
… Topmargin:页面上边距列表标记 标题格式标记 1.无序
标题 (范围(h1-h6))
align:left(左) right(右) center(中) 列1 bottom(底) top(顶) 列2文字格式标记……… color=“颜色”>文字 type:disc● circle○ square■字形设置标记 2.有序字形 粗 字形 下划线 字形 斜 字形 文字增大列1 字形 删除线 列2 字形 文字减小………字形 上标 字形下标 字形 宽体 字形 强调 3.定义字形 闪烁 字形斜 条目1 条目1的说明字形 特别强调………