OZONE Asylum
Forums
Stupid Basic HTML
Generate html tag when hit enter question
This page's ID:
9703
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
well i did something like this using some of Pugzly's code. You have to highlight the text and then press a certain button on a form but it may give you what you want. [code] function hiliteToBold(txtArea){ txtAreaName = txtArea.name; txtRange = document.all[txtAreaName].createTextRange(); txtContainer = txtRange.parentElement().name; objRange = document.selection.createRange(); hiliteTxt = objRange.text; toBoldTxt = "<b>" + hiliteTxt + "</b>"; if(hiliteTxt != ""){ objRange.text = toBoldTxt; } } [/code] so I just have my main text box called "txtArea" and from the button, call the function. I had it to where you could add paragraph tags, links, etc... not sure if this is what you are after but it won't do it by just hitting enter. Later, C:\ [url=http://faq.ozoneasylum.com/922/]~Binary is best~[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »