|
Post by crazynarutard on Nov 24, 2005 18:04:52 GMT
<script type='text/javascript'> /*Proboards Url needed when Creating Thread Created BY CrAzY_J Do no redistribute without Creator's permission (CRAzY_J) http//ssdesigns.proboards17.com - Open Source*/
var re1=/.+?\.\w{9}\d{1,2}\.\w{3}(\/(index\.cgi(\/|\?)?)?)?$/i;
if(location.href.match(/post$/)){ var gTab=document.body.getElementsByTagName("table"); for(t=0;t<gTab.length;t++){ if(gTab[t].cellPadding=="4" && gTab[t].cellSpacing=="1" && gTab[t].rows[0].cells[0].innerHTML.match(/Post\sMessage/)){ var iRow=gTab[t].insertRow(2);var iCell=iRow.insertCell(0);var iCell2=iRow.insertCell(1); iCell.className="windowbg";iCell.innerHTML="<font size='2'>Proboards Url:</font>"; iCell2.className="windowbg";iCell2.innerHTML="<input id='Web' type='text' size='40'>"; } }
document.postForm.onsubmit = function(){ if(!re1.exec(document.getElementById('Web'))){ alert("Url is not correct"); return false; } document.postForm.message.value = document.getElementById("Web").value+"\n\n"+document.postForm.message.value; } }
</script>
Keep the copyright in there pelase
|
|
|
Post by pascanner(v4) on Nov 25, 2005 16:04:38 GMT
<script type='text/javascript'> /*Proboards Url needed when Creating Thread Created BY CrAzY_J Do no redistribute without Creator's permission (CRAzY_J) http//ssdesigns.proboards17.com - Open Source*/
var re1=/.+?\.\w{9}\d{1,2}\.\w{3}(\/(index\.cgi(\/|\?)?)?)?$/i;
if(location.href.match(/post$/)){ var gTab=document.body.getElementsByTagName("table"); for(t=0;t<gTab.length;t++){ if(gTab[t].cellPadding=="4" && gTab[t].cellSpacing=="1" && gTab[t].rows[0].cells[0].innerHTML.match(/Post\sMessage/)){ var iRow=gTab[t].insertRow(2);var iCell=iRow.insertCell(0);var iCell2=iRow.insertCell(1); iCell.className="windowbg";iCell.innerHTML="<font size='2'><b>Proboards Url:</b></font>"; iCell2.className="windowbg";iCell2.innerHTML="<input id='Web' type='text' size='40'>"; } }
document.postForm.onsubmit = function(){ if(!re1.exec(document.getElementById('Web'))){ alert("Please Enter A Valid URL"); return false; } document.postForm.message.value = document.getElementById("Web").value+"\n\n"+document.postForm.message.value; } }
</script>
Would this work?
|
|
|
Post by crazynarutard on Nov 25, 2005 16:52:31 GMT
What did you change?
|
|
|
Post by pascanner(v4) on Nov 25, 2005 19:10:56 GMT
document.postForm.onsubmit = function(){ if(!re1.exec(document.getElementById('Web'))){ alert("Please Enter A Valid URL"); return false;
iCell.className="windowbg";iCell.innerHTML="<font size='2'><b>Proboards Url:</b></font>";
|
|
|
Post by crazynarutard on Nov 25, 2005 20:59:01 GMT
yeah it'll work
|
|