本帖最后由 jishiye 于 2009-6-21 12:40 编辑
其功能包括(返回首页、收藏本站、在线客服、发送邮件、返回顶部)
演示地址如下:http://life.jcbbw.com/network.php 本站开放游客浏览,请勿垃圾注册!
利用自定义广告位添加代码,再用内嵌代码加到header的body中!
PS:UC1.5就像QZONE最早的版本一样,可以利用所有支持代码的地方自己美化空间。
代码如下:(没人顶,我只好删除了!)要的联系我QQ。88405966
现在重新放出- <div id="divStayTopright" style="position:absolute; z-index:999">
- <a href="link.php?url=http://life.jcbbw.com" title="返回主页"><img border=0 src="images/back_home.gif" ></a><br>
- <a href="javascript:window.external.addFavorite('http://life.jcbbw.com/','晋城开心网');" title="收藏本站"><img border=0 src="images/icon_bookmark.gif" ></a><br>
- <a href="mailto:jckxw@foxmail.com" title="给客服发送邮件"><img border=0 src="images/icon_mail_phone.gif" ></a><br>
- <a href="link.php?url=http://wpa.qq.com/msgrd?V=1amp;Uin=88405966amp;Site=ioshenmueMenu=yes" target="_blank" title="客服一号""><img src="images/qq_12606688_on.gif" border="0" align="absmiddle"></a><br>
- <a href="link.php?url=http://wpa.qq.com/msgrd?V=1amp;Uin=40583219amp;Site=ioshenmueMenu=yes" target="_blank" title="客服二号""><img src="images/qq_12606688_on.gif" border="0" align="absmiddle"></a><br>
- <a href="#top" title="返回页顶"><img border="0" src="images/top.gif"></a><br>
- </div>
- <SCRIPT type=text/javascript>
- var verticalpos="frombottom"
- function JSFX_FloatTopDiv()
- {
- var startX =0,
- startY = 459;
- var ns = (navigator.appName.indexOf("Netscape") != -1);
- var d = document;
- function ml(id)
- {
- var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.divs[id];
- if(d.divs)el.style=el;
- el.sP=function(x,y){this.style.right=x;this.style.top=y;};
- el.x = startX;
- if (verticalpos=="fromtop")
- el.y = startY;
- else{
- el.y = ns ? pageYOffset + innerHeight : document.documentElement.scrollTop +
- document.documentElement.clientHeight;
- el.y -= startY;
- }
- return el;
- }
- window.stayTopright=function()
- {
- if (verticalpos=="fromtop"){
- var pY = ns ? pageYOffset : document.documentElement.scrollTop;
- ftlObj.y += (pY + startY - ftlObj.y)/8;
- }
- else{
- var pY = ns ? pageYOffset + innerHeight : document.documentElement.scrollTop +
- document.documentElement.clientHeight;
- ftlObj.y += (pY - startY - ftlObj.y)/8;
- }
- ftlObj.sP(ftlObj.x, ftlObj.y);
- setTimeout("stayTopright()", 10);
- }
- ftlObj = ml("divStayTopright");
- stayTopright();
- }
- JSFX_FloatTopDiv();
- </SCRIPT>
复制代码 附:引用文章地址链接代码! 学上面的方法加到模版中即可- <input type="button" name="Submit" onClick='copyToClipBoard()' value="复制本页文章地址,传给QQ/MSN上的好友" width="100" height="16">
- <script language="javascript">
- function copyToClipBoard(){
- var clipBoardContent="";
- clipBoardContent+=document.title;
- clipBoardContent+="";
- clipBoardContent+=this.location.href;
- window.clipboardData.setData("Text",clipBoardContent);
- alert("复制成功,请粘贴到您的QQ/MSN上推荐给您的好友");
- } </script>
- <script>
- document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本篇文章来源于 “中国站长站” 转载请以链接形式注明出处 网址:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
- </script>
复制代码 |