December 20, 201114 yr I Want To Make A File That I Can Change What Each Value Of The Keyboard Is... So Like Changing "L" To "☺" Or "T" To "♦", Etc... I Would Want This To Do So On Every Element On The Page. I Know It'd Work For All Text Boxes, But I'm Not So Sure If It'd Work For Elements Coded In Flash? (Which Is What I'm Trying To Do) All Help Is Appreciated - Thanks!!!
December 25, 201114 yr Author I Want To Make A File That I Can Change What Each Value Of The Keyboard Is... So Like Changing "L" To "☺" Or "T" To "♦", Etc... I Would Want This To Do So On Every Element On The Page. I Know It'd Work For All Text Boxes, But I'm Not So Sure If It'd Work For Elements Coded In Flash? (Which Is What I'm Trying To Do) All Help Is Appreciated - Thanks!!! Bump!
December 25, 201114 yr That is something for Javascript. You should be able to create a script with the letter code to change it functions. But why would you actually want to do that?
December 26, 201114 yr Author That is something for Javascript. You should be able to create a script with the letter code to change it functions. But why would you actually want to do that? Personal Reasons. So Can You Help? Or Is That All You're Going To Do? I Know This Can Be Done In PHP Too, Which Is What I'm Going For... Edited December 26, 201114 yr by Stripes-_-B3llatr1x
December 26, 201114 yr So Can You Help? Or Is That All You're Going To Do? That sounds abit rude.. Anyway, you could use the PHP function str_replace(). Something like.. <?php $string = "I love Samus."; echo str_replace("love","<3",$string); ?> Should change "I love Samus" to "I <3 Samus". Edited December 26, 201114 yr by Samus
December 27, 201114 yr as rallport said the code posted will get messy eventually, you will want atleast an array of inputs and their replacements and prob put through a for loop or function to do each one, could do thousands of replacements in 5lines of coding
December 29, 201114 yr Author My Intent Wasn't To Be Rude. I See How That Could Be Offensive, Though... Sorry For The Miscomunication. And I'm Trying The Line Of Code Now... I'll Update With Results. Thanks Samus.
Create an account or sign in to comment