|
Post by Wei Xia Tiao on Apr 22, 2006 21:18:58 GMT
Can You Make It So That Your Signature Only Appears After You Have Typed A Certain Amount Of Words. Because When You Have Typed A Word Like LOL,your sig still comes up and takes up room. if you could make it so that your sig only apears after you have typed a certain amount of letters
|
|
|
Post by Wei Xia Tiao on Apr 23, 2006 10:31:00 GMT
This Code Has Been Done By Assasin On Utopian Gfx. Thanyou. Thread Locked <script type="text/javascript"> <!-- /* Hide Sig If Mininum Number Of Words In Posts Is Not Achieved By {XF}Äs$@§sîñ™, www.xf-clan.net/ Code from www.utopiangfx.proboards56.com/index.cgi */
var minimunLength = "30"; // Set Minimum Character Length
function checkLength(cValue) { if (cValue < minimunLength) { return false; } return true; }
if (document.postForm) { document.postForm.onsubmit = function() { if (!checkLength(document.postForm.message.value.length)) { document.postForm.message.value += "\n\n$[H]$"; } } }
var td = document.getElementsByTagName("td"); var msg = document.getElementsByName("message");
if (location.href.match(/action=display/) && msg.item(0)) { msg.item(0).nextSibling.nextSibling.onclick = function () { if (!checkLength(msg.item(0).value.length)) { msg.item(0).value += "\n\n$[H]$"; } } }
var hiddenRE = /(<br\s?\/?>){2}\$\[H\]\$/i; if (location.href.match(/on=(displ|search2|(user)?rece)/) || location.href.match(/index.cgi$/)) { for (i=0; i<td.length; i++) { if (td.item(i).colSpan == "3" && td.item(i).vAlign == "top" && hiddenRE.exec(td.item(i).innerHTML)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(hiddenRE, ""); td.item(i).parentNode.nextSibling.firstChild.firstChild.nextSibling.style.display = "none"; } } } //--> </script> |
|
|