代码如下: <map name="nav"> <area alt="" coords="4,0,98,32" href="http://www.51uc.com/activity/5_6_uc/" target=_blank> <area alt="" coords="114,1,252,33" href="http://service.51uc.com/activity/5_6_uc/Award.jsp" target=_blank> </map> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>UC_online在线抽奖_新浪UC(Tab页功能)</title> <style type="text/css"> TD { FONT-SIZE: 12px; COLOR: #3b3b3b; LINE-HEIGHT: 16px; TEXT-DECORATION: none } .border { BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid } A:link { COLOR: #3b3b3b; TEXT-DECORATION: underline } A:visited { COLOR: #3b3b3b; TEXT-DECORATION: underline } A:active { COLOR: #3b3b3b; TEXT-DECORATION: underline } A:hover { COLOR: #ff0000; TEXT-DECORATION: underline } </style> </head> <body bgcolor=#ffffff leftmargin=0 topmargin=0 marginwidth=0 marginheight=0> <center> <table width=750 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td width=20 valign=top background=http://images.51uc.com/activity/5_6_uc/t_02.gif><img src="http://images.51uc.com/activity/5_6_uc/t_01.gif" width="20" height="29" alt="" border="0"></td> <td width=711 valign=top bgcolor=#FFD200> <table width=711 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td><img src="http://images.51uc.com/activity/5_6_uc/t_09.gif" width="252" height="121" alt="" border="0"></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_10.gif" width="227" height="121" alt="" border="0"></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_11.gif" width="232" height="121" alt="" border="0"></td></tr> <tr><td><img src="http://images.51uc.com/activity/5_6_uc/t_12.gif" width="252" height="117" alt="" border="0"></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_13.gif" width="227" height="117" alt="" border="0"></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_14.gif" width="232" height="117" alt="" border="0"></td></tr> </table> <table width=711 border=0 cellpadding=0 cellspacing=0 background=''> <tr> <td><img src="http://images.51uc.com/activity/5_6_uc/t_15.gif" width="252" height="50" alt="" border="0"></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_16.gif" width="459" height="50" alt="" border="0" usemap="#nav"></td> </tr> <tr bgcolor=#FFF8BC> <td><img src="http://images.51uc.com/activity/5_6_uc/t_20.gif" width="17" height="31" alt="" border="0"></td> <td align=right><img src="http://images.51uc.com/activity/5_6_uc/t_19.gif" width="161" height="31" alt="" border="0"></td> </tr> </table> <table width=711 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td width=17 background=http://images.51uc.com/activity/5_6_uc/t_17.gif></td> <td width=676 align=center valign=top bgcolor=#FFF8BC class=bg01> <table width=497 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td><img src="http://images.51uc.com/activity/5_6_uc/t_39.gif" width="173" height="29" alt="" border="0"></td> </tr> <tr><td background=http://images.51uc.com/activity/5_6_uc/t_22.gif height=8></td></tr> <tr><td height=5></td></tr> <tr><td height=40 align="center"> <div>请登录查询自己是否中奖</div> <script language="JavaScript"> function UClogin(type) { if(type==1) { if((strlen(document.Login_Form.uc_uid.value)>12) || (strlen(document.Login_Form.uc_uid.value)<5)) { alert("请输入正确的UC号!"); document.Login_Form.uc_uid.focus(); return false; } if(strlen(document.Login_Form.uc_verifycode.value)<5) { alert("请输入正确的附加码!"); document.Login_Form.uc_verifycode.focus(); return false; } if(strlen(document.Login_Form.uc_pwd.value)<4) { alert("请输入正确的密码!"); document.Login_Form.uc_pwd.focus(); return false; } } else if(type==2) { if((strlen(document.Login_Form_Sina.sina_uid.value)>16) || (strlen(document.Login_Form_Sina.sina_uid.value)<4)) { alert("请输入正确的登陆名!"); document.Login_Form_Sina.sina_uid.focus(); return false; } if(strlen(document.Login_Form_Sina.sina_verifycode.value)<5) { alert("请输入正确的附加码!"); document.Login_Form_Sina.sina_verifycode.focus(); return false; } if(strlen(document.Login_Form_Sina.sina_pwd.value)<4) { alert("请输入正确的密码!"); document.Login_Form_Sina.sina_pwd.focus(); return false; } } } function loginTab(loginName) { if(loginName=="uc") { document.all['uc_login'].style.display="none"; document.all['sina_login'].style.display=""; } else { document.all['uc_login'].style.display=""; document.all['sina_login'].style.display="none"; } } function strlen(str) { var len; var i; len = 0; for (i=0;i<str.length;i++) { if (str.charCodeAt(i)>255) len+=2; else len++; } return len; } function getUcPass() { window.open("http://service.51uc.com/pwd_protect/mo.shtml?find_pwd_1.html"); } function regUnipro() { window.open("http://unipro.sina.com.cn/cgi-bin/regist0.cgi?url1=&url2=&id1=1&id2=0&entry=uc&mcheck=a777365743c157d89512931b9279f17c"); } </script> <table width="162" border="0" cellspacing="2" cellpadding="0"> <tr> <td> <div id="uc_login"> <table id="Table_01" width="162" height="182" border="0" cellpadding="0" cellspacing="0"> <form action="http://login.51uc.com/jsp/login.jsp" method="post" name="Login_Form" id="Login_Form" onSubmit="return UClogin(1)"> <tr> <td> <img src="http://images.51uc.com/login/denglu2_01.gif" alt="" width="162" height="24" border="0" usemap="#MapMap"></td> </tr> <tr> <td height="152" align="center" valign="top" background="http://images.51uc.com/login/denglu2_02.gif"> <table width="98%" height="152" border=0 cellpadding=0 cellspacing=3> <tr> <td align="center"><font color="#000000">UC 号:</font> <input name="uc_uid" type="text" id="uc_uid" style="width:88px;height:20px;border:1px solid #A4A3A3" maxlength="15"> </td> </tr> <tr> <td align="center"><font color="#000000">UC密码:</font> <input name="uc_pwd" type="password" id="uc_pwd" style="width:88px;height:20px;border:1px solid #A4A3A3" maxlength="40"> </td> </tr> <tr> <td align="center"><font color="#000000">附加码:</font> <input name="uc_verifycode" type="text" id="uc_verifycode" style="width:88px;height:20px;border:1px solid #A4A3A3" maxlength="5"> <input type=hidden name=uc_faildurl value=""> <input type=hidden name="uc_fromurl" value="/"> </td> <script language="javascript"> document.Login_Form.uc_fromurl.value="http://service.51uc.com/activity/5_6_uc/Award.jsp"; document.Login_Form.uc_faildurl.value="http://verify.51uc.com/LoginFaild.jsp?url=http://service.51uc.com/activity/5_6_uc/Award.jsp"; </script> </tr> <tr> <td align="center"><font color="#000000">请在附加码框输</font> <script>document.write("<img src='http://login.51uc.com/cgi-bin/getimg.cgi?t=login&r=",Math.random(),"' align=absmiddle>")</script> </td> </tr> <tr> <td align="center"> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"><input name="submit" type=submit style="background-image:url(http://images.51uc.com/login/naniu1_01.gif);border-width:0px;width:45;height:22;padding-top:3px;cursor:hand" value=" "></td> <td align="right"><input name="submit2" type=button style="background-image:url(http://images.51uc.com/login/naniu1_03.gif);border-width:0px;width:65;height:22;padding-top:3px;cursor:hand" value=" " onClick="javascript:getUcPass();"></td> </tr> </table></td> </tr> <tr> <td align="center">还没有UC号码?<a href="http://service.51uc.com/uc_reg/mo.shtml?reg.html" target="_blank" class="a01"><font color="#6600FF">免费申请>></font></a></td> </tr> </table></td> </tr> <tr> <td> <img src="http://images.51uc.com/login/denglu2_03.gif" width="162" height="6" alt=""></td> </tr> </form> </table> <map name="MapMap"> <area shape="rect" coords="89,1,160,20" href="javascript:loginTab('uc');"> </map> </div> <div id="sina_login" style="display:none"> <table id="Table_01" width="162" height="182" border="0" cellpadding="0" cellspacing="0"> <form action="http://login.51uc.com/cgi-bin/sina_user_login1.cgi" method="post" name="Login_Form_Sina" id="Login_Form_Sina" onSubmit="return UClogin(2)"> <tr> <td> <img src="http://images.51uc.com/login/denglu1_01.gif" alt="" width="162" height="24" border="0" usemap="#Map2Map"></td> </tr> <tr> <td height="152" align="center" valign="top" background="http://images.51uc.com/login/denglu1_02.gif"> <table width="98%" height="152" border=0 cellpadding=0 cellspacing=1> <tr> <td align="center"><font color="#000000">登录名</font> <input name="sina_uid" type="text" id="sina_uid" style="width:113px;height:20px;border:1px solid #A4A3A3;color:#666666" value="会员名/手机/vip邮箱" onClick="javascript:this.value=''"> </td> </tr> <tr> <td align="center"><font color="#000000"> 密 码</font> <input name="sina_pwd" type="password" id="sina_pwd" style="width:113px;height:20px;border:1px solid #A4A3A3"></td> </tr> <tr> <td align="center"><font color="#000000">附加码</font> <input name="sina_verifycode" type="text" id="sina_verifycode" style="width:113px;height:20px;border:1px solid #A4A3A3"> <input type=hidden name=uc_faildurl value=""> <input type=hidden name="uc_fromurl" value="/"> </td> <script language="javascript"> document.Login_Form_Sina.uc_fromurl.value="http://service.51uc.com/activity/5_6_uc/Award.jsp"; document.Login_Form_Sina.uc_faildurl.value="http://verify.51uc.com/LoginFaild.jsp?url=http://service.51uc.com/activity/5_6_uc/Award.jsp"; </script> </tr> <tr> <td align="center"><font color="#000000">请在附加码框输</font> <script>document.write("<img src='http://login.51uc.com/cgi-bin/getimg.cgi?t=weblogin&r=",Math.random(),"' align=absmiddle>")</script> </td> </tr> <tr> <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"><input name="submit222" type=submit style="background-image:url(http://images.51uc.com/login/anniu2_01.gif);border-width:0px;width:65;height:22;padding-top:3px;cursor:hand" value=" "></td> <td align="left"><a href="http://unipro.sina.com.cn/getpass.html" target="_blank" class="a01"><font color="#FF0000">忘记密码</font></a></td> </tr> </table></td> </tr> <tr> <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"><input type=button style="background-image:url(http://images.51uc.com/login/anniu2_03.gif);border-width:0px;width:65;height:22;padding-top:3px;cursor:hand" value=" " onClick="javascript:regUnipro();"></td> <td align="right"><a href="http://unipro.sina.com.cn/help/article/15.html" target="_blank" class="a01"><font color="#FF0000">VIP邮箱如何登陆</font></a></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td> <img src="http://images.51uc.com/login/denglu1_03.gif" width="162" height="6" alt=""></td> </tr> </form> </table> <map name="Map2Map"> <area shape="rect" coords="1,1,75,21" href="javascript:loginTab('sina');"> </map> </div></td> </tr> </table> </td> </tr> <tr><td height=10></td></tr> </table> </td> <td width=18 background=http://images.51uc.com/activity/5_6_uc/t_18.gif></td></tr> </table> <table width=711 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td width=17 background=http://images.51uc.com/activity/5_6_uc/t_17.gif></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_26.gif" width="676" height="30" alt="" border="0"></td> <td width=18 background=http://images.51uc.com/activity/5_6_uc/t_18.gif></td></tr> </table> <table width=711 border=0 cellpadding=0 cellspacing=0 background=''> <tr><td height=20></td></tr> </table> </td> <td width=19 valign=top background=http://images.51uc.com/activity/5_6_uc/t_04.gif><img src="http://images.51uc.com/activity/5_6_uc/t_03.gif" width="19" height="29" alt="" border="0"></td></tr> <tr><td><img src="http://images.51uc.com/activity/5_6_uc/t_27.gif" width="20" height="16" alt="" border="0"></td> <td background=http://images.51uc.com/activity/5_6_uc/t_28.gif></td> <td><img src="http://images.51uc.com/activity/5_6_uc/t_29.gif" width="19" height="16" alt="" border="0"></td></tr> </table> </center> </body> </html>
[Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码]