The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

javascript code problem

View previous topic View next topic Go down

javascript code problem

Post by paor on June 16th 2013, 2:44 am

@paor wrote:quick replay on my forum looks like...wtf...cache cleared
tnx


I found out what's the problem: when cut this javascript code everything is ok

Code:

var CopyrightNotice='phpbb3 post numbers for forumotion phpbb3 forums. Copyright ©  by LGforum. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
function pagesort(no) {var a=no-1;var b=a*15;var c= b+1;return c;}
function findlink(i) {var a=$('.topic-title').get(); var b=$(a[i]).find('a')[0]; var c=b.attributes;
postlink=c[1].nodeValue; return postlink; }
$(function(){
j=$('div .pagination').find('strong');
k=j[0].innerHTML; var pagenumber=Number(k);
var p=pagesort(pagenumber); var a=$('.right').get();
    for(var i=0;i<a.length;i++) {
  postlink=findlink(i); postno=i+p;
  $(a[i]).prepend('<span style="float: right;color:black;padding-left:10px;">' +postno+'.</span>')
  }
});

so, what's wrong in this code

tnx

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Re: javascript code problem

Post by paor on June 27th 2013, 11:26 pm

bump

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum