动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网页制作 > 网页特效
网页制作:Dreamweaver教程,FrontPages教程,Javascript教程,HTML教程,CSS教程,心得技巧,DHTML教程,网页特效,Discuz!论坛
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ 网页特效 ]的信息



本月文章推荐
.页面内来回漂浮的图片广告代码[网.
.用快捷键来提交按钮,这样比较简.
.页面上显示四个上下左右按钮,可.
.打字机效果的特效代码.
.一个有提示的发信程序,按钮和链.
.一个页面中的Real播放器[网页特效.
.在状态栏中显示打开页面的停留时.
.超炫网页火焰字代码,网页特效.
.自动检测你的浏览器所支持的java.
.DIV CSS制作的符合标准的网页导航.
.网页卡拉OK歌词同步播放的网页特.
.DIV+CSS布局的常用商品信息网页代.
.网页中有趣的齿轮转动特效(无实际.
.极品万年历网页特效.
.对联式的图片广告代码.
.状态栏多条提示字符出现.
.背景向页面下移动脚本.
.网页特效:跟随鼠标的图片的网页.
.在页面中直接出现的另存页面的按.
.打开页面时跳出对话框,输入姓名.

用户根据自己的选择切换用户登陆界面

发表日期:2007-12-21 |


<!-- 把如下代码加入<body>区域中 -->
<style>
TD{
font-size: 9pt; color: #66DDDD}
.out{
font-size: 9pt; color: #66DDDD;border-width:1px;border-style:solid;border-color:0090c0 0070b0 0070b0 0090c0;cursor:hand; background:0080c0; text-align: center}
.out2 {
text-align: center}
.in,.out2{
font-size: 9pt; color: #66DDDD;border-width:1px;border-style:solid;border-color:0070b0 0090c0 0090c0 0070b0;background:0078b8;cursor:default}
</style>
<script>
var temp_num = null;
var now_num  = null;

var the_top = 127;  //表单的最高,最低
var the_bottom = 146

var no_can_do = false;

function Show_menu(u_num,d_num)
{
event.srcElement.className = "out2";

if(no_can_do)
{
return;

now_num = d_num;

if(temp_num) 
{
if(document.getElementById("menu_"+temp_num).doing)
{
clearInterval(document.getElementById("menu_"+temp_num).doing);
}
}
else
{
temp_num = u_num;
}

document.getElementById("menu_"+temp_num).doing = setInterval("set_menu()",10);

}

function set_menu()
{
no_can_do = true;

document.getElementById("form_"+temp_num).style.display = "none";

var if_move = document.getElementById("div_"+temp_num).style.pixelHeight - 6;


if(if_move>1)
{
document.getElementById("div_"+temp_num).style.pixelHeight = if_move;
}
else
{
document.getElementById("div_"+temp_num).style.pixelHeight = 1;

var if_stop = document.getElementById("menu_"+temp_num).style.pixelTop - 1;

if(if_stop>the_top)
{
document.getElementById("menu_"+temp_num).style.pixelTop = if_stop;
document.getElementById("menu_"+now_num).style.pixelTop += 1;
}
else
{
document.getElementById("menu_"+temp_num).style.pixelTop = the_top;
document.getElementById("menu_"+now_num).style.pixelTop = the_bottom;

var if_end = document.getElementById("div_"+now_num).style.pixelHeight + 6;

if(if_end < 182)
{
document.getElementById("div_"+now_num).style.pixelHeight = if_end
}
else
{
document.getElementById("div_"+now_num).style.pixelHeight = 182;

clearInterval(document.getElementById("menu_"+temp_num).doing);

document.getElementById("menu_"+temp_num).doing = false;

document.getElementById("form_"+now_num).style.display = "block";

temp_num = null;

no_can_do = false;
}

}

}

}

function returnIT()
{
event.srcElement.className = "out";
}
</script>

<div id="menu_0" style="position: absolute; top: 127; left: 176; width: 339; height: 201">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="19">
  <tr>
    <td width="277" class="out" height="19" style="cursor: default"> </td>
    <td width="58" class="out" height="19" onmousedown="Show_menu(1,0)" onmouseup="returnIT()">老师登录</td>
  </tr>
</table>
<div  id="div_0" style="position: relative; width: 339; height: 1; overflow: hidden">
<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="182">
  <tr>
    <td width="100%" height="182">
      <form id="form_0" style="position: relative; left:70; top:10;font-family: Arial; display: none" action="javascript:;" method="post" align="center">
 
        当前用户类型:老师
        <br>
        <br>
        用户: <input class="in" style="WIDTH: 100px" size="20"> mail.cn<br>                         
        口令: <input class="in" type="password" size="20"><br>                          
        <br>
                                 
       <input class="out"  onfocus="this.blur()"  type="button" value="登录服务器">         
      </form>
       </td>
  </tr>
</table>
</div>
</div>

 


<div id="menu_1" style="position: absolute; top: 146; left: 176; width: 339; height: 219">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="19">
  <tr>
    <td width="277" class="out" height="19" style="cursor: default"> </td>
    <td width="58" class="out" height="19" onmousedown="Show_menu(0,1)" onmouseup="returnIT()">学生登录</td>
  </tr>
</table>
<div  id="div_1" style="position: relative; width: 339; height: 182; overflow: hidden">
<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td width="100%" height="182">
      <form id="form_1" style="position: relative; left:70; top:10;font-family: Arial; display: block" action="javascript:;" method="post" align="center">
 
        当前用户类型:学生
        <br>
        <br>
        用户: <input class="in" style="WIDTH: 100px" size="20"> mail.cn<br>                        
        口令: <input class="in" type="password" size="20"><br>                          
        <br>
                                
       <input class="out"  onfocus="this.blur()"  type="button" value="登录服务器">         
      </form>
       </td>
  </tr>
</table>
</div>
</div>


上一篇:编程时用的设置文件上传个数的效果 人气:406
下一篇:在两个下拉选择框中找相同的颜色 人气:430
浏览全部javascript的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-6 飞天论坛FTBBS ASP v6.3 Build 0
2008-7-6 飞天论坛FTBBS ASP v6.3 Build 0
2008-7-6 飞天论坛FTBBS ASP v6.8 Build 0
2008-7-6 讯息内容管理系统 v2.1
2008-7-6 三五电影程序 v2.0
2008-7-6 神鹰腾讯小说小偷 v3.0
2008-7-6 EasyIDE Framework v1.0 Build 2
2008-7-6 品告CMS系统(电影版) v0.9
2008-7-6 QQ自动登录器 C# 源码 v1.0
2008-7-5 AgileMessenger即时通讯工具 v1.
2008-7-5 GoodCalculator2.0版固件计算器
2008-7-5 RepoName源地址搜索工具 v1.21b
2008-7-5 AgileMessenger即时通讯工具 v1.
2008-7-5 TouchCopy多媒体管理软件 v3.13完
2008-7-5 VideosTone视频铃声 v1.1汉化破解
2008-7-5 TouchPad触摸板 v4.44破解版
2008-7-5 VideosTone破解补丁 v1.0
2008-7-5 Feeds GoogleReader客户端 v0.4.3


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報