这是笔者初涉图书馆时的学习备忘笔记。很不全面甚尔有误,但还是愿意公开它,供后介入者学习时参考,仅此而已。
我 的 常 用 标 签 代 码
1、 贴图标签: 三种表示法 ①、 <img style="width: 460px; height: 350px"
src=
http://image18.360doc.com/DownloadImg/2010/11/2814/7176269_1.jpg >
说明: img 插入图片命令; style 风格 ; src 采样 ②、 <img height=178 src="//image25.360doc.com/DownloadImg/2011/03/1813/10108135_1.jpg" >
③、还有另一种方式:
<input type=image
src=" http://image4.360doc.com/DownloadImg/2009/8/20/114516_5071982_68.jpg" width=700>
说明: input 是输入之意 ; type---类型 ; input type=image 提交图片按钮;
2、文字标签(两种表示法) ①、 <font face=宋 size=6 color=#FF0000><b>锦绣中华</b></font>
②、 <font face=楷体_GB2312 style=font:30pt color=#FF0000><b>锦绣中华</b></font>
说明:<标签名称+三个属性数值>所写的字+尾标签;
文字属性有三:字体(都是用face=表示)、大小(size=6 或style=font:30pt )、颜色(表示方法相同)。
文字在图片上的位置:<DIV align=center>,你可选 center(居中),
right(靠右),left(靠左);
文字换行,在文字之间加<BR>标签。
<b>是加重加粗
附: 常用颜色代码如下: #ff0000=红色 #00ff00=绿色 #0000ff=蓝色 #ffff00=黄色 #00ffff=青色 #ff00ff=紫色
#8b3e2f=褐色 #8b6508=浅褐 #87ceff=天蓝 #76ee00=草绿 #ff0099=粉红色
注:①、字色在000000至ffffff(16进位)之间,由00至ff,字色由浅到深。
②、前两位代表红色,中间两位代表绿色,后两位代表蓝色。
③、可按自已的喜好组合(代码要求使用英文字符)。
3、移动标签
1)、 <marquee scrollamount=2 direction=up width=350 height=120>
说明:有三个属性即速度、方向、 范围
①、速度:scrollamount=2---速度为2;
②、动作方向:(direction 是趋势、方向)
direction= up--向上移 (另:top 是顶端)
direction=left--向左移;
direction=right --向右移;
direction=down---向下移)
behavior=alternate --来回移动 (behavior 是行为 alternate是交替);(适用于顶图等)
完整来回移动标签:<marquee scrollamount=3 behavior=alternate width=990 height=190>
③、 范围:这里的width=350 height=120是图片或文字移动的范围。
2)、另有几个移动标签如下:
<MARQUEE scrollAmount=3 scrollDelay=0 behavior=alternate> (就是来回移动)
<MARQUEE scrollAmount=2 scrollDelay=0 direction=down behavior=alternateheight=300>
<MARQUEE scrollAmount=1 scrollDelay=0 behavior=alternate width=400>
这些是节制图片移动的代码。
蓝色的1、2、3是把持图片挪动的速度,数字越大移动的越快。
图片或文字波浪式移动: 代码:
<table style="WIDTH: 620px; HEIGHT: 400px" height=300 cellPadding=0 width=620 align=center
background=http://image21.360doc.com/DownloadImg/2011/01/0714/8296724_15.jpg border=0>
<tbody>
<tr>
<td>
<marquee style="WIDTH=620; HEIGHT=350px" scrollAmount=2 direction=up behavior=alternate width=620>
<marquee direction=right><img height=150 src="图片地址"></marquee></marquee></td>
</tr>
</tbody>
</table>
注:1)、前边表格标签是背景图片;后面贴图标签是移动图片。
2)、后面WIDTH、HEIGHT是滚动区域;scrollAmount是速度;direction是方向;
behavior属性=alternate交替滚动。
3)、direction=right是从左向右动,若把right改为left就从右往左了。
4)、贴图标签中图片高宽必须小于移动范围,移动范围高宽必须小于背景。
5)、把贴图标签删除,该位置换成文字,能实现该文字的移动。
4、连接标签代码: 1)、空行:
空一横行时,用一个 <DIV> </DIV>或用<DIV align=left></div>
空二横行时,用二个 <DIV> </DIV>或用<DIV align=left></div>
2)、上下排列图片(带顺号)时空行衔接标签组:
①、第1图片主体标签的前面应是:
<DIV align=left>
<DIV align=left>1、</DIV>
②、下面的图片之间的衔接:
如第3图和第4图之间的衔接,应在第3图尾标签后接:
<DIV align=left> </div>
<DIV align=left></div>
<DIV align=left> </DIV>
<DIV align=left>4、</div>
其后紧接第4图主体标签。
3)、移动文字标签的衔接
①、移动文字在背景图片内:
表格(图片背景)标签后加<tbody><tr><td>
然后紧跟移动标签,标签中还要有align="right",然后是文字标签;
②、移动文字在背景图片上方: 表格标签(不要背景属性)后加<tbody><tr><td> 然后紧跟移动标签,再<div class="ztag cnt pre">,然后才是文字标
签,再小封口到</tr>再跟<tbody><tr><td>贴图标签;
③、移动文字在背景图片下方:
表格标签(不要背景属性)后加<tbody><tr><td>贴图标签,小收口</td></tr>,
之后再<tbody><tr><td>移动标签、<div class="ztag cnt pre">、文字标
5、移动图片代码=移动+贴图
<marquee scrollAmount=2 behavior=alternate width=960><img style="WIDTH: 1200px; HEIGHT: 178px" src=" http://userimage2.360doc.com/11/0102/20/328003_20110102201530214.jpg "></marquee></div>
注:behavior---行为;behavior=alternate :来回移动
6、表格标签:
<table borderColor=#8b3e2f height=150 cellSpacing=3 cellPadding=10 width=700 bgColor=#00ff00 border=10>
说明:<标签名称+七个属性数值>其中table是标签名称-表格.后有七个属性和属值:
①、bgColor=#00ff00 是颜色背景(绿);borderColor=#8b3e2f:边框颜色褐
bgcolor=#00ff00改为 background=http://image21.360doc.com/DownloadImg/2011/01/0714/8296724_15.jpg即成为图片背景图框
②、其它五个分别是 ·width=700 表格(图框)宽度700个点.
·height=150 表格(图框)高度150个点
·border=10":边框粗度10个点.
·cellspacing="3":单元格间距,就是图框内细线与边框的距离.
·cellpadding="10":单元格衬距,就是插入内容与单元格间距细线的距离.
表格标签里加一个“title=清泉书馆”则图上出现“清泉书馆”随鼠标显示。
表格文字代码:
<table borderColor=#8b3e2f height=150 cellSpacing=3 cellPadding=10 width=700 bgColor=#00ff00 border=10>
<tbody><tr><td>
<font face=楷体_GB2312 style=font:30pt color=#FF0000>
清泉书馆欢迎您的光临 </font></td>
</tr></tbody></table>
说明:
①、第一标签是标准的表格标签
②、<tbody><tr><td>分别是主体显示从上到下和竖横标签.
③、第五标签是文字标签.
④、最后一行是全部尾标签.
7、表格移动文字代码:(图片背景、颜色背景)
①、移动标签:<marquee scrollAmount=4 direction=up width=700 height=130>
②、表格、<tbody><tr><td>、移动、文字标签顺序排列而成:
<table borderColor=#8b3e2f height=180 cellSpacing=3 cellPadding=10
width=350 background=http://sucai.heima.com/sucai/news/bg/48.jpg border=7>
<tbody><tr><td>
<marquee scrollAmount=4 width=350 height=130> <font face=楷体_GB2312 style=font:30pt color=#FF0000>
清泉书馆欢迎您的光临
</font></marquee></td>
</tr></tbody></table>
注:把 background=http://sucai.heima.com/sucai/news/bg/48.jpg换成bgColor=#00ff00
上面就成颜色背景移动文字了。
8、图片+多元文字(含移动)代码
①、国庆节快乐(多元文字部分移动)代码 <p align=center>
<table id=table1 height=250 cellSpacing=1 cellPadding=10 width=355 background=http://image21.360doc.com/DownloadImg/2011/01/0714/8296724_15.jpg border=0>
<tbody><tr><td vAlign=top align=left height=30>
<div><font style="FONT-SIZE: 25pt" face=华文行楷 color=#00ff00><strong><br>送给志英兄弟 </strong></font></div>
</td></tr><tr><td>
<marquee scrollAmount=4 direction=up width=355 height=180 align="middle"><font style="FONT-SIZE: 40pt" face=华文行楷 color=#ff0000><strong><br> 国庆节快乐!</strong> </font></marquee></td></tr><tr>
<td vAlign=bottom align=right height=30><font style="FONT-SIZE: 25pt" face=华文行楷 color=#00ff00><strong>清泉m</strong>
</font></td></tr> </tbody></table></p>
注:定位插入时有水平定位对齐align=center居中(或=left左对齐,或=right右对齐)
还有垂直定位对齐vAlign=top靠顶(或=bottom靠底)
定位插入时,关键是确定水平定位起始点及宽度和垂直定位起始点及高度。(总高240=30+180+30)
②、恭祝朋友
<table height=280 cellPadding=10 width=355 align=center background=http://image5.360doc.com/DownloadImg/2009/12/2/325909_10239741_17.jpg border=3 table="0"><tbody><tr><td>
<div align=center><font face=楷体_GB2312><font size=4><font color=#ffffff></font></font></font>
<marquee style="WIDTH: 340px; HEIGHT: 100px" scrollAmount=2 direction=up height=84><font color=#ff00ff>
<div align=center><font face=楷体_GB2312 color=#ff0000 size=6>恭祝朋友节日快乐</font></div>
<div align=center><font face=楷体_GB2312 color=#ff0000 size=6></font><br></div>
<div align=center><font face=楷体_GB2312 color=#ff0000 size=6>阖家融融身体棒棒</font></div>
<div align=center><font face=楷体_GB2312 color=#ff0000 size=6></font><br></div>
<div align=center><font face=楷体_GB2312 color=#ff0000 size=6>万事如意幸福安康</font></div>
<div align=center><font face=楷体_GB2312 color=#ffff00 size=6></font><br></div>
<div align=center><font face=楷体_GB2312><font size=6><font color=#00ff00>清泉m贺</font></font></font></div>
</font></marquee></div></td></tr></tbody></table>
9、顶图用置顶标签: <div style="LEFT: 5px; POSITION: absolute; TOP: 21px">或
<div style="LEFT: 10px; POSITION: absolute; TOP: 2px">
放置左栏标签:<DIV style="POSITION: absolute; TOP: 1900px; LEFT: 26px" class=divBorderStyle>
10、首页定位(左、中、右)图片代码(放置普通左中右栏图片时用绝对定位标签+贴图标签就行)
<div style="LEFT: 2px; POSITION: absolute; TOP: 1325px">
<marquee scrollAmount=1 behavior=alternate width=225><img style="WIDTH: 925px; HEIGHT: 700px" src="//image18.360doc.com/DownloadImg/2010/11/2814/7176269_1.jpg"></marquee></div>
注:设于中部时LEFT取230px width=350px; 设于右面时LEFT=600px width=355px; 整面宽图时width=960px.
11、 缩图代码:
<a href="大图片地址" target="-blank"><img src="还是大图片地址" width="50" height="50"> 点击放大></a>
12、图片的水平、垂直翻转代码:
图片水平(左右)翻转代码:
<img src="图片地址" style="filter:FlipH">
或
<div style="filter:FlipH ;width:200;height:130"><img src="图片地址"></div>
图片垂直(上下)翻转代码:
<img src="图片地址" style="filter:FlipV">
或
<div style="filter:FlipV ;width:200;height:130"><img src="图片地址"></div>
13、美化首页的其他代码和素材
1)、首页物件绝对定位代码:
此代码能将你要放置到首页的任何物件,绝对定位到你要放置到的任何位置。如:时钟、日历、动画等等。
代码如下:
<div style="LEFT: 26px; POSITION: absolute; TOP: 587px">编辑好的物件代码 </div>
温馨提示:(360DOC)
△、如果你的物件是放置在顶部,物件的高最好不要大于210px; △、如果你的物件是放置在左面,物件的宽最好不要大于210px;
△、其它位置最好不要放置物件,否则,可能挡住其它板块上的功能使用。
△、以上操作须在“代码”状态下编辑好。
(具体步骤:点击“撰写文章”→点击“代码”→粘贴(所要代码并编辑好)→点击“编辑”→复制(全选)→(我的图书馆首页)点击“添加模块”→点击“我的公告”→粘贴→确定)
★ 添加图片的代码:
<img src="图片地址" border="25" width="211" height="321" />
★添加时钟的代码:
<embed src="时钟地址" width="180" height="180" type="application/x-shockwave-flash">
★添加挂件的代码:
·左边挂件:
<DIValign=left><IMG src="挂件地址" align=left><DIV>
·右边挂件:
<DIValign=right><IMG src="挂件地址" align=right></DIV>
★图片上加文字的代码:
<table height=280 width=365 background=图片地址 border=0>
<tbody>
<tr>
<td align=middle><font style="FONT-SIZE: 32pt" face=华文新魏 color=red><strong>文字内容</strong> </font></td>
</tr>
</tbody>
</table>
2)、放置首页顶图(图片+文字)的代码:(支持格式:JPG、GIF)
<div style="LEFT: 23px; POSITION: absolute; TOP: 24px">
<div align=center>
<table style="WIDTH: 960px" height=169 cellSpacing=0 cellPadding=0 background=http://userimage2.360doc.com/10/0921/04/328003_20100921043330867.jpg border=0>
<tbody>
<tr>
<td>
<div align=center><span style="FONT-SIZE: 24pt; COLOR: #ff0000"><br>输入你想写的字</div>
</span>
<div> </div>
</td>
</tr>
</tbody>
<div></div>
</div>
</div>
放置首页顶端滚动文字的代码:
<div style="LEFT: 84px; POSITION: absolute; TOP: 1px">
<marquee style="COLOR: #cc0099" scrollAmount=2>输入你想写的字</marquee></div>
放置首页顶端滚动文字及图片的代码:(支持格式:JPG、GIF)
<div style="LEFT: 84px; POSITION: absolute; TOP: 1px">
<marquee style="COLOR: #cc0099" scrollAmount=2><a><font size=3><img src="//image11.360doc.com/DownloadImg/2010/03/2100/3328347_7.jpg" border=0></font></a></font>~~输入你想写的字~~</marquee></div>
放置首页天气预报的代码:
<div style="LEFT: 90px; WIDTH: 823px; POSITION: absolute; TOP: 165px; HEIGHT: 31px"><iframe style="WIDTH: 803px; HEIGHT: 27px" src="//www.thinkpage.cn/weather/weather.aspx?uid=&c=CHXX0008&l=zh-CN&p=CMA&a=1&u=C&s=4&m=0&x=0&d=5&fc=&bgc=&bc=&ti=1&in=1&li=2" frameBorder=0 scrolling=no allowTransparency></iframe></div>
放置首页动画的代码:(支持格式:SWF)
<div style="LEFT: 23px; POSITION: absolute; TOP: 950px"><embed style="WIDTH: 211px; HEIGHT: 113px" pluginspage=http://www.macromedia.com/go/getflashplayer src=http://www.xcwhw.cn/fla/yh/7.swf type=application/x-shockwave-flash wmode="transparent" autostart="1" quality="high"></div>
放置首页播放器的代码:(支持格式:MP3)
<div style="LEFT: 23px; POSITION: absolute; TOP: 1063px"><embed style="DISPLAY: block; WIDTH: 211px; HEIGHT: 106px; TEXT-ALIGN: center" src=http://www.zqzone.cn/show/mp3/swf/zQzone_cn357.swf?song=输入歌曲名&autoStart=yes&repeatPlay=yes&mp3=http://news.newone.com.cn/tmp/achieve0901/pic/1.mp3&.swf type=application/x-shockwave-flash loop="1" autostart="1" wmode="transparent" invokeURLs="false" allowNetworking="internal" allowScriptAccess="never"></div>
14、鼠标放上去停止滚动,移开继续滚动
向左:
<marquee onmouseover=this.stop() onmouseout=this.start() >
<center><font color="lime" size="5" face="隶书">清泉m真诚欢迎您的光临</font></marquee>
向上:
<marquee onmouseover=this.stop() onmouseout=this.start() scrollAmount=3 direction=up>
<center><font color=red style="FONT-SIZE: 18pt" face="华文新魏" >清泉m祝朋友天天开心</font></center></marquee>