`
zpball
  • 浏览: 917059 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

博客特效代码

    博客分类:
  • CSS
阅读更多
一、加入时钟代码:
      代码格式:<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款各式时钟[url ]http://www.fengzhuju.com/page-00s/clocks.htm [/url]

二、如何加入透明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">
     [url] Flash背景素材http://web.web7d.com/siyuqy/flashtmbj.htm[/url]


插入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);


四、背景音乐代码
     
请看相关文章http://blog.sina.com.cn/s/blog_446ae4ee0100034h.html



五、添加邮箱快速登录代码
<div align=center><form name="loginmail" onsubmit="function 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 value="">请选择你的邮箱</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></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" onclick="function anonymous()
{setTimeout('clearpass()',1000)
}" tabindex="4" type="submit" size="4" name="Submit2" /></form></div>


六、添加搜索引擎代码
<div align=center><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
  framespacing="0" frameborder="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">
</iframe></div><div align=center><FORM method=GET action="http://www.google.com/search" target=_blank>
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<INPUT TYPE="hidden" NAME="hl" VALUE="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 value="">
<INPUT type=submit name=btnG VALUE="搜索">
<input type=hidden name=domains value="这里输入你的网站地址"</br>
<input type=radio name=sitesearch value="">全球搜索
<input type=radio name=sitesearch value="这里输入你的网站地址" checked> 本站搜索<br>
</font></FORM></div> 


七、文字移动代码
<marquee  onmouseover=this.stop()  onmouseout=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  onmouseover=this.stop()  onmouseout=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地址免费代码
<iframe src="http://ip.91.com/ip/showip.asp?text=&bg=&line=2&scro=1&leng=140" frameborder="0" scrolling="no" width="200" height="36" marginheight="4" marginwidth="0"></iframe>

十二、免费手机地理位置查询代码
代码一:
<form method="POST" action="http://www.imobile.com.cn/simcard.php" target="_blank">
手机号(前7位):<input type="text" name="simcard" size="7">
<input type="submit" value="查询">
</form>
代码二:
<FORM action=http://www.k688.com/sj/index.php method=post target="_blank">
                    <tr>
                      <td> <input onMouseOver="this.focus()" onblur="if (this.value =='') this.value='请输入手机号码'" onFocus="this.select()" onClick="if (this.value=='请输入手机号码') this.value=''" name="m" type="text" id="m2" size="12" value='请输入手机号码'>
                        <input type="submit" name="Submit" value="手机地址">
                        <input name="a" type="hidden" id="a2" value="search">
                      </td>
                    </tr>
                    </form>

十三、免费IP地址位置查询代码
<form name=frmIp1 action="" method=post onsubmit="deal1(this);return false">
<input type=text name=txtIp value="请输入ip地址">
<input type=submit name=submit1 value="查询">
</form>
<script>
function deal1(obj)
{
window.open("http://www.it315.org/ip/ip_area1.asp?ip="+ obj.txtIp.value,"_blank","top=0,left=0,width=300,height=150,toolbar=no");
}
</script>

十四、下拉列表链接代码

<SELECT style="WIDTH: 100px;FONT-SIZE: 10pt; BACKGROUND: #FFFFFF; COLOR: #000000; FONT-FAMILY: Arial" onchange=javascript:window.open(this.options[this.selectedIndex].value) name=select value="GO"><OPTION value=# selected>超级链接</OPTION><OPTION value=http://myok.blogchina.com>山水天下</OPTION><OPTION value=http://myok.blogchina.com>山水天下</OPTION><OPTION value=http://myok.blogchina.com>山水天下</OPTION><OPTION value=http://myok.blogchina.com>山水天下</OPTION><OPTION value=http://myok.blogchina.com>山水天下</OPTION></SELECT>

十五、滚动新闻代码

新浪的:<IFRAME border=0 name=sina_roll marginWidth=0 marginHeight=0 src="http://news.sina.com.cn/o/allnews/input/index.html" frameBorder=No width="100%" scrolling=no height=15></IFRAME>

网易的:
<iframe width="100%" HEIGHT=20 align=center MARGINWIDTH=0 Name=union163com MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src="http://news2.163.com/news/marq1.jsp?ID=163&NO=0&boxColor=ffffff&txtColor=000000"></iframe>
CCTV:
<iframe src="http://www.cctv.com/homepage/46/index.shtml"; name="express" width="100%" height="20" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>

其他:
代码一:新闻<iframe frameborder=0 leftmargin=0 marginheight=0 marginwidth=0 scrolling=no src="http://www.tv868.com/xinwen/011.htm" topmargin=0 width="100%" height=20></iframe>
代码二:娱乐<iframe frameborder=0 leftmargin=0 marginheight=0 marginwidth=0 scrolling=no src="http://www.tv868.com/xinwen/012.htm" topmargin=0 width="100%" height=20></iframe>

sohu
加综合新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscne002.html?uid=73916&fid=scscne002'></iframe>

体育新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscsp002.html?uid=73916&fid=scscsp002'></iframe>

汽车新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscau002.html?uid=73916&fid=scscau002'></iframe>

娱乐新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscen002.html?uid=73916&fid=scscen002'></iframe>

财经新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscbu002.html?uid=73916&fid=scscbu002'></iframe>

IT新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscit002.html?uid=73916&fid=scscit002'></iframe>

旅游新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.union.sohu.com/scsctr002.html?uid=73916&fid=scsctr002'></iframe>

教育新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscle002.html?uid=73916&fid=scscle002'></iframe>

健康新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsche002.html?uid=73916&fid=scsche002'></iframe>

文化新闻

<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsccu002.html?uid=73916&fid=scsccu002'></iframe>

旅游新闻
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsctr002.html?uid=73916&fid=scsctr002'></iframe>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics