Javascript Output

by ExPixel
This pretty much turns you browser into an output and gives it a couple of functions. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://ExPixel.JavascriptOutput##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://ExPixel.JavascriptOutput##version=1

191 downloads
Version 1
Date added: Mar 19 2011
Last updated: Mar 20 2011
0 fans
Well you can use this to put your output into your browser. Also added some functions so that you may hide and show certain classes.

Output
variables:
browser (Text) - the browser that should be used, e.g. browser = "default.browser1"
output_html (Text) - Not for you...
output_background_color (Text) - background color of the output, e.g. output_background_color = "#000000"
output_text_color (Tex) - foreground color of the output, e.g. output_text_color = "#FFFFFF"
output_limit (Number) - how many messages the output recieves before clearing, e.g. output_limit = 300

Procedures:
New(reciever, _browser, _output_limit, _output_background_color, _output_text_color)
reciever specifies who this will initialize for. Everything else is self explainitory.
Init(reciever)
"reciever" specifies who this will initialize for
Message(reciever, message, id)
reciever - will recieve the message.
message - the message.
id - the class of this message. (Used for hide and show, multiple messages may contain this id)
Hide(reciever, id)
Reciever - Who the messages with the type id should be hidden for.
id - the id of the messages that should be hidden.

Note: id is also the class of what your trying to hide, nothing special so you may include certain
classes in your messages and Hide will still work.

Show(reciever, id)
Reciever - Who the messages with the type id should be shown for.
id - the id of the messages that should be shown.

Note: Refer to Hide note.