Pam G. commented on a Page, Weather script for mIRC  -  Jan 25, 2012

I wonder if this code be a add on to the weatherbot to be a nice weather warning ticker for the ops to see on the mouse pointers while everyone else is using the bot. Just wondering.

<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

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var initialvisible=0
if (document.all)
document.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.clientY+10
}

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

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

//-->
 </SCRIPT><BODY style="width:100%;overflow-x:hidden;overflow-y:scroll">
XxBonf1r3xX  -  Nov 07, 2016

Is it possible to make it to always post with /me coloured message?

eqrunner  -  Dec 17, 2016

It has been a minute since I worked on the script. Perhpase below line 450, in the results section. Change the msg lines to msg you instead of the chan?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.