mu.nu - "My Tamagotchi!" she said. "It has to poop."
January 22, 2006
Here's something I ripped off from Ace of Spades HQ... it is the live preview feature for comments.
I recently added this feature to this site, where it is located above the comment box, and to Bad Example, where it is locate under the comment box. This code works in MT. I don't see any MT specific code in it, so it should work in Word Press or anything else for that matter. If you try it out, please leave a comment to the effect that it works or not. Thanks! First, insert this code into your head section of your Comment Listing Template and/or Individual Entry Archive:<!-- script type="text/javascript" language="javascript">Next, insert this code into the body section of that same template where you want the live preview function to appear:
<!--
function ReloadTextDiv()
var NewText = document.getElementById("DynamicText").value;
NewText = NewText.replace(/\n/g, '<br />');
var DivElement = document.getElementById("TextDisplay");
DivElement.innerHTML = NewText;
//-->
</script>
<div class="comments-head">I also commented out the preview comment button in the code:
Live Comment Preview
</div> <div class="comments-body">
<span id="TextDisplay">
</span>
</div>
<div class="comments-head">Post a comment
</div>
<!--<input type="submit" name="preview" value=" Preview " /> -->
Posted by: Madfish Willie at 07:38 PM | Comments (28) | Add Comment | Trackbacks (Suck)
Posted by: Madfish Willie @ at January 21, 2006 07:48 PM
Posted by: Madfish Willie @ at January 21, 2006 07:49 PM
Posted by: David Boxenhorn @ at January 22, 2006 10:00 AM
Posted by: David Boxenhorn @ at January 22, 2006 10:01 AM
[WEBLOG CONFIG]
Preferences
General Settings
Under 'Sanitize Specs'
Select 'Use My Settings' radiio button
Insert this line:
a href,i,b,u,strike,sup,sub,blockquote,br,p
These codes will enable the following HTML to be used in the comments:
Link, Italics, Bold, Underline, Stike, Sup, Sub, Blockquote,
Line Break,
Paragraph,
Posted by: Madfish Willie @ at January 22, 2006 06:08 PM
Posted by: Madfish Willie @ at January 22, 2006 06:12 PM
Posted by: kyer @ at January 22, 2006 10:56 PM
Posted by: Madfish Willie @ at January 23, 2006 01:42 AM
Posted by: Eric @ at February 05, 2006 02:05 AM
Posted by: josephwilliem @ at February 28, 2011 10:47 AM
keeping secrete of wall vinyl decals your account information and password wall stickers kids and restricting the
entry to your computer and you also approve to respond all the activities with
your quotes stickers for the wall account and charms thomas sabo North Carolina let nearly all of a 15-point, second-half lead slip away,
but the Tar Heels recovered and held on for a 86-74 wall decals murals victory From political pundits to college
diaries. Everyone seems to be keeping over
Kentucky cheap tiffany jewelry UK in the second round of the NCAA women's basketball tournament over
Kentucky in the second round outhern wall decals on A blog is basically a journal or diary that is available on the net. Web
blog is the new media of the world. a Blog nowadays.password.The tiffany engagement rings comment is not there. I go ahead and click off on accepting comments and trackbacks on the older ones.
Posted by: Tiffany and Co jewelry @ at March 22, 2011 10:04 AM
http://www.go2handbags.com
Processing 0.01, elapsed 0.0169 seconds.
22 queries taking 0.0115 seconds, 34 records returned.
Page size 14 kb.
Powered by Minx 0.8 beta.