TKW22 Posted April 19, 2009 Share Posted April 19, 2009 i haven't used javascript in a while so i have a ?how can i make bbcode buttons that pop up on the screen i have done this before just cant seem to remember.than after that insert it into a text box? Link to comment Share on other sites More sharing options...
ChidoriSoul Posted April 20, 2009 Share Posted April 20, 2009 what do you mean by bbcode butons that pop up on a screen?As for a textarea <textarea>Letters</textarea> Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted April 20, 2009 Share Posted April 20, 2009 I hope that these resources will be useful: http://www.sitepoint.com/forums/showthread.php?t=296023 http://alexking.org/blog/2003/06/02/insert...ing-javascript/ Link to comment Share on other sites More sharing options...
TKW22 Posted April 20, 2009 Author Share Posted April 20, 2009 what do you mean by bbcode butons that pop up on a screen?As for a textarea<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Untitled</title><script language=JavaScript type=text/javascript><!--function hi() {document.getElementById('juju').innerHTML+= "[ b ]"+document.getElementById('gug').value+"[ / b ]";}function show () {document.getElementById('show').style.display='block';}function hide() {document.getElementById('show').style.display='none';}//--></script><style type="text/css">#show {display: none;position: absolute;z-index:10;}</style></head><body><button type="" onclick="show()">bold</button><div id="show"><input type="text" id="gug"/> <button onclick="hi();hide()">done</button></div><textarea rows="5" cols="40" id="juju"></textarea></body></html> sorry about the mess ill fix it later.what i want is so i don't need to make so many show and hide functions for each bbcode Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.