|
Post by Wormopolis on Apr 23, 2011 12:32:17 GMT -8
Browser Tested: IE, FF, Chrome placement: VERY top of global header (if headers load AFTER welcome table)
Creates an invisible clone of the welcome table for any footer codes that need to access it after it has been modified or moved.
<script type="text/javascript"> <!-- // clone welcome table for footer codes // by wormopolis - www.wormocodes.com
var wt=document.getElementsByTagName('table')[0]; var wtc=wt.cloneNode(true); wtc.style.display='none'; wt.parentNode.insertBefore(wtc, wt.nextSibling); // explanation: // this will create a duplicate of the welcome table immediately after the real one, and hide it // any code that modifies the welcome table will then still modify the visible one. if the visible // one gets moved, then the hidden one takes its place in the DOM, so that later codes // looking for welcome table stuff, will still see welcome table stuff. // if you need access to an unmodified welcome table in ANY code, replace variables in that // code looking for "document.getElementsByTagName('table')[0]" with "wtc". since wtc now // contains that unaltered clone. // --> </script>
|
|
|
Post by Wormopolis on May 17, 2011 21:56:40 GMT -8
test
|
|
|
Post by Streamstrider on May 18, 2011 10:44:48 GMT -8
Just as a note, I believe I've used it on two or three of my forums, and it's helped with a lot of problems I'd been having with the PM remodel codes.
|
|