Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/04/2002, 01:42
El chacal
 
Fecha de Ingreso: marzo-2002
Mensajes: 257
Antigüedad: 22 años
Puntos: 0
Re: Seguir al puntero

Esta la #2


Cursor Scroller



ESTO VA ENTRE <BODY> y </BODY>



<SCRIPT language="JavaScript1.2">
<!--

/*
Cursor scroller script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

//1) set message to display
var scroller_msg='Welcome to Dynamic Drive, the premier DHTML code library online!'
//2) set whether message should auto disappear after x seconds (0=perpetual).
//Note that double clicking page will also dismiss message
var dismissafter=0

var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1 px solid black;font-size:14px;background-color:white;visibility:hidden">'+scroller_ msg+'</marquee>')

function followcursor(){
//move cursor function for IE

if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}

curscroll.style.left=document.body.scrollLeft+even t.clientX+10
curscroll.style.top=document.body.scrollTop+event. clientY+10
}

function dismissmessage(){
curscroll.style.visibility="hidden"
}


if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissaft er*1000)
}



//-->
</SCRIPT>


__________________________________________________ _____



Y esto en el tag:




<BODY style="width:100%;overflow-x:hidden;overflow-y:scroll" >