• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Publisher , Site Catalog, Ad board , File Catalog » Previous and Next button
Previous and Next button
AnimorphDate: Sunday, 2011-09-04, 1:56 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(


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><div style="<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>
tags-zB11Previous, and, Next, button
Attachments: 0451616.png(177.5 Kb)
 
0 Thanked you For This Useful Post:
Maczo12310Date: Sunday, 2011-09-04, 2:58 PM | Message # 2
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
Hmm looking nice. Would you like me to make some nice buttons for it ? Im just asking because i dont have alot of work these days.


Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
interoutDate: Thursday, 2011-09-15, 5:23 AM | Message # 3
Member
Group: Senior Members
Messages: 146
Awards: 1
Reputation: 4
Status: :-(
There to put code ?

 
0 Thanked you For This Useful Post:
AnimorphDate: Thursday, 2011-09-15, 9:55 AM | Message # 4
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
interout, exactly where you want it. it doesn't matter actually
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Publisher , Site Catalog, Ad board , File Catalog » Previous and Next button
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers