Category: 前端杂烩

连续滚动代码

<base href="'">http://www.abcd123.com">
'下边的height:100是滚动的高度width是宽.background是背景颜色
<div id=demo style=overflow:hidden;height:100;width:100%;background:#ffffff;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top>
'这里是滚动内容,可以是JS.也可以是ASP语言
</td><td id=demo2 valign=top></td></tr></table></div>

滚动图片代码

<DIV id=demo style="OVERFLOW: hidden; WIDTH: 575px; HEIGHT: 128px">
<TABLE height=27 cellPadding=0 align=left border=0 cellspace="0">
<TBODY>
<TR>
<TD id=demo1 vAlign=top height=25>{FS_pictuer最新图片}</TD>

网页框架代码

<iframe border=0 name=lantk src="要嵌入的网页地址" width=400 height=400 allowTransparency scrollbars=yes frameBorder="0"></iframe>

特点是无论使用何种分辨率,它的大小和位置都是不变的。

网摘大全代码,迅速提高网站流量

包括 VIVI | Younote | 365Key | Blogchina | Niula | Z365 | POCO | 人人 | Del.ico.us | IGOOI | 亿友 | 我摘 | 和讯 | 拇指 | 天极 的收藏代码

保存以下文件为 wangzhai.js
document.writeln("[ 收藏此页到 document.writeln("href=\"javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(vivi=window.open(\'http:\/\/vivi.sina.com.cn\/collect\/icollect.php?pid=http:\/\/www.newsunday.com&title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&desc=\'+escape(t),\'vivi\',\'scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes\'));vivi.focus();\">

使用iframe嵌套另一页面

如果你要在网站上插入一些广告代码,又不想让这些广告网站影响速度的话,那么,使用iframe最合适不过了。方法是:将这些广告代码放到一个独立的页面去,然后在首页用如下的代码将该页面嵌入即可,这样就不会因为广告页面的延迟而拖了整个首页的显示,代码如下:

< iframe frameborder=0
leftmargin=0
marginheight=0

表格特效代码

1. 两种细线表格做法

<table width="100%" border="1" bordercolor="#000000">
<tr bordercolor="#FFFFFF">
<td>表格边线为1,线色为黑,行线色为白。</td>