interout | Date: Wednesday, 2012-08-29, 4:22 PM | Message # 1 |
Group: Administrators
Messages: 1027
|
Forum---General appearance of forum pages---Before $ BODY $ insert thar code:
Code <?if($MODULE_ID$='forum')?> <script type="text/javascript"> setInterval(function () { var elem = $('.birthdaysBlock a'); var color = ['00FF00','FFCC00','0055FF','FA95CF','75693F','557711','FFDD99','99CCFF']; var rnd1 = Math.floor(Math.random() * elem.length -1); var rnd2 = Math.floor(Math.random() * color.length); $('.birthdaysBlock a').eq(rnd1).css('color','#'+color[rnd2]); $('.userAge').eq(rnd1).css('color','#'+color[rnd2]); }, 450); </script> <?endif?>
[p.s.]
Quote ['00FF00','FFCC00','0055FF','FA95CF','75693F','557711','FFDD99','99CCFF']; --- Change Color
---Time
|
|
|
|
WaSHkaZ | Date: Wednesday, 2012-08-29, 5:53 PM | Message # 2 |
Group: Member
Messages: 83
|
Sita pajimsiu
|
|
|
|