Hey guys wanna share you this:
Credit: [b]DynamicDrive[/b]
Preview here:[url]http://profiles.friendster.com/86006449[/url]
paste this to your Javascript FIle Compilation!
[spoiler]//1) set message to display
[b]var scroller_msg = 'Your Text Here'[/b]
//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 (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="background-color: [b]#fffffff[/b];position:[b]absolute[/b];width[b]:150px[/b];height: [b]20px[/b];border:[b]2px groove yellow[/b];font-size:[b]14px[/b];color:[b]green[/b];">'+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.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}[/spoiler]
Change this part! [spoiler]var scroller_msg = 'Your Text Here'[/spoiler] with this....
[quote][align=center]var scroller_msg = document.getElementById('shoutouttxt').innerHTML[/align][/quote]
if you want your Shoutout Text will follow your cursor~!~
Thank you!
[quote][align=center][b]Delete if Already Existing![/b][/align][/quote]
Last edited by mega25 (2008-10-24 21:00:12)