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

· 10년 전 · 1524

<!---- 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> 

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

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 2,073
10년 전 조회 1,775
10년 전 조회 1,754
10년 전 조회 1,744
10년 전 조회 1,822
10년 전 조회 1,777
10년 전 조회 1,780
10년 전 조회 1,912
10년 전 조회 1,710
10년 전 조회 1,732
10년 전 조회 1,763
10년 전 조회 1,879
10년 전 조회 1,727
10년 전 조회 1,862
10년 전 조회 1,629
10년 전 조회 1,736
10년 전 조회 1,527
10년 전 조회 1,770
10년 전 조회 1,546
10년 전 조회 1,614
10년 전 조회 1,717
10년 전 조회 1,608
10년 전 조회 1,649
10년 전 조회 1,595
10년 전 조회 1,999
10년 전 조회 2,005
10년 전 조회 1,997
10년 전 조회 1,971
10년 전 조회 1,747
10년 전 조회 1,866
10년 전 조회 2,022
10년 전 조회 1,729
10년 전 조회 2,018
10년 전 조회 1,986
10년 전 조회 2,366
10년 전 조회 1,971
10년 전 조회 2,198
10년 전 조회 1,795
10년 전 조회 1,958
10년 전 조회 1,649
10년 전 조회 1,737
10년 전 조회 1,770
10년 전 조회 1,783
10년 전 조회 1,936
10년 전 조회 1,713
10년 전 조회 1,740
10년 전 조회 1,755
10년 전 조회 1,660
10년 전 조회 1,716
10년 전 조회 1,525
10년 전 조회 1,595
10년 전 조회 1,517
10년 전 조회 1,667
10년 전 조회 1,613
10년 전 조회 2,085
10년 전 조회 1,565
10년 전 조회 1,524
10년 전 조회 1,789
10년 전 조회 1,596
10년 전 조회 1,557
10년 전 조회 1,565
10년 전 조회 1,528
10년 전 조회 1,448
10년 전 조회 1,428
10년 전 조회 1,539
10년 전 조회 1,511
10년 전 조회 1,463
10년 전 조회 1,356
10년 전 조회 1,424
10년 전 조회 1,466
10년 전 조회 1,447
10년 전 조회 1,514
10년 전 조회 1,478
10년 전 조회 1,440
10년 전 조회 1,440
10년 전 조회 1,483
10년 전 조회 1,461
10년 전 조회 1,544
10년 전 조회 1,449
10년 전 조회 1,403
10년 전 조회 1,376
10년 전 조회 1,401
10년 전 조회 1,421
10년 전 조회 1,419
10년 전 조회 1,440
10년 전 조회 1,379
10년 전 조회 1,455
10년 전 조회 1,388
10년 전 조회 1,483
10년 전 조회 1,569
10년 전 조회 1,551
10년 전 조회 1,475
10년 전 조회 1,398
10년 전 조회 1,545
10년 전 조회 1,441
10년 전 조회 1,475
10년 전 조회 1,415
10년 전 조회 1,403
10년 전 조회 1,389
10년 전 조회 1,419