PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Catalin Dordea   Yahoo Messenger Emoticons   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Yahoo Messenger Emoticons
Replace smiley text by Yahoo Messenger icons
Author: By
Last change:
Date: 16 years ago
Size: 10,839 bytes
 

Contents

Class file image Download
<? require_once('emo.inc.php'); echo smiley('Some text here :) This tags are :d text :)) replaced with :P smileys ;)'); ?> Full list of smileys: <table width="231" border="1"> <tbody> <tr> <td width="44" align="center"><img src="emo/1.gif" alt="happy" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:)</td> <td width="127">happy</td> </tr> <tr> <td align="center"><img src="emo/2.gif" alt="sad" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:(</td> <td>sad</td> </tr> <tr> <td align="center"><img src="emo/3.gif" alt="winking" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">;)</td> <td>winking</td> </tr> <tr> <td align="center"><img src="emo/4.gif" alt="big grin" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:D</td> <td>big grin</td> </tr> <tr> <td align="center"><img src="emo/5.gif" alt="batting eyelashes" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">;;)</td> <td>batting eyelashes</td> </tr> <tr> <td align="center"><img src="emo/6.gif" alt="big hug" border="0" height="18" width="42" /></td> <td nowrap="nowrap" width="38">&gt;:D&lt;</td> <td>big hug</td> </tr> <tr> <td align="center"><img src="emo/7.gif" alt="confused" border="0" height="18" width="20" /></td> <td nowrap="nowrap" width="38">:-/</td> <td>confused</td> </tr> <tr> <td align="center"><img src="emo/8.gif" alt="love struck" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:x</td> <td>love struck</td> </tr> <tr> <td align="center"><img src="emo/9.gif" alt="blushing" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:&quot;&gt;</td> <td>blushing</td> </tr> <tr> <td align="center"><img src="emo/10.gif" alt="tongue" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:P</td> <td>tongue</td> </tr> <tr> <td align="center"><img src="emo/11.gif" alt="kiss" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-*</td> <td>kiss</td> </tr> <tr> <td align="center"><img src="emo/12.gif" alt="broken heart" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">=((</td> <td>broken heart</td> </tr> <tr> <td align="center"><img src="emo/13.gif" alt="surprise" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-O</td> <td>surprise</td> </tr> <tr> <td align="center"><img src="emo/14.gif" alt="angry" border="0" height="18" width="34" /></td> <td nowrap="nowrap" width="38">X(</td> <td>angry</td> </tr> <tr> <td align="center"><img src="emo/15.gif" alt="smug" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:&gt;</td> <td>smug</td> </tr> <tr> <td align="center"><img src="emo/16.gif" alt="cool" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">B-)</td> <td>cool</td> </tr> <tr> <td align="center"><img src="emo/17.gif" alt="worried" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-S</td> <td>worried</td> </tr> <tr> <td align="center"><img src="emo/18.gif" alt="whew!" border="0" height="18" width="34" /></td> <td nowrap="nowrap" width="38">#:-S</td> <td>whew!</td> </tr> <tr> <td align="center"><img src="emo/19.gif" alt="devil" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">&gt;:)</td> <td>devil</td> </tr> <tr> <td align="center"><img src="emo/20.gif" alt="crying" border="0" height="18" width="22" /></td> <td nowrap="nowrap" width="38">:((</td> <td>crying</td> </tr> <tr> <td align="center"><img src="emo/21.gif" alt="laughing" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:))</td> <td>laughing</td> </tr> <tr> <td align="center"><img src="emo/22.gif" alt="straight face" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:|</td> <td>straight face</td> </tr> <tr> <td align="center"><img src="emo/23.gif" alt="raised eyebrow" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">/:)</td> <td>raised eyebrow</td> </tr> <tr> <td align="center"><img src="emo/24.gif" alt="rolling on the floor" border="0" height="18" width="30" /></td> <td nowrap="nowrap" width="38">=))</td> <td>rolling on the floor</td> </tr> <tr> <td align="center"><img src="emo/25.gif" alt="angel" border="0" height="18" width="30" /></td> <td nowrap="nowrap" width="38">O:-)</td> <td>angel</td> </tr> <tr> <td align="center"><img src="emo/26.gif" alt="nerd" border="0" height="18" width="24" /></td> <td nowrap="nowrap" width="38">:-B</td> <td>nerd</td> </tr> <tr> <td align="center"><img src="emo/27.gif" alt="talk to the hand" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">=;</td> <td>talk to the hand</td> </tr> <tr> <td width="44" align="center"><img src="emo/101.gif" alt="call me - New!" border="0" height="18" width="28" /></td> <td nowrap="nowrap" width="38">:-c</td> <td width="127">call me - New!</td> </tr> <tr> <td align="center"><img src="emo/100.gif" alt="on the phone - New!" border="0" height="18" width="31" /></td> <td nowrap="nowrap" width="38">:)]</td> <td>on the phone - New!</td> </tr> <tr> <td align="center"><img src="emo/103.gif" alt="wave - New!" border="0" height="18" width="28" /></td> <td nowrap="nowrap" width="38">:-h</td> <td>wave - New!</td> </tr> <tr> <td align="center"><img src="emo/104.gif" alt="time out - New!" border="0" height="18" width="30" /></td> <td nowrap="nowrap" width="38">:-t</td> <td>time out - New!</td> </tr> <tr> <td align="center"><img src="emo/105.gif" alt="daydreaming - New!" border="0" height="18" width="23" /></td> <td nowrap="nowrap" width="38">8-&gt;</td> <td>daydreaming - New!</td> </tr> <tr> <td align="center"><img src="emo/28.gif" alt="sleepy" border="0" height="18" width="21" /></td> <td nowrap="nowrap" width="38">I-)</td> <td>sleepy</td> </tr> <tr> <td align="center"><img src="emo/29.gif" alt="rolling eyes" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">8-|</td> <td>rolling eyes</td> </tr> <tr> <td align="center"><img src="emo/30.gif" alt="loser" border="0" height="18" width="24" /></td> <td nowrap="nowrap" width="38">L-)</td> <td>loser</td> </tr> <tr> <td align="center"><img src="emo/31.gif" alt="sick" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-&amp;</td> <td>sick</td> </tr> <tr> <td align="center"><img src="emo/32.gif" alt="don't tell anyone" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-$</td> <td>don't tell anyone</td> </tr> <tr> <td align="center"><img src="emo/33.gif" alt="not talking" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">[-(</td> <td>not talking</td> </tr> <tr> <td align="center"><img src="emo/34.gif" alt="clown" border="0" height="18" width="28" /></td> <td nowrap="nowrap" width="38">:O)</td> <td>clown</td> </tr> <tr> <td align="center"><img src="emo/35.gif" alt="silly" border="0" height="18" width="24" /></td> <td nowrap="nowrap" width="38">8-}</td> <td>silly</td> </tr> <tr> <td align="center"><img src="emo/36.gif" alt="party" border="0" height="18" width="38" /></td> <td nowrap="nowrap" width="38">&lt;:-P</td> <td>party</td> </tr> <tr> <td align="center"><img src="emo/37.gif" alt="yawn" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">(:|</td> <td>yawn</td> </tr> <tr> <td align="center"><img src="emo/38.gif" alt="drooling" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">=P~</td> <td>drooling</td> </tr> <tr> <td align="center"><img src="emo/39.gif" alt="thinking" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:-?</td> <td>thinking</td> </tr> <tr> <td align="center"><img src="emo/40.gif" alt="d'oh" border="0" height="18" width="24" /></td> <td nowrap="nowrap" width="38">#-o</td> <td>d'oh</td> </tr> <tr> <td align="center"><img src="emo/41.gif" alt="applause" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">=D&gt;</td> <td>applause</td> </tr> <tr> <td align="center"><img src="emo/42.gif" alt="nailbiting" border="0" height="18" width="36" /></td> <td nowrap="nowrap" width="38">:-SS</td> <td>nailbiting</td> </tr> <tr> <td align="center"><img src="emo/43.gif" alt="hypnotized" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">@-)</td> <td>hypnotized</td> </tr> <tr> <td align="center"><img src="emo/44.gif" alt="liar" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">:^o</td> <td>liar</td> </tr> <tr> <td align="center"><img src="emo/45.gif" alt="waiting" border="0" height="18" width="23" /></td> <td nowrap="nowrap" width="38">:-w</td> <td>waiting</td> </tr> <tr> <td align="center"><img src="emo/46.gif" alt="sigh" border="0" height="18" width="24" /></td> <td nowrap="nowrap" width="38">:-&lt;</td> <td>sigh</td> </tr> <tr> <td align="center"><img src="emo/47.gif" alt="phbbbbt" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">&gt;:P</td> <td>phbbbbt</td> </tr> <tr> <td align="center"><img src="emo/48.gif" alt="cowboy" border="0" height="18" width="18" /></td> <td nowrap="nowrap" width="38">&lt;):)</td> <td>cowboy</td> </tr> </tbody> </table>