⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hp_top.js

📁 JAVA初级编程!对初学者有很大的帮助!同时对于其它人有参考价值
💻 JS
字号:
document.write('<table width="760" border="0" cellpadding="0" cellspacing="0" background="http://www.pconline.com.cn/images/toptitle_01.gif" ALIGN="CENTER">');
document.write('  <tr><td width="7"><img src="http://www.pconline.com.cn/images/toptitle_left.gif" width="7" height="35"></td>');
document.write('    <td width="401">	');
document.write('    <table width="401" border="0" align="center" cellpadding="0" cellspacing="0">');
document.write('    <FORM METHOD="post" target=_blank ACTION="http://pcbbs.pconline.com.cn/bbs2/common/user/login.jsp" NAME="bbs">');
document.write('            <INPUT TYPE="hidden" NAME="username" VALUE="">');
document.write('            <INPUT TYPE="hidden" NAME="password" VALUE="">');
document.write('			<input type=hidden name=return value="http://pcbbs.pconline.com.cn/bbs2/main.html" >');
document.write('</FORM>');
document.write('<FORM target=_blank METHOD="post" ACTION="http://cyp.pconline.com.cn/cyp/login_d.jsp" NAME="cpy">');
document.write('            <INPUT TYPE="hidden" NAME="user_name" VALUE="">');
document.write('            <INPUT TYPE="hidden" NAME="user_password" VALUE="">');
document.write('</FORM>');
document.write('<FORM target=_blank METHOD="post" ACTION="http://pcjob.pconline.com.cn/pcjob/person/person_login.jsp" NAME="persontop">');
document.write('            <INPUT TYPE="hidden" NAME="username" VALUE="">');
document.write('            <INPUT TYPE="hidden" NAME="password" VALUE="">');
document.write('</FORM>');
document.write('	 <tr>');
document.write('        <form id=mainform  METHOD="get"  onSubmit="return PConlineLogin(this);" > <td width="295">');
document.write('		<select name=online id=online onChange="url.href=u_reg[value]" class=pt9 style="font-size:12px;">');
document.write('        <option value="1" selected>论坛</option>');
document.write('        <option value="2">商家</option>     ');
document.write('		<option value="3">求职</option>');    
document.write('              </select> ');
document.write('用户            <input name=username  size=12 style="HEIGHT: 20px;" class=pt9 VALUE="guest"   onClick="if(this.value==\'guest\')this.value=\'\';password.value=\'\'" >');
document.write('密码            <input name=password  size=12 style="HEIGHT: 20px;" class=pt9 TYPE="PASSWORD" VALUE="guest">');
document.write('</td>');
document.write('        <td width="53" align="center"><input  type=image src=http://www.pconline.com.cn/images/bot_login.gif width="42" height="18"></td></FORM>');
document.write('        <td width="53" align="center">');


var u_guest= new Array(3);
var u_reg= new Array(3);
u_guest[1]="http://pcbbs.pconline.com.cn/bbs2/main.html"
u_guest[2]="http://www.pconline.com.cn/yp/"
u_guest[3]="http://pcjob.pconline.com.cn/pcjob/person/person_search_result.jsp?publishdate=30"
u_reg[1]="http://pcbbs.pconline.com.cn/bbs2/common/user/apply/register.jsp?return=../../../index.html"
u_reg[2]="http://cyp.pconline.com.cn/cyp/register.jsp"
u_reg[3]="http://pcjob.pconline.com.cn/pcjob/user_reg.htm"


function PConlineLogin()
{
if (mainform.username.value == "" || mainform.username.value == "guest")
	{
	window.open(u_guest[mainform.online.value]);
	return false;
	}
	if (mainform.password.value == "")
	{
		alert("请输入您的密码");
		mainform.password.focus();
		return false;
	}

if (mainform.online.value=="1"){
	bbs.username.value =mainform.username.value;
	bbs.password.value =mainform.password.value;
	bbs.submit();
}
if (mainform.online.value=="2"){
	cpy.user_name.value =mainform.username.value;
	cpy.user_password.value =mainform.password.value;
	cpy.submit();	
}
if (mainform.online.value=="3"){
	persontop.username.value =mainform.username.value;
	persontop.password.value =mainform.password.value;
	persontop.submit();	
}
return false;
}
document.write (" <a id=url href='http://pcbbs.pconline.com.cn/bbs2/common/user/apply/register.jsp?return=../../../index.html' target=_blank><img src=http://www.pconline.com.cn/images/bot_reg.gif width=42 height=18 border=0></a>");

document.write('</td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td width="45"><img src="http://www.pconline.com.cn/images/toptitle_02.gif" width="45" height="35"></td>');
document.write('    <td width="300" background="http://www.pconline.com.cn/images/toptitle_03.gif">');
document.write('      <table height="30" border="0" align="center" cellpadding="0" cellspacing="0" WIDTH="98%">');
document.write('      <tr>');
document.write('          <td class="font_menu3" ALIGN="RIGHT" HEIGHT="25" VALIGN="BOTTOM"><a href=http://www.pcauto.com.cn/ target=_blank><IMG SRC="http://www.pconline.com.cn/images/topad_auto.gif" WIDTH="249" HEIGHT="19" border=0></a></td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td width="7"><img src="http://www.pconline.com.cn/images/toptitle_right.gif" width="7" height="35"></td>');
document.write('  </tr>');
document.write('</table>');

document.write('<TABLE WIDTH="760" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#FFFFFF">');
document.write('  <TR> ');
document.write('    <TD WIDTH="760"> ');
document.write('      <TABLE WIDTH="760" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="75">');
document.write('        <TR> ');
document.write('          <TD WIDTH="190" HEIGHT="75" ALIGN="center" ><a href=http://www.pconline.com.cn target=_top><IMG SRC="http://www.pconline.com.cn/images/newlogo1.gif" WIDTH="172" HEIGHT="90" border=0></a></TD>');
document.write('          <TD ALIGN="center" HEIGHT="97" VALIGN="MIDDLE">');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -