항상 같은곳에 광고창 만들기 입니다.
<!---- 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>
게시판 목록
토크
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3331 | 10년 전 | 1999 | ||
| 3330 | 10년 전 | 2025 | ||
| 3329 | 10년 전 | 1492 | ||
| 3328 | 10년 전 | 1327 | ||
| 3327 |
mashmellow
|
10년 전 | 1956 | |
| 3326 | 10년 전 | 2561 | ||
| 3325 |
mixx애교
|
10년 전 | 1659 | |
| 3324 |
바람돌이팡
|
10년 전 | 1656 | |
| 3323 |
밥먹고합시다
|
10년 전 | 1481 | |
| 3322 |
플라이SINJI
|
10년 전 | 2979 | |
| 3321 |
개발짜증나
|
10년 전 | 2164 | |
| 3320 | 10년 전 | 1076 | ||
| 3319 | 10년 전 | 2761 | ||
| 3318 | 10년 전 | 2470 | ||
| 3317 |
개발짜증나
|
10년 전 | 1085 | |
| 3316 |
개발짜증나
|
10년 전 | 2313 | |
| 3315 | 10년 전 | 1692 | ||
| 3314 | 10년 전 | 1771 | ||
| 3313 |
mwdkim
|
10년 전 | 1784 | |
| 3312 |
mwdkim
|
10년 전 | 4702 | |
| 3311 | 10년 전 | 2399 | ||
| 3310 |
|
10년 전 | 1831 | |
| 3309 |
SeungYeon
|
10년 전 | 1680 | |
| 3308 |
아리마2001
|
10년 전 | 1480 | |
| 3307 |
|
10년 전 | 1247 | |
| 3306 | 10년 전 | 2004 | ||
| 3305 |
hyohyojj1234
|
10년 전 | 3097 | |
| 3304 |
ehdltdoit
|
10년 전 | 2392 | |
| 3303 | 10년 전 | 3283 | ||
| 3302 |
ILMare1003
|
10년 전 | 1873 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기