2012-10-19, 11:00 PM
Okay so i almost have the smilie inserter done. http://i.imgur.com/y9lN5.png
And mostly working, except one thing:
http://i.imgur.com/1JVEn.png
It currently gives as output the normal names of the images (which are of course is needed to show them because things like:
are not allowed so )
So i have an array at the top:
How do i get the information between the [ ] ? instead of the information like = "shy".
This is my insert smiley code:
And the case exception looks like this:
If anybody would be able to help me out i would greatly appreciate that.
If you need any other information please ask.
And mostly working, except one thing:
http://i.imgur.com/1JVEn.png
It currently gives as output the normal names of the images (which are of course is needed to show them because things like:
:-/.gif
are not allowed so )
So i have an array at the top:
// An array of Smileys
this.smileys = new Object();
this.smileys[":angel:"] = "angel";
this.smileys[":@"] = "angry";
this.smileys[":blush:"] = "blush";
this.smileys[":s"] = "confused";
this.smileys[":dodgy:"] = "dodgy";
this.smileys[":exclamation:"] = "exclamation";
this.smileys[":heart:"] = "heart";
this.smileys[":huh:"] = "huh";
this.smileys[":idea:"] = "idea";
this.smileys[":sleepy:"] = "sleepy";
this.smileys[":-/"] = "undecided";
this.smileys[":)"] = "smile";
this.smileys[";)"] = "wink";
this.smileys[":cool:"] = "cool";
this.smileys[":D"] = "biggrin";
this.smileys[":P"] = "tongue";
this.smileys[":rolleyes:"] = "rolleyes";
this.smileys[":shy:"] = "shy";
this.smileys[":("] = "sad";
this.smileys[":at:"] = "at";
How do i get the information between the [ ] ? instead of the information like = "shy".
This is my insert smiley code:
insertSmiley: function(type)
{
this.performInsert(""+type+"", "", true, false);
},
And the case exception looks like this:
case "smiley":
this.insertSmiley(extra);
break;
If anybody would be able to help me out i would greatly appreciate that.
If you need any other information please ask.