Guest
로그인
회원가입
val1['selected']">
val1['open_window']=='Y'">About
val2['selected']" >
val2['open_window']=='Y'">About
val2['selected']" >
val2['open_window']=='Y'">Team
val2['selected']" >
val2['open_window']=='Y'">Event
val2['selected']" >
val2['open_window']=='Y'">Brand
val1['selected']">
val1['open_window']=='Y'">Get Involved
val2['selected']" >
val2['open_window']=='Y'">Learn
val2['selected']" >
val2['open_window']=='Y'">개발자 가이드
val2['selected']" >
val2['open_window']=='Y'">API
val1['selected']">
val1['open_window']=='Y'">Blog
val1['selected']">
val1['open_window']=='Y'">Download
val2['selected']" >
val2['open_window']=='Y'">XE 자료실
val2['selected']" >
val2['open_window']=='Y'">마켓 허브
val1['selected']">
val1['open_window']=='Y'">Support
val2['selected']" >
val2['open_window']=='Y'">포럼
val2['selected']" >
val2['open_window']=='Y'">커뮤니티
val2['selected']" >
val2['open_window']=='Y'">묻고답하기
val2['selected']" >
val2['open_window']=='Y'">웹마스터 팁
val2['selected']" >
val2['open_window']=='Y'">사용자 가이드
val2['selected']" >
val2['open_window']=='Y'">웹사이트 개발 문의
val2['selected']" >
val2['open_window']=='Y'">XE1 제작 의뢰
val2['selected']" >
val2['open_window']=='Y'">XE1 제작 지원
val2['selected']" >
val2['open_window']=='Y'">구인/구직
val2['selected']" >
val2['open_window']=='Y'">호스팅 홍보
val2['selected']" >
val2['open_window']=='Y'">공식사이트 이용문의
val1['selected']">
val1['open_window']=='Y'">Showcase
val1['selected']">
val1['open_window']=='Y'">XE3
val2['selected']" >
val2['open_window']=='Y'">XE3
쓰기
웹마스터 팁
전체
날라서 붙는 텍스트
왜,그러지
2006.07.17 18:38:35
1
출처 적용된곳 http://cafe.daum.net/saebel
<html>
<body>
<h2 id="fly">감사합니다.방문을 환영합니다.$오늘도 즐거운 시간이 되기길 바랍니다.!</h2>
<script type="text/javascript">
message = document.getElementById("fly").innerHTML; // $ = taking a new line
distance = 50; // pixel(s)
speed = 200; // milliseconds
var txt="",
num=0,
num4=0,
flyofle="",
flyofwi="",
flyofto="",
fly=document.getElementById("fly");
function stfly() {
for(i=0;i != message.length;i++) {
if(message.charAt(i) != "$")
txt += "<span style='position:relative;visibility:hidden;' id='n"+i+"'>"+message.charAt(i)+"</span>";
else
txt += "<br>";
}
fly.innerHTML = txt;
txt = "";
flyofle = fly.offsetLeft;
flyofwi = fly.offsetWidth;
flyofto = fly.offsetTop;
fly2b();
}
function fly2b() {
if(num4 != message.length) {
if(message.charAt(num4) != "$") {
var then = document.getElementById("n" + num4);
then.style.left = flyofle - then.offsetLeft + flyofwi / 2;
then.style.top = flyofto - then.offsetTop + distance;
fly3(then.id, parseInt(then.style.left), parseInt(then.style.left) / 5, parseInt(then.style.top), parseInt(then.style.top) / 5);
}
num4++;
setTimeout("fly2b()", speed);
}
}
function fly3(target,lef2,num2,top2,num3) {
if((Math.floor(top2) != 0 && Math.floor(top2) != -1) || (Math.floor(lef2) != 0 && Math.floor(lef2) != -1)) {
if(lef2 >= 0)
lef2 -= num2;
else
lef2 += num2 * -1;
if(Math.floor(lef2) != -1) {
document.getElementById(target).style.visibility = "visible";
document.getElementById(target).style.left = Math.floor(lef2);
} else {
document.getElementById(target).style.visibility = "visible";
document.getElementById(target).style.left = Math.floor(lef2 + 1);
}
if(lef2 >= 0)
top2 -= num3
else
top2 += num3 * -1;
if(Math.floor(top2) != -1)
document.getElementById(target).style.top = Math.floor(top2);
else
document.getElementById(target).style.top = Math.floor(top2 + 1);
setTimeout("fly3('"+target+"',"+lef2+","+num2+","+top2+","+num3+")",50)
}
}
stfly()
</script>
</body>
</html>
삭제
이 게시물을
좋아요 2
태그목록
없음
첨부파일 목록
없음
목록으로 돌아가기
댓글 쓰기
댓글 목록
[1]
파워스톤
감사합니다.방문을 환영합니다.$오늘도 즐거운 시간이 되기길 바랍니다.!
댓글
2008-01-28
삭제
감사합니다.방문을 환영합니다.$오늘도 즐거운 시간이 되기길 바랍니다.!