简单代码
常用代码
1.网页背景(拖动下拉滚动条时,背景和帖一起滚动)
<br>
<style type=text/css>
<!--body{background-image:url(/UserFiles/2006-8/5/20068584124114.gif);
-->
</style>
2.网页背景(背景固定为一张大图片,背景固定,帖滚动)
<style type=text/css>
<!--
body {
background-image: url( /UserFiles/2006-8/5/20068584124773.jpg);
background-repeat: no-repeat;
background-position:top;
background-attachment: fixed;
background-color:writer
}
-->
</style>
想换其它背景,就直接把那个图片网址改成另一张图片的网址就可以了。
3.帖背景(可以在背景图片上直接输入文字等,只针对单个帖)。
<table style="width: 440px; height: 175px" bordercolor=#00fff background=http://love.vivian.jp/sozai/kabe/star01.gif border=3><t>
<tbody>
<tr>
<td>
<p><palign=center></p></td></tr&g t;</tbody></table>
bordercolor的值是指外框的颜色,颜色代码见本帖最后.border的数值,是指外框厚度.
要换其它背景,就直接改一下那个网址即可。要注意的是,网址后面有半个空格,不要掉了。
4.滚动效果
<marquee scrollamount=1 direction=up width=150 height=150>
<p align=center></p></marquee>
5.滚动暂停(鼠标放到滚动的背景上,就会暂停)
<marquee onmouseover=this.stop() style="width: 531px; height: 106px" onmouseout=this.start() scrollamount=1 direction=up></marquee>
以上两个代码中
scrollamourt是控制速度的,数值越大,速度越大
direction是控制方向的,可以是up\down\left\right
效果图出来以后,单击外框,出现8个点,可以托动控制其大小。三击背景区域,就可以直接编辑了。
6.单首歌循环播放
<embed src=http://ent.qq.com/music/shanliangdianyanlu.MP3 width=300 height=50 type=audio/mpeg loop="-1">
隐藏播放器(单曲循环)
<embed src=http://ent.qq.com/music/shanliangdianyanlu.mp3 width=0 height=0 hidden=true type=audio/mpeg loop="-1">
将那个网址改成其它歌曲网址即可。
7.文本框滚动条
<font style="font-size: 11pt; overflow: auto; width: 43.37%; font-family: times new roman; height: 79px" face="courier new, courier, monospace" color=#0000ff>
<p> </p></font>
同样,单击外框,出现8个点,可以托动控制其大小.三击背景区域,就可以直接编辑
8.动画光标(网页上以动画显示的鼠标)
</style>
<style><!--
body{
cursor:url("http://webme.bokee.com/inc/mouse014.ani");
}
-->
</style>
同样,把那个网址改成其它动画光标的网址即可。
提拱一些现成的网址
http://webme.bokee.com/inc/mouse012.ani(这是一个)
再把网址中的mouse012改成mouse013就又是一个,这样改下去,一直到mouse062,一共就有51个网址了,或者,自己到百度去搜索"动画光标",有很多网站都提拱下载(ani文件只能是下载)。
下载到电脑后,再上传,获得网址.这里,介绍一个支持上传ani文件的网站:http://bzwaltz.w1.net.cn/upload/upload.asp
操作步骤
先选中一整段代码,按“ctrl+c”把它复制下来,再点击下面的网址,打开代码编辑器http://www.doryuen.net/article/editor/editor.asp如下图,勾选“查看html源代码”。