|
Post by Smashey on Jul 1, 2005 5:03:27 GMT -8
<script> /* Coded by Smashey This code may not be used or redistributed on any other forum All rights reserved */ var TD = document.getElementsByTagName('TD'); for(t=0;t<TD.length;t++){ if(TD[t].width=="20%" && TD[t].vAlign=="top"){ var profile = TD[t].innerHTML.split('<BR'+'>') TD[t].innerHTML = "<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='95%'><tr><td align='center' class='titlebg' colspan='2'><font size='1'>User Info</font></td></tr><tr><td align='center' class='"+TD[t].className+"'><font size='1'>"+TD[t].innerHTML+"</font></td></tr></table>" }} </script> I found my old profile code and edited around with it and came up with this Thanks to CD for fixing it.
Last Edit: Jul 3, 2005 5:28:29 GMT -8 by Smashey
|
|
|
Post by CD on Jul 2, 2005 20:22:11 GMT -8
All you do is have a border around the name, and nothing else. You sure you didn't want it to be this?
<script> /* Coded by Smashey This code may not be used or redistributed on any other forum All rights reserved */ var TD = document.getElementsByTagName('TD'); for(t=0;t<TD.length;t++){ if(TD[t].width=="20%" && TD[t].vAlign=="top"){ var profile = TD[t].innerHTML.split('<BR'+'>') TD[t].innerHTML = "<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='95%'><tr><td align='center' class='titlebg' colspan='2'><font size='1'>User Info</font></td></tr><tr><td align='center' class='"+TD[t].className+"'><font size='1'>"+TD[t].innerHTML+"</font></td></tr></table>" }} </script>
|
|
|
Post by Smashey on Jul 3, 2005 5:27:59 GMT -8
I knew it. It only worked in Firefox. Your script probably is crossbrowser. But it does the same thing. In Firefox it make a table around the whole profile with the User Info box up top. I'll just put in the code you edited to make it work. Thanks.
|
|