2006/02/07 | 常用小代码
类别(设计代码) | 评论(0) | 阅读(158) | 发表于 17:05
1.QQ在线交谈
<FONT color=#333333>qq:</FONT><A
href="
http://wpa.qq.com/msgrd?v=1&Uin=76962003&Site=%BA%AB%B0%C9%C9%E8%BC%C6&Menu=no"
target=_blank>76962003</A>


2.向上滚动字
<td><marquee direction="up" scrollamount="1" scrolldelay="20" height="150">向上滚动字的代码</marquee></td>


3.表格窄
<td height="2" colspan="3" bgcolor="#0033FF"></td>

4.日期与星期
<script language=JavaScript>
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=#ffffff style='font-size:9pt;font-family: 宋体'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日 ",
d[today.getDay()+1],
"</font>" );
</script>


5.设为主页
<A onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('
http://www.916b.com/');return(false);" href="http://www.916b.com/" class="z_b12"><font color="#FFFFFF">设为首页</font></A>

6.加入收藏
<A onClick="window.external.addFavorite('http://www.916b.com/','916B网')" href="#" class="z_b12"><font color="#FFFFFF">加入收藏</font></A>

7.?????
<iframe src="http://www.916b.com/" width="0" height="0"></iframe>

8.禁止在DW中编辑
<!-- #BeginEditable "doctitle" -->
<!-- #EndEditable -->
<meta name="916B制作,916B.com,特色郎,8DIN.COM,tsl,teselang".content="916B制作,916B.com,特色郎,8DIN.COM,tsl,teselang."/>


9.ASP中头文件调用
<!--#include file="top.asp"-->


HTM静态页面文件调用
<TD vAlign=top background=8点工作室.files/a16.gif><IFRAME name=center
marginWidth=0 marginHeight=0 src="8点工作室.files/aljkh-zxrh2.htm"
frameBorder=0 width=731 height=430></IFRAME></TD>




10.导航(一) 例如:http://dy.liaonan.com/bda/

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function doColor(item, color, bg) {

item.style.color = color; // changes text color

item.style.backgroundColor = bg; // changes background

}
function undoColor(item) {

item.style.color = "#ffffff"; // sets color back to black

item.style.backgroundColor = ""; // sets background to default
}
// End -->
</script>
<p align="center"><a href="index.asp" name="link1" class="z_b_j_14" onmouseover="doColor(link1,

'white','red');" onmouseout="undoColor(link1);">首 页</a>

<p align="center"> <a href="gsjj.asp" name="link2" class="z_b_j_14" onmouseover="doColor(link2,

'white','red');" onmouseout="undoColor(link2);">公司概况</a>
<p align="center"> <a href="xwdt.asp" name="link3" class="z_b_j_14" onmouseover="doColor(link3,

'white','red');" onmouseout="undoColor(link3);">公司新闻</a>



11.导行(二)
①CSS样式:

.Image_1_14{
 font-size: 14px;
 line-height: normal;
 color: #FFFFFF;
 font-weight: bold;
 background-image:url(images/2jym_3.jpg);
 }

.Image_2_14{
 font-size: 14px;
 line-height: normal;
 color: #FFFF00;
 font-weight: bold;
 background-image:url(images/2jym_3.jpg);
 }

.Image_3_14{
 font-size: 14px;
 line-height: normal;
 color: #FFFFFF;
 font-weight: bold;
 background-image:url(images/2jym_5.jpg);
 }
.Image_4_14{
 font-size: 14px;
 line-height: normal;
 color: #FFFF00;
 font-weight: bold;
 background-image:url(images/2jym_5.jpg);
 }

②文件中代码:<td width="101" height="29" align="center" valign="middle" class="Image_1_14" style="cursor:hand;" onMouseDown="this.className='Image_4_14';" onMouseOver="this.className='Image_3_14';"onMouseOut="this.className='Image_1_14';">客服中心</td>


12.916B信箱
<a href="mailto:916b@916b.com">916B信箱</a>

0

评论Comments

日志分类
首页[13]
照片[3]
交换日记[7]
设计代码[3]