
JavaScript
文章平均质量分 67
MJunnnn
生人所易言,我寡言之;人所难言,我易言之,自不俗。
展开
-
用户注册常用代码
http://www.w3.org/TR/html4/loose.dtd"> 用户注册 function IsDigit(cCheck) { return ((0 } function IsAlpha(cCheck) { return (((a } function IsValid() { var struserName = reg原创 2009-08-28 09:34:00 · 773 阅读 · 0 评论 -
文件上传处理页面代码
文件名:do_upload.jsp --%> import="com.jspsmart.upload.*,java.sql.*" errorPage=""%> 文件上传处理页面 Connection con;ResultSet rs;Statement stmt; //数据库登录用户和密码 String user="sa"; String原创 2009-10-16 21:30:00 · 846 阅读 · 1 评论 -
弹出小窗口
window.open("window.htm","toolbar=no, status=no,menubar=no, scrollbars=no,resizable=no,width=468,height=70,left=200,top=50");原创 2009-09-19 11:21:00 · 394 阅读 · 0 评论 -
JS消息提示框
类MSN提示的页面效果window.onload = viewMsg; //加载页面时,即刻获取短消息window.onresize = resizeDiv; //根据窗体高度和宽度,改变短消息提示框的高度和宽度window.onerror = function(){} //出现错误时,不做任何处理v原创 2009-09-26 18:17:00 · 5018 阅读 · 2 评论 -
动感导航菜单
动感菜单var currTimerlinePoint = 0;var totalTimerlineFrames = 2;var timerlineTimer;var leftLine = 50;var timerIn;var timerOut;var timerlineArray = new Array();timerlineArray[0]=;timerlineArray[1]=menuI原创 2009-09-14 20:34:00 · 565 阅读 · 0 评论 -
JS无限级树形菜单
无限级可刷新Js树型菜单function Node(id, pid, name, url, title, target, icon, iconOpen, open) {this.id = id;this.pid = pid;this.name = name;this.url = url;this.title = title;this.target = target;原创 2009-09-14 20:15:00 · 1053 阅读 · 0 评论 -
滑动门菜单
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">滑动门菜单#header {background-color: #F8F4EF;height: 200px;width: 400px;margin: 0px;padding: 0px;border: 1px solid #EC原创 2009-09-14 20:04:00 · 586 阅读 · 0 评论 -
网页选项卡代码
html xmlns="http://www.w3.org/1999/xhtml" >head> title>标题页title>style>.conts{visibility:hidden}.tab{border-top:solid thin #E0E0E0;border-right:solid thin gray;border-left:solid thin #E0E0E0;font-fa转载 2009-09-14 19:53:00 · 1947 阅读 · 0 评论 -
羽化效果导航菜单
this.style.background="#ff0000";this.style.background="#dcdcff";this.style.background="#0000ff";td{width:120px;height:30px;background:#0000ff;filter:alpha(opacity=100,finishopacity=0,style=2);text-ali原创 2009-09-14 20:09:00 · 485 阅读 · 0 评论 -
密码修改常用代码
%@page contentType="text/html;charset=GBK"%>%@page import="java.sql.*"%>%@page import="java.util.*"%> function CheckInput() { if(myform.Username.value=="") { alert("用户名输入不能为空!") my原创 2009-08-31 19:09:00 · 3430 阅读 · 0 评论 -
注册验证代码[针对上篇文章]
http://www.w3.org/TR/html4/loose.dtd"> 用户注册 String strSql=""; String database_username="root"; String database_password=""; String url="jdbc:mysql://localhost/ch3?useUnicode=true&chara原创 2009-08-28 09:35:00 · 460 阅读 · 0 评论 -
一段简单的javascript代码
原创 2009-10-30 20:15:00 · 766 阅读 · 0 评论