//Pop-it menu- By Dynamic Drive - Modified by Wbird //For full source code and more DHTML scripts, visit http://www.dynamicdrive.com //This credit MUST stay intact for use var menuOffX=-6 //菜单距连接文字最左端距离 var menuOffY=-3 //菜单距连接文字顶端距离 var fo_shadows=new Array() var linkset=new Array() ////No need to edit beyond here var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1 var ns6=document.getElementById&&!document.all var ns4=document.layers function openScript(url, width, height){ var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' ); } function showmenu(e,vmenu,mod){ if (!document.all&&!document.getElementById&&!document.layers) return eventX=ie4? event.clientX : ns6? e.clientX : e.x eventY=ie4? event.clientY : ns6? e.clientY : e.y var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY if (rightedge>=100) which="

" + mod + "
" else which="

" + mod + "
" //which=vmenu; clearhidemenu() //ie_clearshadow() menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : "" menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj if (ie4||ns6) menuobj.innerHTML=which else{ menuobj.document.write(''+which+'') menuobj.document.close() } menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height if (rightedge0; i--) { var rect = document.createElement('div'); var rs = rect.style rs.position = 'absolute'; rs.left = (el.style.posLeft + i) + 'px'; rs.top = (el.style.posTop + i) + 'px'; rs.width = el.offsetWidth + 'px'; rs.height = el.offsetHeight + 'px'; rs.zIndex = el.style.zIndex - i; rs.backgroundColor = color; var opacity = 1 - i / (i + 1); rs.filter = 'alpha(opacity=' + (100 * opacity) + ')'; //el.insertAdjacentElement('afterEnd', rect); fo_shadows[fo_shadows.length] = rect; } } function ie_clearshadow() { for(var i=0;i500 && oImg[i].widthoClientSreen){oImg[i].style.width=oClientSreen-200;} } } //HTML过滤函数 function HTMLEncode(text) { text = text.replace(/&/g, "&") ; text = text.replace(/"/g, """) ; text = text.replace(//g, ">") ; text = text.replace(/'/g, "’") ; return text ; } function doColor(color,strtarget){ document.getElementById(strtarget).style.color=color} function doSize(size,strtarget){ document.getElementById(strtarget).style.fontSize=size+'px'}