about the topics list
3 posters
Page 1 of 1
about the topics list
I want add a background color for the "tr" in the topics list area with the new posts icon ... but this code doesn't work .. any ideas?
- Code:
$(document).each(function() {
var img = $(".status img");
if (image.getAttribute('src')=="newpost.png") {
$('tr').css("background-color","#e6e9ee");
};
});
Ahmed.K- Forumember
- Posts : 347
Reputation : 4
Language : English
Re: about the topics list
Where did you get that code?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: about the topics list
Have you tried using CSS?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: about the topics list
Please post your forum's link. Are you referring to the area where the category title is?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: about the topics list
Yes. now any ideas?SLGray wrote:Ok. You are talking about the topic list in sub-forums.
Ahmed.K- Forumember
- Posts : 347
Reputation : 4
Language : English
Re: about the topics list
Hi Ahmed.K, I don't see your forum version or your Forum address so I have to suppose that it is punBB
For that version you can try this javascritp in "all pages"
You must fill your information in the "editable zone".
For that version you can try this javascritp in "all pages"
- Code:
$(function() {
if ($(".status img").length) {
/**** Beginning of editable zone ***/
var URLiconNewPost = "http://2img.net/i/fa/prosilver/topic_unread_hot.gif";
var NewPostTrColor = "#e6e9ee";
/**** End of editable zone ***/
var img = $(".status img");
img.each(function() {
if ($(this).attr('src') == URLiconNewPost) {
$(this).closest('tr').find('td').css("background-color", NewPostTrColor);
};
})
}
});
You must fill your information in the "editable zone".
Sr.Smith- Forumember
- Posts : 94
Reputation : 11
Language : Spanish
Similar topics
» How to load up a forum with topics & stay off the scrolling latest topics list
» Missing Topics in forum topic list (even though the topics exist)
» Users seeing there own list of topics ????
» Latest Topics List
» Latest Topics List COde
» Missing Topics in forum topic list (even though the topics exist)
» Users seeing there own list of topics ????
» Latest Topics List
» Latest Topics List COde
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum