Topic awaiting preservation: Shoutbox smilies (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: New York, USA |
posted 12-22-2004 03:57 |
Maniac (V) Mad Scientist From: :morF |
posted 12-22-2004 04:30
Well, to the left of this here reply box, if you click on the 'insert slimies' link, you'll find precisely what you're looking for. All you have to do is hunt it out of the source and see how it works, then write your own. I personally wouldn't suggest copying and pasting, you don't learn anything that way except for a couple of keyboard shortcuts. |
Maniac (V) Inmate From: raht cheah |
posted 12-22-2004 05:39
the slimies inserted in the posting interface are only javascript that will insert the text that will then be parsed by the server side script that runs a regex on the text looking for colonEEKcolon and the like then replacing it with the corresponding image tag. |
Bipolar (III) Inmate From: New York, USA |
posted 12-22-2004 06:29
Ok, after looking at how the Asylum did it, and PHPbb and about 20 other places, I came up with this... code: <script language="Javascript" type="text/javascript">
code: <span title='Smile'>
|