
|
Post: #1
|
||
barryg![]() Joined: 29-10-2008 Posts: 9 Country: ![]()
|
Hey guys,
Just a simple suggestion really, I find it hard to tell the difference between stickies in forums and normal posts, and thought it'd be useful if you could distinguish by having a different cell background color, like most popular forum software does. I've written a greasemonkey mod for forums I visit, but it'd be great if it was implemented at source! CODE: // ==UserScript==
// @name Change Sticky Style
// @namespace http://TS_StickyStyle/stickystyle
// @description Colours in Stickies so they're easier to see
// @include http://templateshares.net/tsf_forums/forumdisplay.php*
// ==/UserScript==
function changeStickyStyle() {
var iTD=document.getElementsByTagName('TD');
for(i=0;i<iTD.length;i )
if(iTD[i].className=="trow1" && iTD[i].innerHTML.match(/important thread/i) ){
for (u=0;u<4;u )
iTD[i u].style.backgroundColor='#C4C4C4';
}
}
changeStickyStyle();To see what i'm getting at, change the include to your own site ![]() |
|
|
|
||
|
Post: #2
|
|
barryg![]() Joined: 29-10-2008 Posts: 9 Country: ![]()
|
Any thoughts on this one?
|
|
|
|
|
Post: #3
|
|
parallaxz71![]() Joined: 11-01-2007 Posts: 5,336 Country: ![]() Awards:
|
its user preference but a nice idea.....
|
|
|
|
|
Post: #4
|
|
barryg![]() Joined: 29-10-2008 Posts: 9 Country: ![]()
|
Thanks for the response. A different class name for stickied cells would be lovely, it'd then be easier to implement at CSS level
![]() |
|
|
|
|
Post: #5
|
|
aladdin56789![]() Joined: 29-01-2008 Posts: 181 Country: ![]()
|
but where to add this Code .. and thanks for your suggestion
![]() |
|
|
|
|
Post: #6
|
|
barryg![]() Joined: 29-10-2008 Posts: 9 Country: ![]()
|
That piece of code is just a greasemonkey script for firefox. If you have the greasemonkey addon, you can install it from that, and edit it to include your site name. The forum edits out a few of the plus signs, so if you would like to try it, i'll have to attach it as a .txt
![]() |
|
|
|
|
Post: #7
|
|
aladdin56789![]() Joined: 29-01-2008 Posts: 181 Country: ![]()
|
thank you
![]() |
|
|
|
«
Previous Thread
|
Next Thread
»
|
|
View Demo
Features
Purchase
Check Order Status
Contact Us
Social Groups
Member Blogs
Forum Home
18-01-2009 00:57 AM (This post was last modified: 22-01-2009 09:55 AM by 





