Post by Matt on Jun 5, 2006 19:39:40 GMT -5
Created By: Todge
Creator's Comments:
This will put the message you are quoting in a seperate cell above the textbox in the reply area..
Put it in your Global Footer.
Creator's Comments:
This will put the message you are quoting in a seperate cell above the textbox in the reply area..
Put it in your Global Footer.
<script type="text/javascript">
<!--
/*
Seperate quote in post are by Todge
Copyright © 2006
Please keep this header intact
*/
if(document.postForm && document.location.href.match('"e='))
{
var theMessage=document.postForm.message.value;
var theQuote=theMessage;
document.postForm.message.value='';
var quoteTR=document.createElement('TR');
var quoteTD1=document.createElement('TD');
var quoteTD2=document.createElement('TD');
quoteTD1.className = 'windowbg2';
quoteTD1.innerHTML='<font size=2>Quoted Message:</font>';
quoteTD2.setAttribute('id','quotedMessage');
quoteTD2.className = 'windowbg2';
quoteTR.appendChild(quoteTD1);
quoteTR.appendChild(quoteTD2);
var messageTR = document.getElementsByTagName('TD');
for(m=0; m<messageTR.length; m++)
{
if(messageTR[m].innerHTML.match('Message:') && messageTR[m].width == '30%')
{
messageTR[m].parentNode.parentNode.insertBefore(quoteTR,messageTR[m].parentNode);
break;
}
}
theQuote = theQuote.split(']')
for(tq=0; tq<theQuote.length; tq++)
{
theQuote[tq] = theQuote[tq+1]
}
theQuote=theQuote.join(']');
theQuote=theQuote.split('[/quote]')
theQuote.length=theQuote.length-1;
document.getElementById('quotedMessage').innerHTML=theQuote.join('[/quote]');
var posted = document.getElementsByTagName('input')
for(i=0; i<posted.length; i++)
{
if(posted[i].type=='submit')
{
posted[i].onmousedown=function(){document.postForm.message.value=theMessage+'[b'+'r]'+document.postForm.message.value;}
}
}
}
// -->
</script>