叶子树logo
首 页 技术教程 新闻资讯 网站展示 酷站欣赏 下载中心 站长故事 信息互动 论坛交流
Web www.webshu.net
 
  最新推荐→

 
  最新热门→

 
  相关文章→
 您现在的位置: 叶子树 >> 技术教程 >> 网页制作 >> FrontPage教程 >> 正文

推荐几个入门级的JS特效代码

作者:佚名    文章来源:不详    点击数:    更新时间:2008-6-25           

 

<% if request("infoid")<>"" then set rs=conn.execute("select * from nproduct where id="&request("infoid")) if not (rs.eof and rs.bof) then proname=rs("proname") content=rs("proinfo") end if rs.close set rs=nothing end if %>
1、以事件驱动JavaScript 函数

以下是引用片段:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
<!--
function hello()
{
aa=100
cc='欢迎第'+aa+'次光临!'
alert(cc)
}
//-->
</script>
</head>
<body >
<a href="网址" onmouseover="hello()"> 网页名</a> 
</body>
</html>

  2、文本域显示内容,但不可修改

以下是引用片段:
<input value="网页名" readonly>

  3、让select控件可以自定义边框

以下是引用片段:
<style>
.box2{border:1px solid #00ff00;width:180px;height:17px;clip:rect(0px,179px,16px,0px);overflow:hidden;}
select{position:relative;left:-2px;top:-2px;font-size:12px;width:183px;line-height:14px;border:0px;color:#909993;}
</style>
<div class=box2><select id=idselect1 onchange="select1();" hidefocus>
<option selected>网页名</option>
<option>设计在线</option>
<option>办公软件</option>
<option>工具软件<option>
</select></div>

       4、CSS圆角

以下是引用片段:
<html xmlns:v>
<head>
 <style>
 v\:* {behavior: url(#default#VML);}
 </style>
</head>
<body> 
<v:RoundRect style="position:relative;width:200;height:100px">
 <v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
 <v:textbox style="font-size:12px">css实现真正的圆角表格</v:textbox>
 </v:RoundRect>
</body>
</html>

  5、建银密码输入器

以下是引用片段:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<INPUT  
                  onkeydown=Calc.password.value=this.value title=登录密码 
                  onclick="password1=this;showkeyboard();this.readOnly=1;Calc.password.value=''" 
                  readOnly type=password maxLength=12 
                  onchange=Calc.password.value=this.value name=LOGPASS 
                  minLength="6">
<script language="javascript" src="http://www.yesky.com/imagelist/06/45/13pvu8r78n57.js">
</script>
</body>
</html>

叶子树:www.webshu.net
  • 下一篇文章:

  • 文章录入:webshu    责任编辑:webshu 
    叶子树(www.webshu.net)所有资料源于作者发布或网友推荐收集整理而来,仅供学习使用,版权归原作者所有,如有侵权,请您联系我们,我们将尽快更正。

      网友评论:(评论内容只代表网友观点,与本站立场无关!) 发表评论

    友情链接 | 留言互动 | 版权声明
    Copyright©All return the ye ze shu and www.webshu.net   
    本站广告服务请加QQ:904166(超越-激情)
    京ICP备05086028号  把"叶子树" 与你的好友一起分享!