The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

javascript code problem

Go down

javascript code problem Empty javascript code problem

Post by paor June 16th 2013, 11:44 am

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

javascript code problem 14-06_10

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
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

javascript code problem Empty Re: javascript code problem

Post by paor June 28th 2013, 8:26 am

bump
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Back to top

- Similar topics

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