一:插入背景图片
1.CSS代码
<style type="text/css">
<!--
body{background-image:url(图片地址);
background-repeat:no-repeat;
background-attachment:fixed;
background-position:50% 50%}
-->
</style>
background-attachment 可能值:
scroll : 背景图像是随对象内容滚动
fixed : 背景图像固定
background-repeat 可能值:
repeat 重复背景图形填满页面
repeat-x 水平方向重复背景图形
repeat-y 垂直方向重复背景图形
no-repeat 不重复显示背景图形
调整%前面数值可以调换图片在页面上的位置。
2.
<body background="图片地址" bgproperties="fixed">
bgproperties="fixed"图片位于页面的正中而不随页面的内容一起滚动
3.表格背景图片
插入表格时在弹出的窗口中填上背景图片的链接地址
代码:
<TABLE height=600 width=600 background=图片地址 border=0>
<TBODY>
<TR>
<TD>图片地址</TD></TR></TBODY></TABLE>
八、QQ在线代码
<A href="http://wpa.qq.com/msgrd?V=1&Uin=QQ号码&Menu=yes" target=blank><IMG alt=点这里跟你的昵称交谈 src=http://wpa.qq.com/pa?p=1:QQ号码:1 border=0></A>
更换样式,请将QQ号码:1的1改成1-7任意数。
九、一些小代码
1.添加国际标准时间的代码:
<OBJECT style="WIDTH: 165px; HEIGHT: 63px" codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 align=center border=0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="4366"><PARAM NAME="_cy" VALUE="1667"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="
http://www.time.ac.cn/IMG/DigitalClock.swf"><PARAM NAME="Src" VALUE="
http://www.time.ac.cn/IMG/DigitalClock.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="C0C0C0"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><embed src="
http://www.time.ac.cn/IMG/DigitalClock.swf" width="165" height="63" align="center" quality="High" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#c0c0c0" wmode="transparent"></embed></OBJECT>
演示:
2.奥运会倒计时
演示:
5.词霸