程序代码<div align="center">
<table cellspacing="0" width="150" align="center">
<script type="text/javascript">
strArr_w=new Array()
strArr_w[0]=new arrItem("双鱼座","http://astro.sina.com.cn/pisces_w.shtml")
strArr_w[1]=new arrItem("水瓶座","http://astro.sina.com.cn/aquarius_w.shtml")
strArr_w[2]=new arrItem("魔羯座","http://astro.sina.com.cn/capricorn_w.shtml")
strArr_w[3]=new arrItem("天蝎座","http://astro.sina.com.cn/scorpio_w.shtml")
strArr_w[4]=new arrItem("天秤座","http://astro.sina.com.cn/libra_w.shtml")
strArr_w[5]=new arrItem("处女座","http://astro.sina.com.cn/virgo_w.shtml")
strArr_w[6]=new arrItem("狮子座","http://astro.sina.com.cn/leo_w.shtml")
strArr_w[7]=new arrItem("巨蟹座","http://astro.sina.com.cn/cancer_w.shtml")
strArr_w[8]=new arrItem("双子座","http://astro.sina.com.cn/gemini_w.shtml")
strArr_w[9]=new arrItem("金牛座","http://astro.sina.com.cn/taurus_w.shtml")
strArr_w[10]=new arrItem("白羊座","http://astro.sina.com.cn/aries_w.shtml")
strArr_w[11]=new arrItem("射手座","http://astro.sina.com.cn/sagittarius_w.shtml")
strArr=new Array()
strArr[0]=new arrItem("双鱼座","http://astro.sina.com.cn/pisces.html")
strArr[1]=new arrItem("水瓶座","http://astro.sina.com.cn/aquarius.html")
strArr[2]=new arrItem("魔羯座","http://astro.sina.com.cn/capricorn.html")
strArr[3]=new arrItem("天蝎座","http://astro.sina.com.cn/scorpio.html")
strArr[4]=new arrItem("天秤座","http://astro.sina.com.cn/libra.html")
strArr[5]=new arrItem("处女座","http://astro.sina.com.cn/virgo.html")
strArr[6]=new arrItem("狮子座","http://astro.sina.com.cn/leo.html")
strArr[7]=new arrItem("巨蟹座","http://astro.sina.com.cn/cancer.html")
strArr[8]=new arrItem("双子座","http://astro.sina.com.cn/gemini.html")
strArr[9]=new arrItem("金牛座","http://astro.sina.com.cn/taurus.html")
strArr[10]=new arrItem("白羊座","http://astro.sina.com.cn/aries.html")
strArr[11]=new arrItem("射手座","http://astro.sina.com.cn/sagittarius.html")
function arrItem(text,link){
this.text=text
this.link=link
}
function astroWord(fm){
var cycle_v;
var cycle=fm.cycle
var astro=fm.astro.value
for ( var i=0; i<cycle.length; i++ ){
if ( cycle[i].checked == true ){
cycle_v = cycle[i].value
}
}
if(cycle_v == '日'){
for (i=0;i<strArr.length;i++){
if (strArr[i].text==astro){
window.open(strArr[i].link);
return false
}
}
}
if(cycle_v == '周'){
for (i=0;i<strArr_w.length;i++){
if (strArr_w[i].text==astro){
window.open(strArr_w[i].link);
return false
}
}
}
return true
}
</script>
<form onsubmit="return astroWord(this)" action="http://mix.sina.com.cn/astro/view.php" method="post" target="_blank">
<tbody>
<tr>
<td class="link02" style="PADDING-LEFT: 5px" width="150" colspan="2"><input type="hidden" name="flag" value="1" /> <input type="radio" checked="checked" name="cycle" value="日" /> 今日运程 <a onclick="javascript:window.open ('http://astro.sina.com.cn/query.html','_blank','width=360,height=300,left=0,top=0');return false;" href="#">往日运程</a><br /><input type="radio" name="cycle" value="周" /> 每周运程 <a href="http://astro.sina.com.cn/">新浪星座</a> </td>
</tr>
<tr>
<td align="right" width="71" height="40"><select name="astro">
<option value="白羊座">白羊座</option>
<option value="金牛座">金牛座</option>
<option value="双子座">双子座</option>
<option value="巨蟹座">巨蟹座</option>
<option value="狮子座">狮子座</option>
<option value="处女座">处女座</option>
<option value="天秤座">天秤座</option>
<option value="天蝎座" selected="selected">天蝎座</option>
<option value="射手座">射手座</option>
<option value="魔羯座">魔羯座</option>
<option value="水瓶座">水瓶座</option>
<option value="双鱼座">双鱼座</option>
</select> </td>
<td style="PADDING-LEFT: 5px" width="79"><input class="userbutton" type="submit" name="image" value="搜 索" /> </td>
</tr>
</tbody>
</form>
</table>
</div>
<table cellspacing="0" width="150" align="center">
<script type="text/javascript">
strArr_w=new Array()
strArr_w[0]=new arrItem("双鱼座","http://astro.sina.com.cn/pisces_w.shtml")
strArr_w[1]=new arrItem("水瓶座","http://astro.sina.com.cn/aquarius_w.shtml")
strArr_w[2]=new arrItem("魔羯座","http://astro.sina.com.cn/capricorn_w.shtml")
strArr_w[3]=new arrItem("天蝎座","http://astro.sina.com.cn/scorpio_w.shtml")
strArr_w[4]=new arrItem("天秤座","http://astro.sina.com.cn/libra_w.shtml")
strArr_w[5]=new arrItem("处女座","http://astro.sina.com.cn/virgo_w.shtml")
strArr_w[6]=new arrItem("狮子座","http://astro.sina.com.cn/leo_w.shtml")
strArr_w[7]=new arrItem("巨蟹座","http://astro.sina.com.cn/cancer_w.shtml")
strArr_w[8]=new arrItem("双子座","http://astro.sina.com.cn/gemini_w.shtml")
strArr_w[9]=new arrItem("金牛座","http://astro.sina.com.cn/taurus_w.shtml")
strArr_w[10]=new arrItem("白羊座","http://astro.sina.com.cn/aries_w.shtml")
strArr_w[11]=new arrItem("射手座","http://astro.sina.com.cn/sagittarius_w.shtml")
strArr=new Array()
strArr[0]=new arrItem("双鱼座","http://astro.sina.com.cn/pisces.html")
strArr[1]=new arrItem("水瓶座","http://astro.sina.com.cn/aquarius.html")
strArr[2]=new arrItem("魔羯座","http://astro.sina.com.cn/capricorn.html")
strArr[3]=new arrItem("天蝎座","http://astro.sina.com.cn/scorpio.html")
strArr[4]=new arrItem("天秤座","http://astro.sina.com.cn/libra.html")
strArr[5]=new arrItem("处女座","http://astro.sina.com.cn/virgo.html")
strArr[6]=new arrItem("狮子座","http://astro.sina.com.cn/leo.html")
strArr[7]=new arrItem("巨蟹座","http://astro.sina.com.cn/cancer.html")
strArr[8]=new arrItem("双子座","http://astro.sina.com.cn/gemini.html")
strArr[9]=new arrItem("金牛座","http://astro.sina.com.cn/taurus.html")
strArr[10]=new arrItem("白羊座","http://astro.sina.com.cn/aries.html")
strArr[11]=new arrItem("射手座","http://astro.sina.com.cn/sagittarius.html")
function arrItem(text,link){
this.text=text
this.link=link
}
function astroWord(fm){
var cycle_v;
var cycle=fm.cycle
var astro=fm.astro.value
for ( var i=0; i<cycle.length; i++ ){
if ( cycle[i].checked == true ){
cycle_v = cycle[i].value
}
}
if(cycle_v == '日'){
for (i=0;i<strArr.length;i++){
if (strArr[i].text==astro){
window.open(strArr[i].link);
return false
}
}
}
if(cycle_v == '周'){
for (i=0;i<strArr_w.length;i++){
if (strArr_w[i].text==astro){
window.open(strArr_w[i].link);
return false
}
}
}
return true
}
</script>
<form onsubmit="return astroWord(this)" action="http://mix.sina.com.cn/astro/view.php" method="post" target="_blank">
<tbody>
<tr>
<td class="link02" style="PADDING-LEFT: 5px" width="150" colspan="2"><input type="hidden" name="flag" value="1" /> <input type="radio" checked="checked" name="cycle" value="日" /> 今日运程 <a onclick="javascript:window.open ('http://astro.sina.com.cn/query.html','_blank','width=360,height=300,left=0,top=0');return false;" href="#">往日运程</a><br /><input type="radio" name="cycle" value="周" /> 每周运程 <a href="http://astro.sina.com.cn/">新浪星座</a> </td>
</tr>
<tr>
<td align="right" width="71" height="40"><select name="astro">
<option value="白羊座">白羊座</option>
<option value="金牛座">金牛座</option>
<option value="双子座">双子座</option>
<option value="巨蟹座">巨蟹座</option>
<option value="狮子座">狮子座</option>
<option value="处女座">处女座</option>
<option value="天秤座">天秤座</option>
<option value="天蝎座" selected="selected">天蝎座</option>
<option value="射手座">射手座</option>
<option value="魔羯座">魔羯座</option>
<option value="水瓶座">水瓶座</option>
<option value="双鱼座">双鱼座</option>
</select> </td>
<td style="PADDING-LEFT: 5px" width="79"><input class="userbutton" type="submit" name="image" value="搜 索" /> </td>
</tr>
</tbody>
</form>
</table>
</div>

