省份城市层选择.rar
注意:如果出现错误,请检查当前编码,如果是utf-8则将js文件以文本方式打开另存为utf-8
如果想页面不变黑色,且对select下拉框进行遮罩的话则修改common.js文件中的方法将创建层由div换成iframe
function buildGlobalDiv(){
var globalDiv=document.createElement('iframe');
//var globalDiv=document.createElement('div');
globalDiv.id='globalDiv';
globalDiv.style.display='none';
globalDiv.style.zIndex='98';
globalDiv = set_div_style(globalDiv,'globalDiv','0px','0px',bodyScrollWidth+'px',bodyScrollHeight+'px',"absolute"," #333333 0px solid","default","darkgray");
if ( 1 == exp ) {
globalDiv.style.filter="alpha(opacity=30)";
}
else {
globalDiv.style.opacity=30/100;
}
document.body.appendChild(globalDiv);
}
var globalDiv=document.createElement('iframe');
//var globalDiv=document.createElement('div');
globalDiv.id='globalDiv';
globalDiv.style.display='none';
globalDiv.style.zIndex='98';
globalDiv = set_div_style(globalDiv,'globalDiv','0px','0px',bodyScrollWidth+'px',bodyScrollHeight+'px',"absolute"," #333333 0px solid","default","darkgray");
if ( 1 == exp ) {
globalDiv.style.filter="alpha(opacity=30)";
}
else {
globalDiv.style.opacity=30/100;
}
document.body.appendChild(globalDiv);
}