Simple Machine Codes
March 28, 2024, 02:20:27 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  

New Message V1

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

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: August 01, 2007, 08:45:53 pm »

Footers
Code:
<script>
//Created by Agent Moose (smcodes.smfforfree3.com)
color="COLOR HERE"
a=document.getElementsByTagName('a')
for(b=0;b<a.length;b++){
if(a[b].innerHTML.match(/My Messages/i) && a[b].innerHTML.match(/(\d+)/i)){
if(RegExp.$1>0){
a[b].style.color=color;a[b].style.fontWeight='bold'
};};};
</script>

This code lets you choose what color the My Messages link goes when you get a new message.
Just change the COLOR HERE part to your color.  You may use HEX.
Report Spam   Logged

Share on Facebook Share on Twitter



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