Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Feb 1, 2007 16:36:39 GMT -5
Could someone help me correct this code I am attempting to write.
<script type="text/javascript"><!-- //Limit on the display name characters document.write(pb_displayname) if(location.href.indexOf('action=modifyprofile&user=') { if(pb_displayname <= 6 >= 12) {
pb_displayname.display = true
} else {
pb_displayname.display = none } document.write(<table border="0" width = 92% height="18"><tr><td clas="titleBG><font size="2" class="title" color="ff0000"><b><i>ERROR</i></b></font></td></tr><tr><td class="windoBG'><font size="2">I am sorry, but your display name choice is too big, please shorten it.</font></td></tr></table>); } //--></script>
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Feb 6, 2007 22:45:19 GMT -5
Can't anyone.
|
|
Samuel
Former Coding Moderator
:D
Posts: 154
|
Post by Samuel on Feb 7, 2007 17:08:33 GMT -5
ok.. personally I'm thinking your taking the wrong approach.
Try using onchange, and counting the letters used and giving them an alert when it's too long and changing it back xD
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Feb 7, 2007 21:43:57 GMT -5
Uhh, I am not sure what you mean, I mean I do, but I don't.
|
|
|
Post by Mithras on Feb 8, 2007 21:35:41 GMT -5
Personally, I'd just change the maxlength to 12. Once they try and keep typing, and can't, they'd probably get the hint
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Feb 9, 2007 19:30:57 GMT -5
Well, that sounds like a good idea.
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Feb 11, 2007 21:46:58 GMT -5
Well, anymore tips on helping me.
|
|