Javascript Output

by ExPixel
[Share] [Zip]
ID:125438
 
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.