|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Navigation links in File Catalog (previous/next entry) |
Navigation links in File Catalog |
I need to make next and previous links in a post , could you help me ?
I've put the screenshot in the attachments as an example Attachments:
4579992.png
(137.5 Kb)
|
fsalamic, here is a script, not exactly what showed on the screenshot though:
Code <div id="pages"></div> <script> a=location.href; b=a.split('-'); c=b.length; d=eval(c-1); e=b[d]; f=a.split('-'+e)[0]; $('#pages').html('<a id="b" href="'+f+'-'+eval(e-1)+'">Previous entry</a><span id="i"> | </span><a id="a" href="'+f+'-'+eval(e*1+1)+'">Next entry</a>'); $.ajax({ type: 'GET', url: f+'-'+eval(e*1+1), error: function(){$('#a, #i').hide();} }); $.ajax({ type: 'GET', url: f+'-'+eval(e-1), error: function(){$('#b, #i').hide();} }); </script> It should be pasted into the "Page with full entry text and associated comments" template, where you want the links to be displayed. I'm not active on the forum anymore. Please contact other forum staff.
|
fsalamic, here is a script, not exactly what showed on the screenshot though: <div id="pages"></div> <script> a=location.href; b=a.split('-'); c=b.length; d=eval(c-1); e=b[d]; f=a.split('-'+e)[0]; $('#pages').html('<a id="b" href="'+f+'-'+eval(e-1)+'">Previous entry</a><span id="i"> | </span><a id="a" href="'+f+'-'+eval(e*1+1)+'">Next entry</a>'); $.ajax({ type: 'GET', url: f+'-'+eval(e*1+1), error: function(){$('#a, #i').hide();} }); $.ajax({ type: 'GET', url: f+'-'+eval(e-1), error: function(){$('#b, #i').hide();} }); </script> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 It should be pasted into the "Page with full entry text and associated comments" template, where you want the links to be displayed. Thank you, this is exactly what i was looking for. I just have one more question to ask you Sunny how can I remove the extra space on my site here is the link t the screenshot http://snag.gy/M2iBF.jpg Post edited by fsalamic - Wednesday, 2014-06-25, 8:48 PM
|
fsalamic, and where exactly do you want to remove extra space? Show it on the screenshot. And provide the URL of your website here, copying it from the screenshot is not very convenient
I'm not active on the forum anymore. Please contact other forum staff.
|
fsalamic, and where exactly do you want to remove extra space? Show it on the screenshot. And provide the URL of your website here, copying it from the screenshot is not very convenient smile Here is the link http://animebih.tk/load/anime/attack_on_titan/attack_on_titan_epizoda_20_sa_prevodom/10-1-0-58 You see underneath the video that there is some space |
fsalamic, here http://screencast.com/t/SzPH8pdB ? You want to remove it completely?
I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||