테스트var defaultMenuWidth="150px" //set default menu width.
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[0]='
Dynamic Drive'
linkset[0]+='
' //Optional Separator
linkset[0]+='
링크프라이스'
linkset[0]+='
엠파스'
linkset[0]+='
네이버'
linkset[1]='
애플'
linkset[1]+='
모질라'
linkset[1]+='
FreeBSD'
linkset[1]+='
jEdit'
////No need to edit beyond here
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('')
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}
function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}
function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}
function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}
function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}
if (ie5||ns6)
document.onclick=hidemenu
술에 만취한 20대 운전자가 휴대전화를 충전해 달라며 경찰 지구대를 찾았다가 음주운전 사실이 발각돼 입건됐다.
5일 부산 해운대경찰서에 따르면 4일 오전 7시 10분께 해운대구 좌동지구대에 김모(27)씨가 술 냄새를 풍기며 들어와 "여자친구에게 전화를 해야 하는데 휴대전화 배터리가 없으니 충전시켜 달라"고 요구했다.
김씨는 근무중인 경찰관이 휴대전화를 충전기에 연결시켜주자 곧바로 전화를 걸어 1~2분 가량 통화를 하고는 지구대를 빠져나갔다.
김씨는 태연히 경찰 지구대 밖에 세워 둔 자신의 승용차에 올라 시동을 걸었고, 술 냄새를 수상히 여긴 경찰이 이 순간을 놓치지 않고 김씨의 음주여부를 측정한 결과 혈중 알코올 농도 0.124%의 만취 상태로 확인됐다.
경찰은 김씨를 도로교통법 위반 혐의로 불구속 입건하고 김씨의 운전면허도 함께 취소했다.
김씨는 "여자친구에게 전화를 걸고 싶은 마음에 지구대를 찾아 배터리 충전을 부탁했다"며 "술에 취한 것이 화근"이라며 뒤늦게 후회했다. [연합뉴스]
str = document.getElementById('article').innerHTML;
str = str.replace('휴대전화', '
휴대전화');
str = str.replace('배터리', '
배터리');
document.getElementById('article').innerHTML = str;