Code wrong??
2 posters
Page 1 of 1
Code wrong??
Why does the first two codes work but the last doesn't? there the same....
- Code:
$(function() {
if($('a[href="/u1"] span strong')){
$('a[href="/u1"] span strong').after('<img src="http://forums.d2jsp.org/images/s55.png" border="0" />');
}
});
$(function() {
if($('a[href="/u3"] span strong')){
$('a[href="/u3"] span strong').after('<img src="http://www.d3jsp.org/images/stars/92.gif" border="0" />');
}
});
$(function() {
if($('a[href="/u8"] span strong')){
$('a[href="/u8"] span strong').after('<img src="http://cdn2.iconfinder.com/data/icons/ledicons/crown.png" border="0" />');
}
});
Re: Code wrong??
Hello njaguar,
I do not think javascript is necessary for this. You can use CSS instead to add an image to users.
I do not think javascript is necessary for this. You can use CSS instead to add an image to users.
- Code:
a[href="/u1"] span strong:after { content:url(http://forums.d2jsp.org/images/s55.png) }
a[href="/u3"] span strong:after { content:url(http://www.d3jsp.org/images/stars/92.gif) }
a[href="/u8"] span strong:after { content:url(http://cdn2.iconfinder.com/data/icons/ledicons/crown.png) }
Re: Code wrong??
Then you can create a default group that members join upon registration. It should have the following options, and should color the group members.
Auto-subscribe needs to be at '0' posts.
Auto-subscribe needs to be at '0' posts.
Similar topics
» What 's wrong with this code ?
» Code: Select Content for code box
» When i paste a long code via [code][/code] the page expands
» help in this code . the effect on code > add button to Put under the colored writing
» When I edited a message with a code "code" it adds a space
» Code: Select Content for code box
» When i paste a long code via [code][/code] the page expands
» help in this code . the effect on code > add button to Put under the colored writing
» When I edited a message with a code "code" it adds a space
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum