inherit
25709
0
Jun 12, 2009 20:55:02 GMT -8
hpmad
1,017
June 2004
hpmad7
|
Post by hpmad on Apr 24, 2006 16:32:08 GMT -8
Allows you to put space between text like this without the use of . (note: an alternative to this is the [pre] tag although I found the text crappy looking... also it doesn't wrap ) Global Footers<script type="text/javascript"> /* Allow Spacing in Posts by hpmad */
if(document.postForm){ document.postForm.onsubmit = function(){ document.postForm.message.value = document.postForm.message.value.replace(/\n/g,'[br\]'); document.postForm.message.value = document.postForm.message.value.replace(/\s/g,' '); } }
if(location.href.match(/action=display/i)){ document.forms[0].name = 'quickReply'; document.quickReply.onsubmit = function(){ document.quickReply.message.value = document.quickReply.message.value.replace(/\n/g,'[br\]'); document.quickReply.message.value = document.quickReply.message.value.replace(/\s/g,' '); } } </script>If you have issues with this code, please look here before asking for help. Thank you.
|
|