inherit
149168
0
Dec 27, 2014 12:27:25 GMT -8
Dakota*
893
November 2009
silvestern
|
Post by Dakota* on Jan 28, 2011 14:32:02 GMT -8
I'v never seen this code, but is there a code where you can choose a different colour for stickied threads? I'v seen it on another site and I really like it, but the site is not hosted by proboards. If there isn't a code like that, is it possible that someone could try to make one for me? Thanks. Dakota*
|
|
inherit
141494
0
Sept 20, 2019 9:07:14 GMT -8
Andrea
wow it's been a while...
3,388
June 2009
lookitsandrea
|
Post by Andrea on Jan 28, 2011 14:43:26 GMT -8
Hello. Is this the code you're looking for?
|
|
inherit
149168
0
Dec 27, 2014 12:27:25 GMT -8
Dakota*
893
November 2009
silvestern
|
Post by Dakota* on Jan 28, 2011 14:52:05 GMT -8
I tried it, and this is what I did, but it didn't work... <script type="text/javascript"> <!-- /* Diiferent Color Links For Sticky Threads, Announcements By {XF}Äs$@§sîñ™, www.xf-clan.net/Code from www.utopiangfx.proboards56.com/index.cgi */ */ // Edit where neccessary var stickcolor = "#000033"; // Sticky Link Color var stickyhovercolor = "#6D7B8D"; // Sticky Hover Link Color var stickyImageRE = /(sticky|stickylock).(gif|png|jpg)$/i; // For Custom Images var td = document.getElementsByTagName('td'); if(location.href.match(/\?board=\w+&?((mod\w+|page)=\d+)?$/)) { for (i=0; i<td.length; i++) { var iTarget = td.item(i).getElementsByTagName('img').item(0); if (td.item(i).width == "5%" && iTarget && iTarget.src.match(stickyImageRE)) { var lTarget = td.item(i).nextSibling.nextSibling.getElementsByTagName('a').item(0); lTarget.style.color = stickcolor; lTarget.onmouseover = function() { this.style.color = stickyhovercolor; } lTarget.onmouseout = function() { this.style.color = stickcolor; } } } } //--> </script>
|
|
inherit
141494
0
Sept 20, 2019 9:07:14 GMT -8
Andrea
wow it's been a while...
3,388
June 2009
lookitsandrea
|
Post by Andrea on Jan 28, 2011 15:01:22 GMT -8
You're right, it does not appear to be working in my test site either. I put up a post in the Code Database Updates to see if anybody can take a look at it. However, somebody else may come in here as well to give an update to the code. Either way, I can't seem to find an alternative, so hopefully someone else can intervene.
|
|
inherit
149168
0
Dec 27, 2014 12:27:25 GMT -8
Dakota*
893
November 2009
silvestern
|
Post by Dakota* on Jan 28, 2011 15:08:06 GMT -8
OK. Thank-you very much.
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jan 28, 2011 16:00:31 GMT -8
|
|
inherit
141494
0
Sept 20, 2019 9:07:14 GMT -8
Andrea
wow it's been a while...
3,388
June 2009
lookitsandrea
|
Post by Andrea on Jan 28, 2011 16:28:19 GMT -8
... How simple. Thanks for the correction! ;D Hopefully it works now.
|
|
inherit
149168
0
Dec 27, 2014 12:27:25 GMT -8
Dakota*
893
November 2009
silvestern
|
Post by Dakota* on Jan 28, 2011 18:03:45 GMT -8
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jan 28, 2011 18:26:32 GMT -8
You have the white set to the hover color. You just need to switch it around...
var stickcolor = "#000033"; // Sticky Link Color var stickyhovercolor = "#FFFFFF"; // Sticky Hover Link Color
|
|
inherit
149168
0
Dec 27, 2014 12:27:25 GMT -8
Dakota*
893
November 2009
silvestern
|
Post by Dakota* on Jan 29, 2011 8:01:52 GMT -8
Oh, whoops... Thanks you soooo much! I'm glad I brought this up too so you could find and fix the code.
|
|