前台投稿表单模板需要加上以下代码就可以
<SCRIPT LANGUAGE = JavaScript> <!-- //** Power by Fason(2004-3-11) //** Email:fason_pfx@hotmail.com
var s=["province","city","area"] function setup() { for(i=0;i<s.length-1;i++) document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")"); change(0); } function show(){ document.add.locus.value= document.getElementById('province').options[document.getElementById('province').selectedIndex].value + "-" + document.getElementById('city').options[document.getElementById('city').selectedIndex].value + "-" + document.getElementById('area').options[document.getElementById('area').selectedIndex].value; } //--> </SCRIPT>
<script language="javascript" src="PCASClass.js"></script>
|