Javascript not working
2 posters
Page 1 of 1
Javascript not working
I'm using this Javascript to add a text before the Forum name:
This is the Forum - New icon, and this is the example!
News & Announcements New
- Code:
$(document).ready(function(){
$('img[src="http://i59.servimg.com/u/f59/14/73/12/96/status10.png"]').replaceWith('<div id="new-mes">New</div>')
});
This is the Forum - New icon, and this is the example!
News & Announcements New
Re: Javascript not working
Hello Mati,
Try this :
The images are set as backgrounds in phpbb3, so you have to check the style attribute.
Try this :
- Code:
$(function() {
$('.forabg dl[style*="http://i59.servimg.com/u/f59/14/73/12/96/status10.png"]').append('<div id="new-mes">New</div>');
});
The images are set as backgrounds in phpbb3, so you have to check the style attribute.
Re: Javascript not working
Oki, but how to make it so can show before the forumtitle and not before lastpost see -> http://fmfocus.forumotion.net/forum
Re: Javascript not working
See if this works :
- Code:
$(function() {
$('.forabg dl[style*="http://i59.servimg.com/u/f59/14/73/12/96/status10.png"]').find('a.forumtitle').append('<div id="new-mes">New</div>');
});
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum