2e6e88c Oct 22, 2010
71 lines (69 sloc) 2.53 KB
<html xmlns="" dir="ltr" lang="en-US">
<head profile="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="stylesheets/jquery.cssemoticons.css" media="screen" rel="stylesheet" type="text/css" />
<script src="javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="javascripts/jquery.cssemoticons.min.js" type="text/javascript"></script>
<script type="text/javascript">
//delay: 800,
//animate: false,
//exclude: 'pre, code, .no-emoticons'
//delay: 800,
//animate: false
//delay: 800,
//animate: false
<style type="text/css">
#small { font-size: 8px; }
#large { font-size: 72px; }
#regular { font-size: 20px; }
.wrapped { width: 350px; }
<h1 class="text" id="large">
It's a pirate ?-) ARGHHH!!!! :)
<p>^^ <i>I made this one up, but it's my plugin so it's supported</i> ^^</p>
<p><a href="#" id="toggle-headline">Click here</a> to toggle the "emoticonization" of the headline above.</p>
<p class="text" id="small">
Yo, this is some tiny text. :-)<br />
This is how emoticons stack up in a paragraph B)
<p class="text wrapped" id="regular">:O
Here is an example of what emoticons look like in a paragraph :-) You can tell here that the emoticons don't break the line-height in paragraphs like most of the image-replacement methods.
Also, here is a printed URL: Notice the <code>:/</code> doesn't get styled. And one in a nested element
<p class="text no-emoticons">
This entire paragraph is excluded from being emoticonized ;-)
<p class="text">
This paragraph has specific elements excluded. So this works B) <span class="no-emoticons">But this doesn't :(</span>
<hr />
<p class="text" id="regular">
Here are all of the emoticons currently supported (though it's easy to add your own):
:-) :) :o) :c) :^) :-D :-( :-9 ;-) :-P :-p :-Þ :-b :-O :-/ :-X :-# :'( B-) 8-) :-\ ;*( :-*
:] :&gt; =] =) 8) :} :D 8D XD xD =D :( :&lt; :[ :{ =( ;) ;] ;D :P :p =P =p :b :Þ :O 8O :/ =/ :S :# :X B) O:)
<p class="text" id="regular">
And some special emoticons: &lt;3 ;( &gt;:) &gt;;) &gt;:( O_o O_O o_o 0_o T_T ^_^ ?-) [+=..]
<hr />