Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Moose

Moose Avatar

****
Senior Member

449


August 2005
Cat Spliter

Must be cross browser
Due: Next Thursday

Greg says:
Coding music...
Greg says:
Hmm...
Greg says:
I wouldn't rule it out. :P
Chris 3.0 [New features? Yes.] says:
:P
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:
:P Yeah, I'll get right on that... right after I learn to fly.

jongos

jongos Avatar

****
Senior Member

Male
409


December 2005
About bloody time a coding battle happened :P

Good Luck to both of you.
Thanks, Kay!


Chris

Chris Avatar

******
Head Coder

19,519


June 2005
:P Moose's and mine sorta died... we both were going for serious admin editable codes. :P

Anyways, maybe say something about if DOM is a better point?


Last Edit: Feb 10, 2006 2:28:35 GMT by Chris

Eric

Eric Avatar



1,442


November 2005
cddude229 said:
:P Moose's and mine sorta died... we both were going for serious admin editable codes. :P

Anyways, maybe say something about if DOM is a better point?
innerHTML and document.write are DOM methods :P. I don't really see what in there could not be DOM.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I guess that technically is true.... :P

Maybe more on advanced techniques then? Such as document.createElement as opposed to node.innerHTML? :P

Eric

Eric Avatar



1,442


November 2005
cddude229 said:
I guess that technically is true.... :P

Maybe more on advanced techniques then? Such as document.createElement as opposed to node.innerHTML? :P
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 :P.

Moose

Moose Avatar

****
Senior Member

449


August 2005
I don't care for using "DOM" techniques when I don't feel they are needed. :P And [CD] we will finish that battle one day, when we feel like it. :P I am just kinda sick of coding seriously now.
Greg says:
Coding music...
Greg says:
Hmm...
Greg says:
I wouldn't rule it out. :P
Chris 3.0 [New features? Yes.] says:
:P
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:
:P Yeah, I'll get right on that... right after I learn to fly.

Moose

Moose Avatar

****
Senior Member

449


August 2005
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. :P
Chris 3.0 [New features? Yes.] says:
:P
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:
:P Yeah, I'll get right on that... right after I learn to fly.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Sorry to disappoint you. :P 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. :P

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. :P

Just so you know I tried, view in IE:

testingboard42.proboards24.com/index.cgi

:P Honestly i've never even heard of CSS browser compatibility issues but now I know better. :P




Last Edit: Feb 17, 2006 0:46:56 GMT by Aaron

newBookmarkLockedFalling