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

· 10년 전 · 1241

<!---- 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,777
9년 전 조회 1,485
9년 전 조회 1,452
9년 전 조회 1,427
9년 전 조회 1,520
9년 전 조회 1,451
9년 전 조회 1,510
9년 전 조회 1,606
9년 전 조회 1,425
9년 전 조회 1,450
9년 전 조회 1,450
9년 전 조회 1,562
9년 전 조회 1,432
10년 전 조회 1,543
10년 전 조회 1,379
10년 전 조회 1,453
10년 전 조회 1,272
10년 전 조회 1,505
10년 전 조회 1,311
10년 전 조회 1,330
10년 전 조회 1,429
10년 전 조회 1,354
10년 전 조회 1,372
10년 전 조회 1,288
10년 전 조회 1,707
10년 전 조회 1,745
10년 전 조회 1,719
10년 전 조회 1,659
10년 전 조회 1,450
10년 전 조회 1,590
10년 전 조회 1,733
10년 전 조회 1,421
10년 전 조회 1,728
10년 전 조회 1,702
10년 전 조회 2,081
10년 전 조회 1,681
10년 전 조회 1,899
10년 전 조회 1,534
10년 전 조회 1,651
10년 전 조회 1,380
10년 전 조회 1,430
10년 전 조회 1,503
10년 전 조회 1,500
10년 전 조회 1,635
10년 전 조회 1,407
10년 전 조회 1,438
10년 전 조회 1,398
10년 전 조회 1,354
10년 전 조회 1,419
10년 전 조회 1,242
10년 전 조회 1,297
10년 전 조회 1,205
10년 전 조회 1,346
10년 전 조회 1,299
10년 전 조회 1,771
10년 전 조회 1,249
10년 전 조회 1,214
10년 전 조회 1,460
10년 전 조회 1,273
10년 전 조회 1,239
10년 전 조회 1,249
10년 전 조회 1,195
10년 전 조회 1,116
10년 전 조회 1,117
10년 전 조회 1,211
10년 전 조회 1,216
10년 전 조회 1,135
10년 전 조회 1,029
10년 전 조회 1,118
10년 전 조회 1,091
10년 전 조회 1,114
10년 전 조회 1,165
10년 전 조회 1,162
10년 전 조회 1,101
10년 전 조회 1,117
10년 전 조회 1,167
10년 전 조회 1,130
10년 전 조회 1,200
10년 전 조회 1,139
10년 전 조회 1,073
10년 전 조회 1,054
10년 전 조회 1,066
10년 전 조회 1,054
10년 전 조회 1,084
10년 전 조회 1,108
10년 전 조회 1,062
10년 전 조회 1,136
10년 전 조회 1,064
10년 전 조회 1,178
10년 전 조회 1,250
10년 전 조회 1,218
10년 전 조회 1,161
10년 전 조회 1,085
10년 전 조회 1,200
10년 전 조회 1,106
10년 전 조회 1,145
10년 전 조회 1,088
10년 전 조회 1,067
10년 전 조회 1,068
10년 전 조회 1,091