<SCRIPT language="JavaScript1.2">
<!--
/*
Cursor scroller script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit
http://www.partizanha.blogsky.com
*/
//1) set message to display
var scroller_msg='Welcome my to weblog!'
//2) set whether message should auto disappear after x seconds (0=perpetual).
//Note that double clicking page will also dismiss message
var dismissafter=0
function ietruebody(){
return (do***ent.compatMode && do***ent.compatMode!="BackCompat")? do***ent.do***entElement : do***ent.body
}
var initialvisible=0
if (do***ent.all)
do***ent.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px 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=ietruebody().scrollLeft+event .clientX+10
curscroll.style.top=ietruebody().scrollTop+event.c lientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (do***ent.all){
do***ent.onmousemove=followcursor
do***ent.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</SCRIPT>
علاقه مندی ها (بوک مارک ها)