묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
<script>
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){
if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+ '+ '+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}
else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}
function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}
</script>
<body>
<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:#CCCCFF">
<layer id="layer1" left=50 top=50 width=1000 height=200 z-index=1 bgColor="lightyellow"></layer>
</div>
<br><br><br>
링크된 부분에 마우스를 가져가 보세요<br><br><br>
</font></strong></p>
<p align="left">
//아래 내용을 적당히 수정해 주세요
<a href="happyscript"
onMouseover="showtip2(this,event,'happy script입니다')"onMouseout="hidetip2()">Happy script</a><br>
<input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'>
위 소스를 코멘트 출력(View_comment.php)에 쓸려고합니다.
해당 파일안에 아무리 입력해도 되지않던데.....어떻게해야 적용되는거죠??
레이어뜨는 소스인데 게시판에서는....
2003.10.14 11:44
<script>
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){
if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+ '+ '+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}
else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}
function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}
</script>
<body>
<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:#CCCCFF">
<layer id="layer1" left=50 top=50 width=1000 height=200 z-index=1 bgColor="lightyellow"></layer>
</div>
<br><br><br>
링크된 부분에 마우스를 가져가 보세요<br><br><br>
</font></strong></p>
<p align="left">
//아래 내용을 적당히 수정해 주세요
<a href="happyscript"
onMouseover="showtip2(this,event,'happy script입니다')"onMouseout="hidetip2()">Happy script</a><br>
<input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'>
위 소스를 코멘트 출력(View_comment.php)에 쓸려고합니다.
해당 파일안에 아무리 입력해도 되지않던데.....어떻게해야 적용되는거죠??