OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Divide Block text
This page's ID:
22579
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
After finding THIS. This thread should probably be moved where JavaScript gets solved. But that's out of my power so I'll just put it here. I can not translate this, but if someone can could you provide me with a set of characters that would allow a line break and still allow the text to become a hyperlink? [code]function highlightInterests(IDString) { if (document.getElementById) { inputString = document.getElementById(IDString).innerHTML; /* Delimiters in hex: , \x2C ( \x28 ) \x29 - \x2D : \x3A ; \x3B * \x2A / \x2F \ \x5C . \x2E ! \x21 ? \x3F { \x7B } \x7D [ \x5B ] \x5D + \x2B Control chars in hex: < \x3C > \x3E */ var HTML = /([\x3C\x3E])/gi; var Items = /([^\s\x2C\x28\x29\x2D\x3A\x3B\x2A\x2F\x5C\x2E\x21\x3F\x7B\x7D\x5B\x5D\x2B]+([\s]+[^\s\x2C\x28\x29\x2D\x3A\x3B\x2A\x2F\x5C\x2E\x21\x3F\x7B\x7D\x5B\x5D\x2B]+)*)/g; var outputString = inputString; if (!HTML.test(outputString)) { outputString = outputString.replace(Items, "<A HREF=\"#\" CLASS=\"searchlinksmall\" onclick=\"executeSearch(this.innerText);return false;\">$1</A>"); document.getElementById(IDString).innerHTML = outputString; } } } function executeSearch(linkRef) { location.href = siteURL + "index.cfm?fuseaction=advancedFind.results&SearchType=MySpace&SearchRequest=" + escape(linkRef); }[/code] [sigrotate][img]http://cutter.ship.edu/~icn/sonofa.gif[/img]|[img]http://cutter.ship.edu/~icn/babysig.gif[/img][/sigrotate]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »