<div align=center> <!-- 居中的 其他自己修改 -->
<script language="javascript">
function showprovince() {
var provinces = new Array(
"北京", "浙江","上海", "重庆", "安徽", "福建", "甘肃", "广东", "广西", "贵州", "海南", "河北", "河南",
"香港", "湖北", "湖南", "江苏", "江西", "吉林", "辽宁", "澳门", "宁夏", "青海", "山东",
"山西", "陕西", "四川", "台湾", "天津", "新疆", "西藏", "云南", "黑龙江", "内蒙古","海外"
);
var html="";
for(var i = 0; i < provinces.length; i++) {
//html= html + "<a href='javascript:search(\""+provinces+"\")' class='link-blue'>"+provinces+"</a>";
html= html + "<a href='/batch.search.php?usersearch=true&province="+provinces+"' class='link-blue' target='_blank'>"+provinces+"</a>";
if((i+1)%6==0){ <!-- 每行显示条数 -->
html=html + "<br>";
}else{
html=html+" | ";
}
}
document.write(html);
}
function search(name)
{
var st = name;
window.open("/batch.search.php?usersearch=true&province="+st);
}
</script>
<script language="javascript" type="text/javascript">showprovince();</script>
</div>
演示地址:http://www.456b.com (123752619 提供 防35风格)
再送一个防yahoo 导航效果:
导航效果演示:http://www.456b.com/yahoo.htm
把上面的代码加到 模版里 即可 菜鸟首发
[ 本帖最后由 83393803 于 2007-10-21 15:36 编辑 ] |