Click to See Complete Forum and Search --> : help


lukezweb
12-06-2003, 09:10 AM
help wiht this please


<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>

lukezweb
12-06-2003, 09:20 AM
i believe the error is that the smilies contain characters? how can i fix this?

Pittimann
12-06-2003, 09:25 AM
Hi lukezweb!

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

Cheers - Pit

lukezweb
12-06-2003, 09:26 AM
Originally posted by Pittimann
Hi lukezweb!

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

Cheers - Pit


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