欢迎注册真刷社区,解锁全套干货资源!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
看到几个新开店的朋友不会装修,给大家找了几个常用的代码,希望能对大家有点帮助,我的店铺都是基本自己装修的,有什么不明白的大家可以找我,我们一起学习、交流!
扶植版淘宝店铺轮播图片代码:
<DIV class="slider-promo J_Slider J_TWidget tb-slide"style="WIDTH:750px; HEIGHT: 450px" data-widget-type="Slide" data-widget-config="{'effect':'fade', 'contentCls': 'lst-main', 'navCls': 'lst-trigger', 'activeTriggerCls': 'current'}">
<ul class="lst-main tb-slide-list" style="HEIGHT: 450px">
<li><A href="链接地址"
target=_blank><img height=450 alt="" src="图片地址"></A>
<li><A href="链接地址" target=_blank><img height=450 alt="" src="图片地址"></A>
<li><A href="链接地址" target=_blank><img height=450 alt="" src="图片地址"></A>
<li><A href="链接地址" target=_blank><img height=450 alt="" src="图片地址"></A></li></ul><ul class=lst-trigger>
<li>1 <li>2 <li>3 <li>4</li></ul></DIV>
下面这个是实例
<div class="slider-promo J_Slider J_TWidget " data-type="scroll" data-widget-type="Slide" style="height:285px;" data-widget-config="{'effect':'scrolly','contentCls': 'lst-main', 'navCls': 'lst-trigger', 'activeTriggerCls': 'current'}">
< ul class="lst-main">
< li><a href="#" style="height:285px;" target="_blank"><img src="http://www14.tx8.cn/photo/hhzxf3/1.jpg" alt=""></a></li><li><a href="#" style="height:285px;" target="_blank"><img src="http://www14.tx8.cn/photo/hhzxf3/2.jpg
y="85" direction="up" behavior="scroll" height="60">
<img src="加入你自己的图片地址" />
基本代码<marquee>...</marquee>
<marquee>你看我会从右向左移!</marquee>
<marquee direction="right">你看会我从左向右移!</marquee>
<marquee direction="up">你看我会从下向上移!</marquee>
<marquee direction="down">你看我会从上向下移!</marquee>
2
移动方式 #=scroll,alternate
代码:
<marquee>你看我会一圈一圈绕着走!</marquee>
<marquee behavior="alternate">你看我会来回走!</marquee>
3速度 scrollamount="#"
代码:<marquee scrollamount="20">你看我走得好快哦!</marquee>
4延时 scrolldelay="#"
代码:<marquee scrollamount="100" scrolldelay="500">你看我走走停停!</marquee>
5底色 bgcolor=#
#=rrggbb16 进制数码,或者是下列预定义色彩:
Black,Olive,Teal,Red,Blue,Maroon,Navy,Gray,Lime,
Fuchsia,White,Green,Purple,Silver,Yellow,Aqua
代码:<marquee bgcolor="#aaaaee">你看我会移动而且还有背景色哦! </marquee>
6面积 height="#" width="#"
代码:<marquee bgcolor="#aaeeaa" height="40" width="50%">你看我会移动 而且宽度只占一半哦!</marquee>
忽视右键
<body oncontextmenu="return false">
或
<body style="overflow-y:hidden">
加入背景音乐
IE:<bgsound src="*.mid" loop=infinite>
NS:<embed src="*.mid" autostart=true hidden=true loop=true>
</embed>
*.mid你的背景音乐的midi格式文件
拉动页面时背景图不动
<style>
body{background-image:url(logo.gif);
background-repeat:no-repeat;background-position:center}
</style>
6、让浏览器在保存页面时保存失败
<NOSCRIPT><iframe src="*.html"></iframe></NOSCRIPT>
随机替换图片
<script>
document.write(<img src="img/+parseInt(Math.random()*(5))
+.gif"height="40" width="50">)
</script>
图片文件名为0.gif 1.gif 2.gif 3.gif 4.gif
网页自动关闭
<html>
<head>
<object id=closes type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
</head>
<body onload="window.setTimeout(closes.Click(),10000)">
这个窗口会在10秒过后自动关闭,而且不会出现提示.
</body>
</html>
网页自动刷新
在head部记入
<META HTTP-EQUIV="Refresh" content="20">
其中20为20秒后自动刷新,你可以更改为任意值。
网页自动转页
<META HTTP-EQUIV="Refresh" CONTENT="时间(秒);URL=地址">
返回上一页
<a href=javascript:history.back(1)>『返回上一页』</a>
14、关闭窗口
<a href=javascript:self.close()>『关闭窗口』</a>
15、关于iframe的透明背景
<IFRAME ID="iFrame1" SRC="iframe.htm"
allowTransparency="true"
style="background-color: green"></IFRAME>
|