Simple Machine Codes
April 19, 2024, 05:53:53 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Bold New Replies

Pages: [1]   Go Down
  Print  
Author Topic: Bold New Replies  (Read 522 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: June 11, 2008, 02:16:26 pm »

Footers
Code:
<script>
if(location.href.match(/board,/i)){
var tpc = document.getElementsByTagName("span");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<tpc.length;x++){
if(tpc[x].id.match(/msg_/i) && tpc[x].nextSibling.nextSibling.id.match(/newicon/i)){
tpc[x].style.fontWeight = "bold";
};};};
</script>

If there is a topic that has new replies, that topic will become bold.

There is also another version of this:
Code:
<script>
if(location.href.match(/board,/i)){
var Color = "COLOR";

var tpc = document.getElementsByTagName("span");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<tpc.length;x++){
if(tpc[x].id.match(/msg_/i) && tpc[x].nextSibling.nextSibling.id.match(/newicon/i)){
tpc[x].innerHTML = "<span color='" + Color + "' style='font-weight: bold;'>New: </span>" + tpc[x].innerHTML;
tpc[x].style.fontWeight = "bold";
};};};
</script>
This adds the word New: to the beggining of the topic title if the topic is new.
COLOR = The Color of the word New.

Enjoy Smiley

Report Spam   Logged

Share on Facebook Share on Twitter

CodeLover
100 Club Member

Offline Offline

Gender: Male
Posts: 331


View Profile
« Reply #1 on: June 11, 2008, 07:17:01 pm »

Nice Wink
Report Spam   Logged

Don't get mad at me if I'm acting immature - I'm only 10 Grin


legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #2 on: June 12, 2008, 01:10:32 am »

very nice moosey

legend 1234
Report Spam   Logged

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #3 on: June 14, 2008, 01:49:29 pm »

Awesome! very nice.
Report Spam   Logged


Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy