OZONE Asylum
Forums
Getting to know the Grail
the quote-button doesn't seem to work in google's chrome.
This page's ID:
30591
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
[quote] [b]GRUMBLE said:[/b] just to let you know ;) [/quote] thanks for caring :) TP, could you put this bit of JS in place of the current quotePost() function just for fun? [code]/* * * * Quote (part of) a post */ // Inspired by Emperor, http://www.the-emperor.org/ function quotePost(quoteID) { quoteAuthor = stripHTML(getObj("post_" + quoteID + "_author").innerHTML); quoteText = stripHTML(getObj("post_" + quoteID).innerHTML); // Get selection (if any) var userSelection; if (window.getSelection) { // Mozilla way userSelection = window.getSelection(); } else if (document.selection) { // Microsoft way (should come last; Opera!) userSelection = document.selection.createRange(); } var selectedText = userSelection; if (userSelection.text) selectedText = userSelection.text; // Check if the selection is part of the post if (selectedText && filterWhitespace(quoteText).indexOf(filterWhitespace(selectedText)) != -1) { quoteText = selectedText; } quoteText = trim(decodeHTMLEntities(quoteText)); quoteUBB = "[quote]\n[b]" + quoteAuthor + " said:[/b]\n\n" + quoteText + "\n[/quote]\n"; insertCode(quoteUBB); }[/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »