Post by SubDevo on Jul 20, 2010 1:30:47 GMT -8
Hide 'New' Image and Change Cell Style by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.
This code only affects the thread listing page.
Features:
Any or all options can be disabled in the code.
Preview #1 With "New" icon.
Preview #2 Without "New" icon.
Preview #3 Without "New" icon and using a background image.
Enjoy!!!
SubDevo
Variables:
var newColor="00FF00"; // 'New' Thread Subject Color
Your desired color for the "New" thread subject (title).
If you do not want to change the title color, set this to empty ""
var newBack="FF0000"; // Hex color or URL to Image.
Enter your desired background color or URL to an image.
If you do not want to change the background, set this to empty ""
var remNew=1; // Remove 'New' Icon Image? 1=Yes, 0=No
Set this to "0" to NOT remove the "New" image. (disables)
Location: Global Footer
<script type="text/javascript">
/* Hide 'New' Image and Change Cell Style by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var newColor="00FF00"; // 'New' Thread Subject Color
var newBack="FF0000"; // Hex color or URL to Image.
var remNew=1; // Remove 'New' Icon Image? 1=Yes, 0=No
if(pb_action=="boardindex"){var n=document.images,a,b,bg=newBack,x=-1;
bg="b.style.background"+((bg.indexOf("http:")==0)?"Image='url("+bg+")'":"Color='#"+bg+"'");
while(n[++x]){a=n[x];
if(a.alt=="new "&&a.parentNode.nodeName=="A"){if(remNew){a.style.display="none";}
b=a.parentNode.parentNode;if(bg.indexOf("#")!=-1){b.style.backgroundImage="none";}
if(newBack){eval(bg);b.onmouseout=b.onmouseover="";}
if(newColor){b.getElementsByTagName("a")[1].style.color="#"+newColor;}
}}}
</script>
Tested in IE, FF, Opera, Safari and Chrome.
This code only affects the thread listing page.
Features:
- Remove the "New" icon (optional)
- Change the text color of the subject (title). (optional)
- Change the background of the "New" cell using an image or color. (optional)
Any or all options can be disabled in the code.
Preview #1 With "New" icon.
Preview #2 Without "New" icon.
Preview #3 Without "New" icon and using a background image.
Enjoy!!!
SubDevo
Variables:
var newColor="00FF00"; // 'New' Thread Subject Color
Your desired color for the "New" thread subject (title).
If you do not want to change the title color, set this to empty ""
var newBack="FF0000"; // Hex color or URL to Image.
Enter your desired background color or URL to an image.
If you do not want to change the background, set this to empty ""
var remNew=1; // Remove 'New' Icon Image? 1=Yes, 0=No
Set this to "0" to NOT remove the "New" image. (disables)
Location: Global Footer
<script type="text/javascript">
/* Hide 'New' Image and Change Cell Style by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var newColor="00FF00"; // 'New' Thread Subject Color
var newBack="FF0000"; // Hex color or URL to Image.
var remNew=1; // Remove 'New' Icon Image? 1=Yes, 0=No
if(pb_action=="boardindex"){var n=document.images,a,b,bg=newBack,x=-1;
bg="b.style.background"+((bg.indexOf("http:")==0)?"Image='url("+bg+")'":"Color='#"+bg+"'");
while(n[++x]){a=n[x];
if(a.alt=="new "&&a.parentNode.nodeName=="A"){if(remNew){a.style.display="none";}
b=a.parentNode.parentNode;if(bg.indexOf("#")!=-1){b.style.backgroundImage="none";}
if(newBack){eval(bg);b.onmouseout=b.onmouseover="";}
if(newColor){b.getElementsByTagName("a")[1].style.color="#"+newColor;}
}}}
</script>