Post by Peter on Oct 29, 2004 10:24:55 GMT
Code created by Jello[/color]
yep.. just like the other one.. except this ones been sitting unfinished for weeks.. didnt want the work to go to waste though.. so here it is.. (bit sloppy finish up..but it works fine ^_^)
Board Footers
<script type="text/javascript">
<!--
//Hide/Show Last Edit Data By Peter, finished by Jello
var GetTag = document.getElementsByTagName
var GetID = document.getElementById
var re = /\[#noedit\]/ig
if(location.href.indexOf("action=display")!=-1){
var pTD = GetTag("table")
for(t=0;t<pTD.length;t++){
for(r=0;r<pTD[t].rows.length;r++){
for(c=0;c<pTD[t].rows[r].cells.length;c++){
with(pTD[t].rows[r].cells[c]){
if(innerHTML.match(re) && width=="80%" && vAlign=="top"){
innerHTML=innerHTML.replace(re,'')
var Font=pTD[t-2].rows[0].cells[0].getElementsByTagName("font")
for(f=0;f<Font.length;f++){
if(Font[f].innerHTML.match(/<I>Last Edit/i)){
Font[f].style.display='none'
}}}}}}}}
if(location.href.match(/action=modify/i)){
var dTab = GetTag("table")
for(t=0;t<dTab.length;t++){
with(dTab[t]){
if(width=="100%" && cellPadding=="3" && className.match("windowbg") && innerHTML.match(/Disable Smilies:/i)){
var addR = insertRow(1); var addC = addR.insertCell(0)
with(addC){
className='windowbg'
innerHTML='<font size=2><b>Display Edit By:</b></font>'
} var addC = addR.insertCell(1)
with(addC){
className='windowbg'
innerHTML='<input type=checkbox id="disedit"> <font size="1">Check this if you don\'t want people to see the edit by line in post.</font>'
}
var pTD=GetTag("TD")
for(td=0;td<pTD.length;td++)
with(pTD[td]){
if(innerHTML.match(/Preview Message/i) && className.match("titlebg")){
pTD[td+1].innerHTML=pTD[td+1].innerHTML.replace(re,'')
}}
}}}
function isItThere(){
if(GetID("message").value.match(re)){
GetID("message").value = GetID("message").value.replace(re,'')
GetID("disedit").checked=true
}}
function check(){
if(GetID("disedit").checked==true){
GetID("message").value += '[#noedit]'
}}
document.postmodify.onsubmit = check;
window.onload = isItThere;
}
//-->
</script>
yep.. just like the other one.. except this ones been sitting unfinished for weeks.. didnt want the work to go to waste though.. so here it is.. (bit sloppy finish up..but it works fine ^_^)
Board Footers