웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
강추!! 요리조리 날라다니는 놈을 잡아랏...!! ;;
2002.06.14 16:28
미리보기 >> http://slowplus.com/test_fly.html
---------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript" src="http://slowplus.com/fly.js"></SCRIPT>
<div id="imgg1" style="position:absolute; top:200px; left:300px; visibility:hidden; z-index:10">
<script language="JavaScript1.2">
document.write('<a href="http://slowplus.com/"><img src="slowplus.gif" border=0 name=image1></a>');
</script>
---------------------------------------------------------------------------------
요기서 http://slowplus.com/ 은 날라다니는 이미지를 잡았을때 들어갈곳의 주소
slowplus.gif 은 날라다닐 이미지..^-^
잘 응용해서 멋지게 사용하세요..^^
저는 이벤트홍보용으로 쓴적이 있는데..;;
written by Kir / in S.P (html 체크를 못해서 로고대신으로;;;;;;;)
---------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript" src="http://slowplus.com/fly.js"></SCRIPT>
<div id="imgg1" style="position:absolute; top:200px; left:300px; visibility:hidden; z-index:10">
<script language="JavaScript1.2">
document.write('<a href="http://slowplus.com/"><img src="slowplus.gif" border=0 name=image1></a>');
</script>
---------------------------------------------------------------------------------
요기서 http://slowplus.com/ 은 날라다니는 이미지를 잡았을때 들어갈곳의 주소
slowplus.gif 은 날라다닐 이미지..^-^
잘 응용해서 멋지게 사용하세요..^^
저는 이벤트홍보용으로 쓴적이 있는데..;;
written by Kir / in S.P (html 체크를 못해서 로고대신으로;;;;;;;)
댓글 6
-
박세욱
2002.06.14 18:36
좋은소스네요.. 감사합니다 ^-^ -
박세욱
2002.06.14 18:37
속도조절은.. http://slowplus.com/fly.js파일 수정해야되는거죠? -
날개양^-^-*
2002.06.21 18:28
와우'ㅅ' 먼진데요오!!^^; -
날개양^-^-*
2002.06.21 18:30
혹시 필요하신분 계시려나;
http://slowplus.com/fly.js의 소스입니다'-';
var speed=150; //속도 조절합니다.(1/1000초)
var change=300; //방향전환 속도를 조절합니다.(1/1000초)
var xmax=15; //한번에 좌우로 움직이는 거리의 최대값(pixel)
var ymax=15; //한번에 상하로 움직이는 거리의 최대값(pixel)
var isNS=(navigator.appName=="Netscape");
var _all='all.';
var _style='.style';
var _visible='visible';
var w_x, w_y, x, y, tx, ty, xo, yo, imgg1;
var incrx=2;
var incry=8;
var xdir=true;
var ydir=true;
if(isNS){
_all='';
_style='';
_visible='show';
}
function init(){
imgg1=eval('document.'+_all+'imgg1'+_style);
resize();
moveimg(w_x/4,w_y/4);
imgg1.visibility=_visible;
animate();
changedirs();
regenerate2();
}
function resize(){
if(isNS){
w_x=window.innerWidth-document.imgg1.document.width;
w_y=window.innerHeight-document.imgg1.document.height;
}else{
w_x=document.body.clientWidth-document.image1.width;
w_y=document.body.clientHeight-document.image1.height;
}
}
function changedirs(){
xdir=(Math.floor(Math.random()*2)==0);
ydir=(Math.floor(Math.random()*2)==0);
incrx=Math.floor(Math.random()*xmax);
incry=Math.floor(Math.random()*ymax);
setTimeout('+ 'changedirs()',change);
}
function animate(){
if(isNS){
tx=imgg1.left;
ty=imgg1.top;
xo=pageXOffset;
yo=pageYOffset;
}else{
tx=imgg1.pixelLeft;
ty=imgg1.pixelTop;
xo=document.body.scrollLeft;
yo=document.body.scrollTop;
}
if(ydir){
if((ty+incry)>(w_y+yo)){ ydir=false; moveimg(0,-incry); } else { moveimg(0,incry); }
}else{
if((ty-incry)<yo){ ydir=true; moveimg(0,incry); } else { moveimg(0,-incry); }
}
if(xdir){
if((tx+incrx)>(w_x+xo)){ xdir=false; moveimg(-incrx,0); }else{ moveimg(incrx,0); }
}else{
if((tx-incrx)<xo){ xdir=true; moveimg(incrx,0); }else{ moveimg(-incrx,0); }
}
setTimeout('animate()',speed);
}
function moveimg(dx,dy){
if(isNS){
imgg1.moveBy(dx,dy);
}else{
imgg1.pixelTop+=dy;
imgg1.pixelLeft+=dx;
}
}
function hidebutterfly(){
if (document.all)
document.all.imgg1.style.visibility="hidden" ;
else if (document.layers)
document.imgg1.visibility="hide";
}
function regenerate(){
window.location.reload() ;
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400);
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function getPoint() {
pArray = new Array(1,5,10,50,100);
point = Math.floor((Math.random()*1000000));
if (point == 1) index = 5;
else if ( 1 < point && point <= 1000 ) index = 4;
else if ( 1000 < point && point <= 2000) index = 3;
else if ( 2000 < point && point <= 12000) index = 2;
else if ( 12000 < point && point <= 22000) index = 1;
else index = 0;//if ( 22 < point && point <= 1000) index = 1;
//else index = 0;
return pArray[index];
}
if (document.all)
window.onresize=resize
window.onload=init
- -; 만약 저작권에 침해 된다면 쪽지날려주세요..^^;
삭제할께요..^^; -
김상수
2004.10.21 19:26
성인 광고창 떠욧. ㅗ -
제로매니아
2005.03.11 17:12
이런분은 강퇴 시켜야 합니다. 凸
제목 | 글쓴이 | 날짜 |
---|---|---|
Red Hat Linux 의 복구 모드 간단한 사용법 [2] | u2em | 2004.06.28 |
왕초보를 위한 APM설치기...^^; [2] | 웰치스 | 2004.06.29 |
IIS에서 아웃로그인,최근게시물이 htm,html 에선 안돼고 php에서만 될때 해결방법 [4] | kyjzz | 2004.07.01 |
IIS 6.0과 PHP 4.3.7 연동 [8] | u2em | 2004.07.06 |
Windows 2003에서 유저.내아이디.dnip.net 셋팅 [3] | u2em | 2004.07.08 |
MySQL 백업과 복구 [11] | u2em | 2004.07.11 |
윈도우즈용 메일서버 추천- NMail [3] | u2em | 2004.07.19 |
명령수행 결과를 파일로 저장(초간단) [5] | u2em | 2004.08.02 |
sh명령어를 이용한 웹사이트 관리 | 김동욱 | 2004.08.09 |
DigiBBS 서버 이야기 - IDC 방문 이야기 [2] | 박용구 | 2004.08.22 |
DigiBBS 서버 이야기 2 - 서버 선택과 구매 | 박용구 | 2004.08.22 |
[튜닝] apache에서 이미지 캐싱 처리(mod_expires) [1] | 좋은진호 | 2004.09.02 |
(LAMPLinux,Apache,MySQL,PHP) 새로운 기능 및 설치 | 손상모 | 2004.09.15 |
[허접] turck-mmcache로 iis에서 php 빠르게하기 [3] | hanpedro | 2004.09.23 |
아파치 로그관리 팁이요 [4] | 조정필 | 2004.10.01 |
특정파일 엑세스 금지하기 [2] | 토토루 | 2004.10.08 |
도메인 주소에 www 자동으로 붙이기 [2] | 토토루 | 2004.10.08 |
무단링크 방지설정 [12] | 토토루 | 2004.10.09 |
사용자가 sh 명령어를 이용하여, 웹상에서 실행한번으로. 계정 백업하기 [3] | 김동욱 | 2004.10.10 |
WINDOW에서 APM_SETUP 쓰시는 분들 Mysql 자동 백업하기 | 김수남 | 2004.10.15 |