Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 1 of 1
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default Text Area BBCode

    Well im using the same way as how habbo have there BBCode on the guestbook, but mine only seams to work fully in firefox (In IE there isn't a colour changer, and the buttons disapear on mouse over.

    I was woundering if any one has the full code to make it work?
    Thanks.
    PHP Code:
        <script type="text/javascript" src="http://images.habbohotel.co.uk/habboweb/18_057608660d344f70a14839f120f50f51/38/web-gallery/js/control.textarea.js"></script>
        <
    script type="text/javascript" src="http://images.habbohotel.co.uk/habboweb/18_057608660d344f70a14839f120f50f51/38/web-gallery/js/control.textarea.bbcode.js"></script>
        <
    link href="http://images.habbohotel.co.uk/habboweb/18_057608660d344f70a14839f120f50f51/38/web-gallery/styles/myhabbo/control.textarea.css" type="text/css" rel="stylesheet"/>
    <
    ul id="bbcode_toolbar">
        </
    ul>
        <
    textarea cols="40" rows="6" name="message" id="message"></textarea>
        <
    script type="text/javascript">
            
    bbcodeToolbar = new Control.TextArea.ToolBar.BBCode("message");
            
    bbcodeToolbar.toolbar.toolbar.id "bbcode_toolbar";
            var 
    colors = { "red" : ["#d80000""Red"],
                
    "orange" : ["#fe6301""Orange"],
                
    "yellow" : ["#ffce00""Yellow"],
                
    "green" : ["#6cc800""Green"],
                
    "cyan" : ["#00c6c4""Cyan"],
                
    "blue" : ["#0070d7""Blue"],
                
    "gray" : ["#828282""Grey"],
                
    "black" : ["#000000""Black"]
            };
            
    bbcodeToolbar.addColorSelect("Colours"colorstrue);
        </
    script
    Moved by Agesilaus (Forum Moderator) from Designing and Development: Please post in the correct forum next time.
    Last edited by Agesilaus; 05-01-2008 at 11:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •