/    Sign up×
Community /Pin to ProfileBookmark

help wiht this please

[code=php]
<script>
function smiley() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:)”;
}
function annoyed() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:-/”;
}
function bad() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:-[“;
}
function blush() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:@”;
}

function cheesy() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:D”;
}

function cool() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “8)”;
}

function huh() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “???”;
}

function kiss() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:-)”;
}

function roll() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “::)”;
}

function sad() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:(“;
}

function shock() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:O”;
}

function smart() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:”;
}

function tongue() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “:P”;
}

function wink() {
document.getElementsByTagName(‘textarea’)[0].innerHTML+= “;)”;
}
</script>
[/code]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@lukezwebauthorDec 06.2003 — i believe the error is that the smilies contain characters? how can i fix this?
Copy linkTweet thisAlerts:
@PittimannDec 06.2003 — Hi lukezweb!

Have an eye on your thread in the PHP forum...

Cheers - Pit
Copy linkTweet thisAlerts:
@lukezwebauthorDec 06.2003 — [i]Originally posted by Pittimann [/i]

[B]Hi lukezweb!



Have an eye on your thread in the PHP forum...



Cheers - Pit [/B]
[/QUOTE]



i fixed this and am about to post in the other make sure you wacth it too ?
×

Success!

Help @lukezweb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...