仔细看看下边这段源吗,好像可以用Java实现你所想要的功能!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>个人银行专业版</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<script LANGUAGE="JavaScript">
moveTo(154,124);
resizeTo(492,386);
function setCookie(name, value) {
expiryday=new Date();
expiryday.setTime(expiryday.getTime()+30*30*24*60*60*1*1000);
//保存设置三十个月
document.cookie = name + "=" + escape(value)
+ "; expires=" + expiryday.toGMTString() + "; domain=cmbchina.com; path=/";
}
function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) { // if there are any cookies
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
return 0;
}
function OpenWnd(Flag)
{
var strZone = document.sel.DZone.options[document.sel.DZone.selectedIndex].value;
var bVersion = true;
setCookie("areaindex",strZone);
if ((strZone == '0755')||(strZone == '0020')||(strZone == '0027')||(strZone == '0591')||(strZone == '0791')||(strZone == '0714')||(strZone == '0717')||(strZone == '0731'))
{
location = 'http://www2.cmbchina.com/advpbank/pbsz20.htm';
}
else if ((strZone == '0010')||(strZone == '0024')||(strZone == '0029')||(strZone == '0023')||(strZone == '0028')||(strZone == '0931')||(strZone == '0022')||(strZone == '0531')||(strZone == '0532')||(strZone == '0411')||(strZone == '0415'))
{
location = 'http://www2.cmbchina.com/advpbank/pbbj20.htm';
}
else if ((strZone == '0021')||(strZone == '0025')||(strZone == '0571')||(strZone == '0574')||(strZone == '0577')||(strZone == '0510')||(strZone == '0512'))
{
location = 'http://www2.cmbchina.com/advpbank/pbnj20.htm';
}
else
{
location = 'http://www2.cmbchina.com/advpbank/pbsz20.htm';
}
moveTo(80,60);
resizeTo(620,460);
}
function PBDemo()
{
open('http://www2.cmbchina.com/advpbank/demo/PBDemo1.htm','PBDemo','menubar=no,toolbar=no,location=no,directories=no,status=yes,resizable=no,scrollbars=yes,width=760,height=480,top=20,left=20');
}
function Adv()
{
open('http://www.cmbchina.com/advertise/zhongjiang.htm','notice','menubar=no,toolbar=no,location=no,directories=no,status=yes,resizable=no,scrollbars=yes,width=676,height=380,top=120,left=80');
}
</script>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#ECEDE5">
<form method="POST" name="sel">
<table border="0" width="485" height="335" cellspacing="0" cellpadding="0">
<tr>
<td width="355" height="118" style="background-image: url('images/EWallet_BG01.gif')"
valign="top"><table border="0" width="100%" height="276" cellspacing="0" cellpadding="0">
<tr>
<td width="4%" height="46" valign="bottom"></td>
<td width="96%" height="46" valign="middle" align="left"><p align="left"><img border="0" src="images/cmblogo.gif" width="151" height="41"></td>
</tr>
<tr>
<td width="4%" height="218" valign="top"></td>
<td width="96%" height="218" valign="top">
<font size="3" face="宋体">
请选择您的开户地:</font><select name="DZone" size="1"
style="BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)">
<option selected value="0755">-深圳-</option>
<option value="0010">-北京-</option>
<option value="0021">-上海-</option>
<option value="0020">-广州-</option>
<option value="0024">-沈阳-</option>
<option value="0025">-南京-</option>
<option value="0571">-杭州-</option>
<option value="0029">-西安-</option>
<option value="0023">-重庆-</option>
<option value="0028">-成都-</option>
<option value="0027">-武汉-</option>
<option value="0931">-兰州-</option>
<option value="0591">-福州-</option>
<option value="0022">-天津-</option>
<option value="0531">-济南-</option>
<option value="0411">-大连-</option>
<option value="0791">-南昌-</option>
<option value="0415">-丹东-</option>
<option value="0717">-宜昌-</option>
<option value="0510">-无锡-</option>
<option value="0714">-黄石-</option>
<option value="0512">-苏州-</option>
<option value="0574">-宁波-</option>
<option value="0532">-青岛-</option>
<option value="0577">-温州-</option>
<option value="0731">-长沙-</option>
</select>&nbsp;&nbsp;<font face="幼圆" color="#0000FF"
size="3"><a href="JavaScript:OpenWnd(2)">
个人银行专业版2.1版</a>&nbsp;&nbsp; <img border="0" src="images/NEW.GIF" width="30" height="14">
</font>
<font size="2" color="#000080">系统要求:
1、WINDOWS95/WINDOWS98/WINDOWS2000/
WINDOWS ME/WINDOWS NT操作系统,IE4.0以
上版本的浏览器。
2、在IE中INTERNET的安全设置为缺省的设置,
如果该设置已被改动,请设为原来的缺省设置。
</font><img border="0" src="images/Downlaod.gif" width="19" height="19">
<font size="2" color="#008000">如果您无法从网页链接中成功运行,我们
也提供了</font><font size="2" color="#FF00FF">下载版2.1版</font><font size="2" color="#008000">供您安装。</font><font size="2" color="#800080">请选择:
</font><font size="2" color="#008000"><a href="http://www4.cmbchina.com/download/PBSetup21.exe">
深圳下载</a>,<a href="http://211.99.194.24/download/PBSetup21.exe">北京下载</a>,<a href="http://njcmbchina.nj-enterprise.com/PBSetup21.exe">南京下载</a>
</font>
</td>
</tr>
</table>
</td>
<td width="173" height="118"><map name="FPMap0">
<area href="JavaScript
BDemo()" shape="rect" coords="85, 60, 166, 78">
<area href="JavaScript:Adv()" shape="circle" coords="71, 169, 68"></map><img src="images/EWallet_ani.gif" width="173" height="335" usemap="#FPMap0" border="0"></td>
</tr>
</table>
</form>
<script LANGUAGE="JavaScript">
var iLength = document.sel.DZone.length;
var strValue = getCookie("areaindex");
for(i=0;i<iLength;i++)
{
if(document.sel.DZone.options
.value == strValue)
{
document.sel.DZone.options.selected = 1;
break;
}
}
</script>
</body>
</html>