<!-- 应朋友们的要求,现将我在博客中常用的一些特效代码写出来供大家参考!
一、加入时钟代码: 代码格式:<embed src="flash时钟地址" width="宽度值或百分比" height="高度值" /> 举例说明:<div align="center"><embed src=http://myboard.zj.com/clock/clock13.swf width="180" height="180" type="application/x-shockwave-flash" /></div> 时钟样式请见本站:163款各式时钟
二、如何加入透明Flash背景: 代码格式:<embed src="Flash地址"; width="画面宽度" height="画面高度" quality="high" wmode="transparent" align="center" style="position: absolute; left:0; top:0"> 此代码为插入透明flash代码,其中 width="" 为flash的宽,height="" 为 flas的高,left: 为从左向右移的位置,top: 为从上向下移的位置 举例说明:<embed src="http://lain1978.com/collection/flash/fish.swf "; width="800" height="600" quality="high" wmode="transparent" align="center" style="position: absolute; left:0; top:0"> Flash背景素材请见本站:Flash素材01_小雨 等
插入Flash动画代码: 代码:<div><embed src="动画地址" width="98%" height="450"/></div>
三、鼠标样式代码(加入到样式表中的body中) 绿叶: CURSOR: url('http://www.52blog.net/uploadfile/20041214112739616.cur'); 粉红玫瑰 cursor:url(http://yuhou.net/build/images/03.cur); 羽毛 CURSOR: url('http://www.blogcup.com/uploadfile/200559203014735.ani'); 其他 CURSOR: url('http://soft.mumayi.net/inc/Arrow.ani'); cursor:url(http://www.51hongtu.com/mouse.ani);
四、背景音乐代码 请看本站相关文章:如何在网页中加入背景音乐
五、添加邮箱快速登录代码 <div align=center><form name="loginmail" onsubmit=" anonymous() {return chkinput2(this); }" action=http://219.129.20.144:8000/sendmail.asp method="post" target="_blank"><select tabindex="2" size="1" name="site"> <option ="">请选择你的邮箱</option> <option ="21cn.com">@21cn.com</option> <option ="163.net">@163.net</option> <option ="tom.com">@tom.com</option> <option ="163.com">@163.com</option> <option ="vip.163.com">@vip.163.com</option> <option ="sohu.com">@sohu.com</option> <option ="263.net">@263.net</option> <option ="sina.com">@sina.com</option> <option ="vip.sina.com">@vip.sina.com</option> <option ="mail.china.com">@mail.china.com</option> <option ="china.com">@china.com</option> <option ="netease.com">@netease.com</option> <option ="yeah.net">@yeah.net</option> <option ="etang.com">@etang.com</option> <option ="fm365.com">@fm365.com</option> <option ="cn.yahoo.com">@yahoo.com.cn</option> <option ="xinhuanet.com">@xinhuanet.com</option> <option ="eyou.com">@eyou.com</option> <option ="email.com.cn">@email.com.cn</option> <option ="ynmail.com">@ynmail.com</option> <option ="citiz.net">@citiz.net</option> <option ="126.com">@126.com网易50M</option> <option ="elong.com">@elong.com</option></select><br />帐 号:<input style="FONT-SIZE: 12px" tabindex="3" size="12" name="user" /><br />密码:<input style="FONT-SIZE: 12px" tabindex="3" type="password" size="12" name="pass" /><input style="FONT-SIZE: 13px; WIDTH: 30px; HEIGHT: 24px" =" anonymous() {setTimeout('clearpass()',1000) }" tabindex="4" type="submit" size="4" name="Submit2" /></form></div>
六、添加搜索引擎代码 <div align=center><i id="baidu" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" spacing="0" border="0" scrolling="no" width="200" height="30" src="http://unstat.baidu.com/bdun.bsc?tn=dabaoku&cv=1&cid=31577&csid=102&rkcs=2&bgcr=EDEDEB&ftcr=FF0000&rk=1&bd=1&bdas=0"> </i></div><div align=center><FORM method=GET action="http://www.google.com/search" target=_blank> <input type=hidden name=ie =GB2312> <input type=hidden name=oe =GB2312> <INPUT TYPE="hidden" NAME="hl" ="zh-CN"> <A HREF="http://www.google.com/" target=_blank> <IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" height="20px"></A><INPUT TYPE=text name=q size=12 maxlength=255 =""> <INPUT type=submit name=btnG ="搜索"> <input type=hidden name=domains ="这里输入你的网站地址"</br> <input type=radio name=sitesearch ="">全球搜索 <input type=radio name=sitesearch ="这里输入你的网站地址" checked> 本站搜索<br> </font></FORM></div>
七、文字移动代码 <marquee over=this.stop() out=this.start() scrollamount="1" scrolldelay="60" direction="up" width="180" height="210"><div><font color="#ff0000"><b>本站公告</b></font></div><div><font color="#003366">这里是移动文字内容</font></div></marquee>
八、图片链接移动代码 <marquee over=this.stop() out=this.start() scrollamount="1" scrolldelay="60" direction="up" width="200" height="230"><div align="center"><a href="http://myok.blogchina.com/1574968.html" target="_blank"><img src="http://www.guilintour.net/pic/upload/200471269665.jpg" width="200" border="0" /></a></div><div align="center"><a href="http://myok.blogchina.com/1575395.html" target="_blank"><img src="http://ccd.zjonline.com.cn/images/txtp/yzyh007.jpg" width="200" border="0" /></a></div></marquee>
九、细线表格制做 <div align="center"> <table cellspacing="1" cellpadding="0" width="100%" bgcolor="#FF0000" border="0"> <tbody> <tr bgcolor="#FFFFFF" height="20"> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> <tr bgcolor="#FFFFFF" height="20"> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> <td><div align="center">表格内容</div></td> </tr></table></div>
十、加入滚动条代码
/*====将滚动条加在样式表最后====*/ /*====最新评论滚动条====*/
#remark.operation ul{ height:300px; overflow: auto; scrollbar-face-color : threedhighlight; width: 195px; text-align: left; margin: 0px 0px 0px 5px; padding: 0; }
/*====在线留言滚动条====*/ .guestBook ul{ height:310px; overflow: auto; scrollbar-face-color : threedhighlight; width: 195px; text-align: left; margin:0px 0px 0px 5px; padding: 0; }
/*====最新文章滚动条====*/ #newWeblog.operation ul{ height:140px; overflow: auto; scrollbar-face-color : threedhighlight; width: 195px; text-align: left; margin: 0px 0px 0px 5px; padding: 0; }
十一、显IP地址免费代码 <i src="http://ip.91.com/ip/showip.asp?text=&bg=&line=2&scro=1&leng=140" border="0" scrolling="no" width="200" height="36" marginheight="4" marginwidth="0"></i>
十二、免费手机地理位置查询代码 代码一: <form method="POST" action="http://www.imobile.com.cn/simcard.php" target="_blank"> 手机号(前7位):<input type="text" name="simcard" size="7"> <input type="submit" ="查询"> </form> 代码二: <FORM action=http://www.k688.com/sj/index.php method=post target="_blank"> <tr> <td> <input Over="this.focus()" ="if (this. =='') this.='请输入手机号码'" ="this.select()" ="if (this.=='请输入手机号码') this.=''" name="m" type="text" id="m2" size="12" ='请输入手机号码'> <input type="submit" name="Submit" ="手机地址"> <input name="a" type="hidden" id="a2" ="search"> </td> </tr> </form>
十三、免费IP地址位置查询代码 <form name=frmIp1 action="" method=post onsubmit="deal1(this);return false"> <input type=text name=txtIp ="请输入ip地址"> <input type=submit name=submit1 ="查询"> </form> <> deal1(obj) { open("http://www.it315.org/ip/ip_area1.asp?ip="+ obj.txtIp.,"_blank","top=0,left=0,width=300,height=150,toolbar=no"); } </>
十四、下拉列表链接代码
<SELECT style="WIDTH: 100px;FONT-SIZE: 10pt; BACKGROUND: #FFFFFF; COLOR: #000000; FONT-FAMILY: Arial" onchange=java:open(this.options[this.selectedIndex].) name=select ="GO"><OPTION =# selected>超级链接</OPTION><OPTION =http://myok.blogchina.com>山水天下</OPTION><OPTION =http://myok.blogchina.com>山水天下</OPTION><OPTION =http://myok.blogchina.com>山水天下</OPTION><OPTION =http://myok.blogchina.com>山水天下</OPTION><OPTION =http://myok.blogchina.com>山水天下</OPTION></SELECT>
十五、滚动新闻代码
新浪的:<I border=0 name=sina_roll marginWidth=0 marginHeight=0 src="http://news.sina.com.cn/o/allnews/input/index.html" Border=No width="100%" scrolling=no height=15></I>
网易的: <i width="100%" HEIGHT=20 align=center MARGINWIDTH=0 Name=union163com MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no src="http://news2.163.com/news/marq1.jsp?ID=163&NO=0&boxColor=ffffff&txtColor=000000"></i> CCTV: <i src="http://www.cctv.com/homepage/46/index.shtml"; name="express" width="100%" height="20" marginwidth="0" marginheight="0" border="0" scrolling="no"></i>
其他: 代码一:新闻<i border=0 leftmargin=0 marginheight=0 marginwidth=0 scrolling=no src="http://www.tv868.com/xinwen/011.htm" topmargin=0 width="100%" height=20></i> 代码二:娱乐<i border=0 leftmargin=0 marginheight=0 marginwidth=0 scrolling=no src="http://www.tv868.com/xinwen/012.htm" topmargin=0 width="100%" height=20></i>
sohu 加综合新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscne002.html?uid=73916&fid=scscne002'></i>
体育新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscsp002.html?uid=73916&fid=scscsp002'></i>
汽车新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscau002.html?uid=73916&fid=scscau002'></i>
娱乐新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscen002.html?uid=73916&fid=scscen002'></i>
财经新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscbu002.html?uid=73916&fid=scscbu002'></i>
IT新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscit002.html?uid=73916&fid=scscit002'></i>
旅游新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.union.sohu.com/scsctr002.html?uid=73916&fid=scsctr002'></i>
教育新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscle002.html?uid=73916&fid=scscle002'></i>
健康新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsche002.html?uid=73916&fid=scsche002'></i>
文化新闻
<i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsccu002.html?uid=73916&fid=scsccu002'></i>
旅游新闻 <i WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 BORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsctr002.html?uid=73916&fid=scsctr002'></i>
|
评论