您当前的位置:淘宝社区首页 > 网店装修 > 装修代码 >

淘宝收藏代码和中文星期网页特效显示代码

编辑:淘宝达人来源:未知时间:2011-06-16

中文星期网页特效显示代码: script LANGUAGE=java - script !-- document.write(centerfont size=+1b now = new Date() //定义新对象,new具有Date的性质 document.write(centersmall if (now.getDay() == 5) document.write(星期五 if (now.getDay() == 6)

中文星期网页特效显示代码:
<script LANGUAGE="java - script">
<!-- document.write("<center><font size=+1><b>"
now = new Date() //定义新对象,new具有Date的性质
document.write("<center><small>"
if (now.getDay() == 5) document.write("星期五"

if (now.getDay() == 6) document.write("星期六"

if (now.getDay() == 0) document.write("星期日"

if (now.getDay() == 1) document.write("星期一"

if (now.getDay() == 2) document.write("星期二"

if (now.getDay() == 3) document.write("星期三"

if (now.getDay() == 4) document.write("星期四"

document.write("</small></center>"

//--> </script>

添加到收藏夹的代码:
<span style="CURSOR: hand" onClick="window.external.addFavorite('http://小店网址','想添加的名称')" title="想添加的名称">收藏本站</span>
二十六、设为首页的代码:
<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)'; this.setHomePage('小店网址');" style="CURSOR: hand">设为首页</span>
二十七、保护自己的页面不被别人放在框架中:
<Script LANGUAGE="java - script">
if(self!=top){top.location=self.location;}
</script>

状态栏出现打字效果特效代码:
要完成此效果需要两个步骤
第一步:把如下代码加入到<head>区域中
<SCRIPT LANGUAGE="java - script">
<!-- Begin
var msg = "Welcome To The java - script Fairyland";
var chars = msg.length + 1;
var updateStatus = "";
var i = 0;
function statusMessage() {
if (i < chars) setTimeout("nextLetter()", 300);
}
function nextLetter() {
updateStatus = msg.substring(0,i) + '_';
window.status = updateStatus;
i++;
statusMessage();
}
// End -->
</script>
第二步:把“onLoad="statusMessage()"”加在<body>标记里
例如:<body onLoad="statusMessage()">
 


顶一下
(0)
0%
踩一下
(0)
0%

上一篇:网店装修的文字颜色代码

下一篇:没有了

淘宝社区简介|免责声明|广告服务|网站地图|网站搜索|友情链接|联系我们

淘宝社区收集整理网上开店的货源和淘宝大学教程,使您在淘宝网开店轻松面对店铺装修模板素材、网店推广等问题

www.taobaoshequ.com    如有意见和建议,请惠赐E-mail至 16504519@qq.com

Copyright © 2007-2011 淘宝社区    沪ICP备07506740号