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

· 10년 전 · 1357

<!---- 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,896
9년 전 조회 1,594
9년 전 조회 1,566
9년 전 조회 1,552
10년 전 조회 1,648
10년 전 조회 1,593
10년 전 조회 1,630
10년 전 조회 1,736
10년 전 조회 1,538
10년 전 조회 1,551
10년 전 조회 1,571
10년 전 조회 1,706
10년 전 조회 1,558
10년 전 조회 1,659
10년 전 조회 1,481
10년 전 조회 1,559
10년 전 조회 1,379
10년 전 조회 1,600
10년 전 조회 1,403
10년 전 조회 1,447
10년 전 조회 1,556
10년 전 조회 1,454
10년 전 조회 1,483
10년 전 조회 1,420
10년 전 조회 1,831
10년 전 조회 1,855
10년 전 조회 1,829
10년 전 조회 1,796
10년 전 조회 1,572
10년 전 조회 1,697
10년 전 조회 1,867
10년 전 조회 1,581
10년 전 조회 1,858
10년 전 조회 1,835
10년 전 조회 2,210
10년 전 조회 1,812
10년 전 조회 2,020
10년 전 조회 1,657
10년 전 조회 1,796
10년 전 조회 1,500
10년 전 조회 1,569
10년 전 조회 1,627
10년 전 조회 1,602
10년 전 조회 1,768
10년 전 조회 1,537
10년 전 조회 1,571
10년 전 조회 1,566
10년 전 조회 1,479
10년 전 조회 1,546
10년 전 조회 1,358
10년 전 조회 1,433
10년 전 조회 1,334
10년 전 조회 1,497
10년 전 조회 1,434
10년 전 조회 1,909
10년 전 조회 1,373
10년 전 조회 1,345
10년 전 조회 1,604
10년 전 조회 1,405
10년 전 조회 1,379
10년 전 조회 1,375
10년 전 조회 1,323
10년 전 조회 1,254
10년 전 조회 1,235
10년 전 조회 1,350
10년 전 조회 1,328
10년 전 조회 1,266
10년 전 조회 1,163
10년 전 조회 1,239
10년 전 조회 1,227
10년 전 조회 1,239
10년 전 조회 1,295
10년 전 조회 1,293
10년 전 조회 1,241
10년 전 조회 1,240
10년 전 조회 1,281
10년 전 조회 1,260
10년 전 조회 1,340
10년 전 조회 1,253
10년 전 조회 1,201
10년 전 조회 1,191
10년 전 조회 1,194
10년 전 조회 1,188
10년 전 조회 1,205
10년 전 조회 1,214
10년 전 조회 1,176
10년 전 조회 1,248
10년 전 조회 1,183
10년 전 조회 1,279
10년 전 조회 1,356
10년 전 조회 1,337
10년 전 조회 1,281
10년 전 조회 1,191
10년 전 조회 1,321
10년 전 조회 1,213
10년 전 조회 1,246
10년 전 조회 1,211
10년 전 조회 1,171
10년 전 조회 1,175
10년 전 조회 1,195