书签
刘文安 [楼主] 发表于:2019-03-22 20:01
鄌郚总编

收集一些有用的代码

  收集一些有用的代码
  1)贴图:<img src=“图片地址”>
  2)加入连接:<a href=“所要连接的相关地址”>写上你想写的字</a>
  3)在新窗口打开连接:<a href=“相关地址” target=“_blank”>写上要写的字</a>
  4)移动字体(走马灯):<marquee>写上你想写的字</marquee>
  5)字体加粗:<b>写上你想写的字</b>
  6)字体斜体:<i>写上你想写的字</i>
  7)字体下划线: <u>写上你想写的字</u>
  8)字体删除线: <s>写上你想写的字</s>
  9)字体加大: <big>写上你想写的字</big>
  10)字体控制大小:<h1>写上你想写的字</h1> (其中字体大小可从h1-h5,h1最大,h5最小)
  11)更改字体颜色:<font color=“#value”>写上你想写的字</font>(其中value值在000000与ffffff(16位进制)之间
  12)消除连接的下划线:<a href=“相关地址” style=“text-decoration:none”>写上你想写的字</a>
  13)贴音乐:<embed src=音乐地址 width=300 height=45 type=audio/mpeg autostart=“false”>
  14)贴flash: <embed src=“flash地址” width=“宽度” height=“高度”>
  15)贴影视文件:<img dynsrc=“文件地址” width=“宽度” height=“高度” start=mouseover>
  16)换行:<br>
  17)段落:<p>段落</p>
  18)原始文字样式:<pre>正文</pre>
  19)换帖子背景:<body background=“背景图片地址”>
  20)固定帖子背景不随滚动条滚动:<body background=“背景图片地址” body
  bgproperties=fixed>
  21)定制帖子背景颜色:<body bgcolor=“#value”>(value值见10)
  22)帖子背景音乐:<bgsound=“背景音乐地址” loop=infinite>
  23)贴网页:<iframe src=“相关地址” width=“宽度” height=“高度”></iframe>
  24)插入文章背景:<TABLE width=“100%” border=0>
  <TBODY>
  <TR>
  <TD background=背景图片URL地址 height=50>
  <P>文章内容</P></TD></TR></TBODY></TABLE>
  (3)具体步骤
  1)加音乐
  音乐地址:可以通过百度MP3搜索你想要加入的歌,然后点一个听一下,这时页面上会有一个类似“http:www.xxxxxxxx.mp3”这样的网址,这就是音乐地址。(注意:要先点击听一下,如果不卡再用。)
  <embed src=音乐地址 width=300 height=45 type=audio/mpeg autostart=“false”>
  把以上代码中的autostart=“false”改为autostart=“true”就可以让音乐自动播放。
  2)天气预报(代码如下)
  <H2><IFRAME align=center marginWidth=0 marginHeight=0 src=“http://weather.news.qq.com/inc/ss211.htm” frameBorder=0 width=189 scrolling=no height=190></IFRAME></H2>
  3)涂鸦板(代码如下)
  <EMBED pluginspage=_Prod_Version=ShockwaveFlash src=http://flash.haoniub.com/flash_data/fe_f/6633.swf width=280 height=300 type=application/x-shockwave-flash quality=“high”>
  4)词典(代码如下)
  <TABLE cellSpacing=0 cellPadding=0 align=center border=0>
  <TBODY>
  <TR>
  <TD>输入您要查询的单词(汉语/英语)<BR>
  <FORM action=http://www.netat.net/word.jsp method=post target=_blank><INPUT size=22 type=submit value=查询词典
  5)邮箱快速登陆(代码如下)
  <DIV align=center>
  <FORM action=http://219.129.20.144:8000/sendmail.asp method=post target=_blank anonymous() {return chkinput2(this);}“>
  <P align=center><SELECT tabIndex=2 size=1 <OPTION value=”“ selected>请选择你的邮箱</OPTION> <OPTION value=21cn.com>@21cn.com</OPTION> <OPTION value=163.net>@163.net</OPTION> <OPTION value=tom.com>@tom.com</OPTION> <OPTION value=163.com>@163.com</OPTION> <OPTION value=vip.163.com>@vip.163.com</OPTION> <OPTION value=sohu.com>@sohu.com</OPTION> <OPTION value=263.net>@263.net</OPTION> <OPTION value=sina.com>@sina.com</OPTION> <OPTION value=vip.sina.com>@vip.sina.com</OPTION> <OPTION value=mail.china.com>@mail.china.com</OPTION> <OPTION value=china.com>@china.com</OPTION> <OPTION value=netease.com>@netease.com</OPTION> <OPTION value=yeah.net>@yeah.net</OPTION> <OPTION value=etang.com>@etang.com</OPTION> <OPTION value=fm365.com>@fm365.com</OPTION> <OPTION value=cn.yahoo.com>@yahoo.com.cn</OPTION> <OPTION value=xinhuanet.com>@xinhuanet.com</OPTION> <OPTION value=eyou.com>@eyou.com</OPTION> <OPTION value=email.com.cn>@email.com.cn</OPTION> <OPTION value=ynmail.com>@ynmail.com</OPTION> <OPTION value=citiz.net>@citiz.net</OPTION> <OPTION value=126.com>@126.com网易50M</OPTION> <OPTION value=elong.com>@elong.com</OPTION> <OPTION value=hotmail.com>@hotmail.com</OPTION></SELECT> <BR>帐号:<INPUT style=”FONT-SIZE: 12px“ tabIndex=3 size=12 <BR>密码:<INPUT style=”FONT-SIZE: 12px“ tabIndex=3 type=password size=12 <INPUT style=”FONT-SIZE: 13px; WIDTH: 30px; HEIGHT: 24px“ tabIndex=4 type=submit size=4 value=提交查询内容 anonymous(){setTimeout(‘clearpass()',1000)}”></P></FORM></DIV>
  6)鼠标指针(代码如下)
  <DIV>
  <STYLE type=text/css>
  a:hover { cursor:url(’鼠标地址一‘)}
  BODY { cursor:url(’鼠标地址二‘)}
  </STYLE></DIV>
  鼠标地址 到CSS鼠标样式大全http://myok.blogchina.com/2081936.html去找一个想要的吧!(注意:鼠标地址只是像这样的“http://webme.bokee.com/inc/mouse001.ani”)
  7)时钟(代码如下)
  <DIV><CENTER><EMBED src=时钟地址 width=178 height=178 type=application/octet-stream></CENTER></DIV>
  时钟地址 到http://myok.blogchina.com/2394396.html里找
  8)文字从下至上滚动(代码如下)
  <MARQUEE scrollAmount=1 scrollDelay=77 direction=up width=270 height=77 >叶的离去 <BR>是因为风的追逐 <BR>还是树的不留恋呢 <BR>或许 <BR>叶的离开 <BR>正是叶自己的选择</MARQUEE>
  (只要把想写的字放到代码中汉字的位子就可以了,如果不够就多打几个<BR>,字写在2个<BR>之间)
  9)透明FLASH特效(代码如下)
  <DIV><EMBED style=“LEFT: 10px; ; TOP: -70px” align=right src=“FLASH地址” width=800 height=600 type=application/x-shockwave-flash wmode=“transparent” quality=“high” ;></EMBED></DIV>
  FLASH地址
  http://imgfree.21cn.com/free/flash/51.swf三只飞舞的蜻蜓、闪闪的星光
  http://imgfree.21cn.com/free/flash/52.swf黑色背景飘落的红叶
  http://imgfree.21cn.com/free/flash/53.swf雪糕降落
  http://imgfree.21cn.com/free/flash/54.swf绿色的心和I love you垂直降落
  http://imgfree.21cn.com/free/flash/55.swf两只跳跃的青蛙
  http://imgfree.21cn.com/free/flash/56.swf六边形、降落的竖条
  http://imgfree.21cn.com/free/flash/57.swf燕鱼和水泡
  http://imgfree.21cn.com/free/flash/58.swf光晕、光圈
  http://imgfree.21cn.com/free/flash/59.swf浅兰背景白色大雁飞过
  http://imgfree.21cn.com/free/flash/60.swf黑色背景降落的萤火虫
  http://imgfree.21cn.com/free/flash/61.swf飞腾的红心
  http://imgfree.21cn.com/free/flash/62.swf五彩礼花燃放
  http://imgfree.21cn.com/free/flash/63.swf黄色的四瓣花飘落
  http://imgfree.21cn.com/free/flash/64.swf浅蓝色的雪花在空中,小雪花降落
  http://imgfree.21cn.com/free/flash/65.swf飘落的空心小兰圈
  http://imgfree.21cn.com/free/flash/66.swf一只手的图形
  http://imgfree.21cn.com/free/flash/67.swf由远而近飞来的流星
  http://imgfree.21cn.com/free/flash/68.swf黑色背景飘落的雪花
  http://imgfree.21cn.com/free/flash/69.swf七彩光光芒四射(全屏)
  http://imgfree.21cn.com/free/flash/70.swf七彩光光芒四射(全屏)
  http://imgfree.21cn.com/free/flash/71.swf闪动的小竖条
  http://imgfree.21cn.com/free/flash/72.swf一只和平鸽展翅飞舞
  http://imgfree.21cn.com/free/flash/73.swf蓝色背景蓝色气泡慢慢升空
  http://imgfree.21cn.com/free/flash/74.swf白色背景浅蓝色的气泡慢慢升空
  http://imgfree.21cn.com/free/flash/75.swf跟随鼠标游动的七彩光圈
  http://imgfree.21cn.com/free/flash/76.swf 线条变形
  http://imgfree.21cn.com/free/flash/77.swf蓝色旋转
  1、显示IP地址:
  <align=center><IMG src=http://www.myelogo.com/elogo_user/2.jpg></P>
  2、留言本:
  先申请一个留言本,网上可多了。插入一下代码(更改成您的地址):
  <a href=“http://www.babylover.net/free/free1/index.asp?user=ybcz0519
  ” target=“_blank”><font color=“red”>给我留言</font></a>
  3、插入QQ:
  <a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=2028884&Site=http://www.blog.163.com/ybcz0519/&Menu=yes><img border=“0” SRC=http://wpa.qq.com/pa?p=1:2028884:13 alt=“发消息”></a>
  4、你的QQ秀:
  <IMG src=“http://qqshow-user.tencent.com/2028884/10/00”>
  5、计数器:
  <div align=“center”><a href=“http://www.ezisp.info/dialup/netzero.html”><font color=“#999999”>NetZero Internet</font></a></small></div>
  6、时钟:更多请见  漂亮的时钟
  <embed src=“http://www.clocklink.com/clocks/1004-White.swf?TimeZone=NZT&”  width=“150” height=“150” wmode=“transparent” type=“application/x-shockwave-flash”>
  7、日历
  <embed src=“http://www.nshen.net/blog/attachments/month_0505/rili.swf” width=“180” type=“application/x-shockwave-flash”></embed>
  8、播放器:
  <embed src=http://www.filelodge.com/files/room16/409917/singlemp3player.swf?file=http://gaea.hit.edu.cn/d03/2003/05/31/011.mp3&autoStart=true&backColor=000000&frontColor=ffffff width=“180” height=“19” type=“application/x-shockwave-flash”></embed><p></p
  9、图片特效:
  基本代码:
  <img src=“” style=“filter:效果”>
  或<div style=“filter:效果 ;width:80;height:80”><img src=“
  特效方法:将特效代码替换”效果“即可。
  A、柔化效果:Alpha(opacity=100,finishOpacity=0,style=0)
  B、翻转效果:左右翻转FlipH; 上下翻转FlipV
  C、灰调格式:Gray
  D、X光效果:Xray
  E、色彩对换:Invert
  F、模糊效果:Blur(direction=135)
  G、波形效果:Wave(freq=5,strength=5,lightstrength=5,phase=5)
搜索更多相关文章:电脑之家
回复 引用 顶端