━━━━ Perhaps/•……태그 HTML

마우스따라다니는 예쁜아이콘

크리아이 2007. 10. 23. 14:47
소스에서
http://homenote.cvnet.co.kr/web_file/images/blog/log_image/2027/1/cursanta.gif",32,32

윗 이미지주소하구 32,32 이미지 사이즈만 변경하시면 됩니다...

예쁜 아이콘으로 바꾸어 쓰에요 펌아이콘 게시판에 아이콘 많아요~~~





<!---소스 시작---->

<SCRIPT LANGUAGE="xxxxJavaScript">

B=document.all;
C=document.layers;
T1=new Array("http://homenote.cvnet.co.kr/web_file/images/blog/log_image/2027/1/cursanta.gif",32,32)

nos=parseInt(T1.length/3)
rate=5
ie5fix1=15;
ie5fix2=15;

ver = parseInt(navigator.appVersion);
if (ver >= 4) {
loadcursor();
}

function loadcursor() {
for (i=0;i<nos;i++){
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")}

if(document.layers)
document.captureEvents(Event.MOUSEMOVE)
document.xx[안내]태그제한으로등록되지않습니다-xxonmousemove=newPos;
setInterval("cycle()",rate);
}

function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
with (document){
write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
if(St){
if (C)
write(" style='");
write(St+";' ")
}
else write((B)?"'":"");
write((At)? At+">" : ">");
write((HT) ? HT : "");
if (!Op)
closeContainer(N)
}
}
function closeContainer(){
document.write((B)?"</div>":"</layer>")
}
function getXpos(N){
return (B) ? parseInt(B[N].style.left) : C[N].left
}
function getYpos(N){
return (B) ? parseInt(B[N].style.top) : C[N].top
}

function moveContainer(N,DX,DY){
c=(B) ? B[N].style :C[N];c.left=DX;c.top=DY
}
function cycle(){

if (document.all&&window.print){
ie5fix1=document.body.scrollLeft;
ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++){
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}
function newPos(e){
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1+10:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2
)
}

</SCRIPT>
<!--마우스 소스끝-->