PDA

View Full Version : Text Area BBCode



Moh
05-01-2008, 11:05 PM
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.

<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", colors, true);
</script>

Moved by Agesilaus (Forum Moderator) from Designing and Development: Please post in the correct forum next time. :)

Want to hide these adverts? Register an account for free!