日期:2014-05-17  浏览次数:20560 次

css整理2
var _ul2 = document.createElement('ul');_ul2.className = 'center bgColor';var _ul2InnerHTML = "<input type='button' value = '确定' onclick = \"submitQuery()\" class = 'button-new'/>&nbsp;";
_ul2InnerHTML += "<input type='button' value = '取消' onclick = \"showSelectDiv('" + name + "')\" class = 'button-new'/>";
_ul2.innerHTML = _ul2InnerHTML;O<img src="${selectImg}" id="queryFlowStateImg" onclick="showSelectDiv('queryFlowState')"/>N<div id="queryFlowStateDIV" name="scDIV" ></div>
_div1.appendChild(_ul1);_div.appendChild(_ul0);_div.appendChild(_div1);_div.appendChild(_ul2);_div.className='select1';
if(flg == 0){$(imgID).innerText = _imgInnerText;
if(values == null || values == ''){$(cbAll).checked = true;
}else{$(cbAll).checked = false;}}else if(flg == 1){
var s = false;var _cbAll = $('cbAll');var _cbs = document.getElementsByName('cb');if(_cbAll!=null&&_cbs.length>0){
s = true;}if(values == null || values == ''){ $(cbAll).checked = true;
if(s){setCheckBox(cbAll,cb);}}setCheckBoxAll(cbAll,cb);}
if($(cbAll).checked){$(cbAll).value = 'ALL';}}
function hasExist(arr,value){arr = ','+arr+',';if(arr.indexOf(','+value+',')>=0){return true;}return false;}function showSelectDiv(name){var imgID = name+'Img';var divID = name+'DIV';disPlayAllSC(name);var _img = $(imgID);var _div = $(divID);if(_div.className == 'select1'){var oDivBoxTop = getTop(_img)+_img.scrollHeight;
var oDivBoxLeft = getLeft(_img);_div.style.top = oDivBoxTop + 5 + "px"; _div.style.left = oDivBoxLeft+"px";
_div.className = 'select2'; }else if(_div.className = 'select2'){
_div.className = 'select1';}}
function disPlayAllSC(name){var imgID = name+'Img';
var divID = name+'DIV';var _thisDIV = $(divID);var _thisButton = $(imgID);var _divs = document.getElementsByTagName('div');
for(var i=0;i<_divs.length;i++){if(_divs[i] != _thisDIV){
if(_divs[i].className == 'select2'){ _divs[i].className = 'select1';
}}}var _imgs = document.getElementsByTagName('input');
for(var i=0;i<_imgs.length;i++){if(_imgs[i] != _thisButton){
if(_imgs[i].className == 'selectButton2'){_imgs[i].className = 'selectButton1'; }}}}