Agent Moose
|
|
« on: March 21, 2009, 09:36:10 am » |
|
Footers: <script> var BegText = "TEXT"; var Color = "COLOR";
//Created by Agent Moose (revolutionx.smfforfree3.com) $("td.windowbg3 img[id*='stickyicon']").next().find("a").css("color",Color).end().before(BegText); </script> Original Request: http://revolutionx.smfforfree3.com/index.php/topic,449.0.htmlTEXT = The text that will show up in front of the sticky topic. COLOR = The Color of the topic link. Enjoy
|
|
« Last Edit: March 21, 2009, 09:37:58 am by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
Lyle
MeTube
Member
Offline
Gender:
Posts: 69
Badges: (View All)
|
|
« Reply #1 on: June 07, 2009, 04:04:03 pm » |
|
this never really worked out for me, since the stickied topics are a darker color and at the top
|
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #2 on: June 13, 2009, 09:58:31 am » |
|
I'm not 100% sure... So what does this code do?
|
|
|
|
Andrew
|
|
« Reply #3 on: June 13, 2009, 11:55:05 am » |
|
It will color all the stickied topics in a board, works for all boards. Heres an example: <script> var BegText = "Sticky: "; var Color = "green";
//Created by Agent Moose (revolutionx.smfforfree3.com) $("td.windowbg3 img[id*='stickyicon']").next().find("a").css("color",Color).end().before(BegText); </script> It would color all the stickied topics to green, and add the text Sticky: to the left of it.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #4 on: June 14, 2009, 02:02:49 am » |
|
Ooh... Awesome I'm going to add it now
|
|
|
|
Nick
Member
Offline
Gender:
Posts: 48
Badges: (View All)
|
|
« Reply #5 on: June 16, 2009, 11:53:02 am » |
|
Just curious as to whether or not it's possible to change the "Sticky" text color.
eg. "Sticky: Forum Rules"
Is there anyway to make it say "Sticky: Forum Rules" ?
I'm just sort of hesitant to use the <font> tag.
This is a great code, btw. Thanks
|
|
« Last Edit: June 16, 2009, 12:43:05 pm by Nick »
|
Report Spam
Logged
|
|
|
|
Exilis
|
|
« Reply #6 on: June 16, 2009, 03:09:45 pm » |
|
@Nick: Yup, you can use the font tag. I just tested it. Just remember to use single quotes instead of double quotes, like this: <script> var BegText = "<font color='green'>Sticky: </font>"; var Color = "green";
//Created by Agent Moose (revolutionx.smfforfree3.com) $("td.windowbg3 img[id*='stickyicon']").next().find("a").css("color",Color).end().before(BegText); </script>
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #7 on: June 17, 2009, 01:57:12 am » |
|
Thanks SyntaxBlitz, I was wondering the same question just forgot to post
|
|
|
|
|
|