Java script help!
5 posters
Page 1 of 1
Java script help!
okay so far i have made the following code...
for the new posts text but now i am trying to move it somewhere else probably center or left or right how i can do it ?
- Code:
$(document).ready(function() {
$('td a[href^="http://********.forum.st/f"]').after('<div style="color:#BDBDBD" class="check-post"><br /><br /><br />No new posts</div>');
$('.check-post').each(function() {
var href = $(this).prev().attr('href');
$(this).load(href + ' .row1.centered',function() {
if ($(this).find('img[alt^="New posts"]').length) { $(this).html('<font color="red">New Posts</font>') }
else { $(this).html('No new posts') }
});
});
});
for the new posts text but now i am trying to move it somewhere else probably center or left or right how i can do it ?
Last edited by VoxThePie on January 6th 2015, 4:02 pm; edited 1 time in total
Re: Java script help!
Try this in your CSS, you can change text-align left or right.
- Code:
.check-post {
text-align: center;
}
Re: Java script help!
that code worked very great thanks,
Another question though how i can add instead of a text an image?
Another question though how i can add instead of a text an image?
Re: Java script help!
Hi @VoxThePie,
If you want to change the text to an image, find :
and replace it with an image, like :
Replace myimg.gif by the URL of your image.
If you want to change the text to an image, find :
- Code:
<font color="red">New Posts</font>
and replace it with an image, like :
- Code:
<img src="myimg.gif" alt="New Posts"/>
Replace myimg.gif by the URL of your image.
Re: Java script help!
That's so great sir :O thanks
Another request i got as well here sorry for a lot of request i got , How i can show the Number of Topic And Posts in the category ?
And where do i get like this Follow us tab ---> http://prntscr.com/5otkft
Another request i got as well here sorry for a lot of request i got , How i can show the Number of Topic And Posts in the category ?
And where do i get like this Follow us tab ---> http://prntscr.com/5otkft
Re: Java script help!
I believe you should open a new topic if you have questions that are not related to this topic. Is the question in your first post solved ?
Re: Java script help!
helloVoxThePie wrote:okay so far i have made the following code...for the new posts text but now i am trying to move it somewhere else probably center or left or right how i can do it ?
- Code:
$(document).ready(function() {
$('td a[href^="http://********.forum.st/f"]').after('<div style="color:#BDBDBD" class="check-post"><br /><br /><br />No new posts</div>');
$('.check-post').each(function() {
var href = $(this).prev().attr('href');
$(this).load(href + ' .row1.centered',function() {
if ($(this).find('img[alt^="New posts"]').length) { $(this).html('<font color="red">New Posts</font>') }
else { $(this).html('No new posts') }
});
});
});
you mind telling me what job of this Script
im little confused cuz in the 1st place i thought this is simlliar topics or something
and sorry for jumping in
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: Java script help!
@Michael_vx, it is to add "New posts" under his categories. He's using it for the multi forums in one.
As the topic is marked solved, Archived.
As the topic is marked solved, Archived.
Similar topics
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
» Help with snow script and java.
» Any New Java Script removes Chatbox from Toolbar?
» Java script Select all code stopped working
» register Script (I Need The Script)
» Help with snow script and java.
» Any New Java Script removes Chatbox from Toolbar?
» Java script Select all code stopped working
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum