ted_chou12 Posted February 3, 2007 Share Posted February 3, 2007 I have seem css scripts that creates there own tags, like <code>, or similar things, so I thought if there is a way to create my own smilie tags, so instead of replacing with <img src="smile.gif">, css automatically creates a url image, is that possible? and can anyone give me an example of how the css code should be written? Thanks Ted Quote Link to comment https://forums.phpfreaks.com/topic/36888-creating-own-smilie-tags/ Share on other sites More sharing options...
wildteen88 Posted February 3, 2007 Share Posted February 3, 2007 Huh! the code tags already exits. As far as I know you cannot create your own custom html tags with CSS. Doing a smilies parser is pretty easy to do in PHP. Look into the str_replace function. Quote Link to comment https://forums.phpfreaks.com/topic/36888-creating-own-smilie-tags/#findComment-176007 Share on other sites More sharing options...
ted_chou12 Posted February 3, 2007 Author Share Posted February 3, 2007 oh... thanks Quote Link to comment https://forums.phpfreaks.com/topic/36888-creating-own-smilie-tags/#findComment-176160 Share on other sites More sharing options...
FierceBlade Posted February 4, 2007 Share Posted February 4, 2007 If you want to know about creating <name> tags it's the same thing as classes/ids. name { info here.. } Quote Link to comment https://forums.phpfreaks.com/topic/36888-creating-own-smilie-tags/#findComment-176445 Share on other sites More sharing options...
ted_chou12 Posted February 4, 2007 Author Share Posted February 4, 2007 yeah, i know how you can group things like class, id, span and those sorts of things, but nvm, i think i solved my problem, thanks Ted Quote Link to comment https://forums.phpfreaks.com/topic/36888-creating-own-smilie-tags/#findComment-176789 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.