첫번째
<SCRIPT language=JavaScript1.2>
var scroller_msg='★원하는글자를쓴다★'
var dismissafter=0
var initialvisible=0
if (doc-ument.all)
doc-ument.write('<marquee id="curscroll" style="position:ab-solute;width:150;border:1 solid #FF84D8;font-size:9pt;font-family:돋움;color:#FF84D8;background:#FFFFFF;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=doc-ument.body.scrollLeft+event.clientX+10
curscroll.style.top=doc-ument.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (doc-ument.all){
doc-ument.on-mousemove=followcursor
doc-ument.on-dblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
</SCRIPT>
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
두번째
<script LANGUAGE="JavaScript">
B=document.all;
C=document.layers;
T1=new Array("이미지주소",87,58) <!---이미지주소 / 이미지크기----->
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.onmousemove=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>
'━━━━ Perhaps > •……태그 HTML' 카테고리의 다른 글
이미지위에 글 올리기 (0) | 2010.05.26 |
---|---|
wpl파일 실제 음악 주소 아는 방법 (0) | 2010.05.02 |
나모용 1단 2단 3단 스크롤바 소스 (0) | 2008.05.26 |
마퀴태그 (옆으로 흐르기) (0) | 2008.05.25 |
아이프레임 iframe 태그로 올릴시 (0) | 2008.04.13 |