|
|
About bloody time a coding battle happened Good Luck to both of you.
|
Thanks, Kay!
|
|
|
|
Moose's and mine sorta died... we both were going for serious admin editable codes. Anyways, maybe say something about if DOM is a better point?
Last Edit: Feb 10, 2006 2:28:35 GMT by Chris
|
|
|
|
|
Moose's and mine sorta died... we both were going for serious admin editable codes. Anyways, maybe say something about if DOM is a better point? innerHTML and document.write are DOM methods . I don't really see what in there could not be DOM.
|
|
|
|
I guess that technically is true.... Maybe more on advanced techniques then? Such as document.createElement as opposed to node.innerHTML?
|
|
|
|
|
I guess that technically is true.... Maybe more on advanced techniques then? Such as document.createElement as opposed to node.innerHTML? It isn't really all that advanced. Going through all of that is slower than just using innerHTML. Many people find it a waste to just use the techniques that look advanced, but really aren't .
|
|
|
|
|
Eh. Done. Main Footer: <script type="text/javascript"> <!-- /* Split Categories Coded By Moose Don't repost or edit without permission */ if(location.href.match(/(\.cgi((#.+)?|(\?)?)|com(\/)?|log(in2|out)|sread)$/)){ var headimage = "url of headimage"; var baseimage = "url of baseimage"; var navsplit = "20px"; var splitheight = "20px"; var table = document.getElementsByTagName('table'); var spliter = ''; if(navsplit != ""){ spliter += '<div style="height:'+navsplit+'"></div>'; } if(headimage != ""){ spliter += '<center><img src="'+headimage+'" border="0" /></center>'; } spliter += '<table cellpadding="4" cellspacing="1" border="0" width="100%" class="bordercolor">'; for(t=0;t<table.length;t++){ if(table[t].width == "100%" && table[t].cellPadding == "4" && table[t].innerHTML.match(/>Forum Name</)){ var tr = table[t].rows; for(r=0;r<tr.length;r++){ var firstcell = tr[r].firstChild; if(firstcell.className == "titlebg" && firstcell.colSpan == "2" && firstcell.innerHTML.match(/>Forum Name</)){ var forumname = '<tr>'+tr[r].innerHTML+'</tr>'; }} for(r=0;r<tr.length;r++){ var firstcell = tr[r].firstChild; if(firstcell.className == "catbg" && firstcell.align == "right" && firstcell.height == "18" && firstcell.getElementsByTagName('a')[0].href.match(/action=markallboardsread/)){ var markasread = '<tr>'+tr[r].innerHTML+'</tr>'; }} for(r=0;r<tr.length;r++){ if(r != 1){ var firstcell = tr[r].firstChild; if(firstcell.className == "catbg" && firstcell.align != "right" && firstcell.height == "18" && !firstcell.getElementsByTagName('a')[0].href.match(/action=markallboardsread/)){ if(pb_username != 'Guest'){ spliter += markasread } spliter += '</table></td></tr></table>'; if(baseimage != ""){ spliter += '<center><img src="'+baseimage+'" border="0" /></center>'; } spliter += '<div style="height:'+splitheight+'"></div>'; if(headimage != ""){ spliter += '<center><img src="'+headimage+'" border="0" /></center>'; } spliter += '<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%" class="bordercolor">'+forumname; }} var catdata = tr[r].innerHTML; spliter += '<tr>'+catdata+'</tr>'; } spliter += '</td></tr></table></td></tr></table>'; if(baseimage != ""){ spliter += '<center><img src="'+baseimage+'" border="0" /></center>'; } table[t].parentNode.innerHTML = spliter; table[t].parentNode.parentNode.parentNode.parentNode.style.backgroundColor = "transparent"; break; }}} //--> </script>
Last Edit: Feb 17, 2006 1:25:00 GMT by Moose
|
Greg says: Coding music... Greg says: Hmm... Greg says: I wouldn't rule it out. Chris 3.0 [New features? Yes.] says:
Greg says: If you think about machine code it's a bunch of 1s and 0s Chris 3.0 [New features? Yes.] says: Anything is possible. Greg says: Yeah try to code Metallica Chris 3.0 [New features? Yes.] says: Yeah, I'll get right on that... right after I learn to fly.
|
|
|
|
Sorry to disappoint you. Didn't feel like recoding it yesterday considering it "technically" wasn't an original concept. Worse yet, I realized that I coded over the crappy crossbrowser version with what I have now. Since the da**ed CSS borders on it won't cooperate in FF, congrats on the win. I didn't even attempt the head/base after finding the FF bug. Just so you know I tried, view in IE: testingboard42.proboards24.com/index.cgi Honestly i've never even heard of CSS browser compatibility issues but now I know better.
Last Edit: Feb 17, 2006 0:46:56 GMT by Aaron
|
|
|