항상 같은곳에 광고창 만들기 입니다.

· 10년 전 · 1159

<!---- 1. 아래의 코드를 HEAD 부분에 붙여 넣으세요 ------>

<style>
<!--
.drag{position:relative;cursor:hand
}
#scontentmain{
position:absolute;
width:150px;
}
#scontentbar{
cursor:hand;
position:absolute;
background-color:green;
height:15;
width:100%;
top:0;
}
#scontentsub{
position:absolute;
width:100%;
top:15;
background-color:lightyellow;
border:2px solid green;
padding:1.5px;
}
-->
</style>

<script language="JavaScript1.2">
<!--

var dragapproved=false
var zcor,xcor,ycor

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function movescontentmain(){
if (event.button==1&&dragapproved){
zcor.style.pixelLeft=tempvar1+event.clientX-xcor
zcor.style.pixelTop=tempvar2+event.clientY-ycor
leftpos=document.all.scontentmain.style.pixelLeft-ietruebody().scrollLeft
toppos=document.all.scontentmain.style.pixelTop-ietruebody().scrollTop
return false
}
}
function dragscontentmain(){
if (!document.all)
return
if (event.srcElement.id=="scontentbar"){
dragapproved=true
zcor=scontentmain
tempvar1=zcor.style.pixelLeft
tempvar2=zcor.style.pixelTop
xcor=event.clientX
ycor=event.clientY
document.onmousemove=movescontentmain
}
}
document.onmousedown=dragscontentmain
document.onmouseup=new Function("dragapproved=false")
//-->
</script>

</HEAD>

<BODY>

<!--- 아래의 코드를 </body> 태그위에 붙여넣으세요 --------->

<div id="scontentmain">
        <div id="scontentbar" >
        <a href="javascript:onoffdisplay()">축소</a>
        </div>
                <div id="scontentsub">
                <p align="center"><br>
                광고창</p>
                여기에 내용을 입력 하세요
                </div>
        </div>
</div>

<script language="JavaScript1.2">

var w=ietruebody().clientWidth-195 // 화면 오른쪽 끝에서 -195 px
var h=50 // 화면 위에서 50px

w+=ietruebody().scrollLeft
h+=ietruebody().scrollTop

var leftpos=w
var toppos=h
scontentmain.style.left=w
scontentmain.style.top=h

function onoffdisplay(){
if (scontentsub.style.display=='')
scontentsub.style.display='none'
else
scontentsub.style.display=''
}

function staticize(){
w2=ietruebody().scrollLeft+leftpos
h2=ietruebody().scrollTop+toppos
scontentmain.style.left=w2
scontentmain.style.top=h2
}
window.onscroll=staticize

</script> 

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
9년 전 조회 1,663
9년 전 조회 1,375
9년 전 조회 1,349
9년 전 조회 1,318
9년 전 조회 1,415
9년 전 조회 1,318
9년 전 조회 1,395
9년 전 조회 1,492
9년 전 조회 1,303
9년 전 조회 1,347
9년 전 조회 1,330
9년 전 조회 1,472
9년 전 조회 1,314
9년 전 조회 1,433
9년 전 조회 1,273
9년 전 조회 1,348
9년 전 조회 1,182
9년 전 조회 1,395
9년 전 조회 1,243
9년 전 조회 1,235
9년 전 조회 1,308
9년 전 조회 1,255
9년 전 조회 1,281
9년 전 조회 1,201
10년 전 조회 1,600
10년 전 조회 1,654
10년 전 조회 1,613
10년 전 조회 1,563
10년 전 조회 1,346
10년 전 조회 1,487
10년 전 조회 1,644
10년 전 조회 1,326
10년 전 조회 1,636
10년 전 조회 1,611
10년 전 조회 1,974
10년 전 조회 1,584
10년 전 조회 1,803
10년 전 조회 1,426
10년 전 조회 1,559
10년 전 조회 1,282
10년 전 조회 1,332
10년 전 조회 1,404
10년 전 조회 1,400
10년 전 조회 1,535
10년 전 조회 1,324
10년 전 조회 1,353
10년 전 조회 1,307
10년 전 조회 1,272
10년 전 조회 1,319
10년 전 조회 1,160
10년 전 조회 1,214
10년 전 조회 1,133
10년 전 조회 1,244
10년 전 조회 1,220
10년 전 조회 1,691
10년 전 조회 1,169
10년 전 조회 1,128
10년 전 조회 1,374
10년 전 조회 1,183
10년 전 조회 1,154
10년 전 조회 1,159
10년 전 조회 1,120
10년 전 조회 1,057
10년 전 조회 1,038
10년 전 조회 1,115
10년 전 조회 1,132
10년 전 조회 1,062
10년 전 조회 970
10년 전 조회 1,049
10년 전 조회 1,004
10년 전 조회 1,051
10년 전 조회 1,085
10년 전 조회 1,089
10년 전 조회 1,024
10년 전 조회 1,035
10년 전 조회 1,098
10년 전 조회 1,054
10년 전 조회 1,126
10년 전 조회 1,073
10년 전 조회 1,015
10년 전 조회 979
10년 전 조회 1,008
10년 전 조회 962
10년 전 조회 1,006
10년 전 조회 1,039
10년 전 조회 990
10년 전 조회 1,049
10년 전 조회 1,013
10년 전 조회 1,093
10년 전 조회 1,182
10년 전 조회 1,142
10년 전 조회 1,091
10년 전 조회 1,021
10년 전 조회 1,118
10년 전 조회 1,055
10년 전 조회 1,074
10년 전 조회 1,022
10년 전 조회 1,012
10년 전 조회 1,004
10년 전 조회 1,031