Register    Sign in
Authentification
uCoz Scripts » Page Selector » –

Page selector for File Catalog for uCoz

Excellent replacement for standard switch pages for ucoz. The script is on css3 and jQuery to a directory of files. The main feature of this switch pages in addition to beautiful styling, is the ability to deploy a full list of the pages and return to the compact form in one click.
Find and replace $PAGE_SELECTOR$ with:

Code

<style>  
.aponewselect {  
  white-space:normal;  
  width:500px;  
}  

.swchItem, .swchItemA, .swchItemDots {  
  padding:1px 3px 1px 3px;  
  margin-right:3px;  
  margin-bottom:2px !important;  
  background:rgba(220, 220, 220, 0.8);  
  border-top:1px solid #aaa;  
  border-left:1px solid #aaa;  
  border-right:1px solid #eee;  
  border-bottom:1px solid #eee;  
  border-radius:2px;  
  min-width:20px;  
  height:15px;  
  text-align:center;  
  cursor:pointer;  
  transition: border .3s linear, background .2s linear;  
-moz-transition: border .3s linear, background .2s linear;  
-webkit-transition: border .3s linear, background .2s linear;  
-o-transition: border .3s linear, background .2s linear;  
  text-decoration:none !important;  
  color:#777 !important;  
float:left;  
}  

.swchItemA, .swchItemDots {  
  background:rgba(240, 220, 220, 0.8);  
}  

.swchItem:hover {  
  border-bottom:1px solid #999;  
  border-right:1px solid #999;  
  border-top:1px solid #eee;  
  border-left:1px solid #eee;  
  background:rgba(220, 245, 220, 0.8);  
}  

.swchItem:active {  
  border-bottom:1px solid #ddd;  
  border-right:1px solid #ddd;  
  border-top:1px solid #eee;  
  border-left:1px solid #eee;  
  background:rgba(220, 240, 220, 0.8);  
}  
</style>  

<div class="aponewselect">$PAGE_SELECTOR$</div>  

<script>  
// ApoTeam (c) 2013  
  $('div.aponewselect').prepend('<a class="swchItem" href="javascript://" onclick="$(\'a#aposwitchnew\').remove();$(\'span.swchItemDots\').show();return false;">×</a>');  
  $('span.swchItemDots').click(function() {  
var apothisprev = parseInt($(this).prev().text()) + 1;  
var apothisnext = parseInt($(this).next().text());  
for(i=apothisprev;i<apothisnext;i++) {  
  $(this).before('<a class="swchItem" id="aposwitchnew" style="display:none;" href="javascript://" rel="nofollow" onclick="spages(' + i + ');return false;">' + i + '</a>');  
}  
  $(this).hide();  
  $('a.swchItem').fadeIn();  
});  
//www.themes.ucoz.net  
//apo-ucoz.com (c) 2013  
</script>






Autor: cioLAN  2024-04-19, 11:39:04   Views : 2303   

Tags: PAGE SELECTOR


Total comments (0)
ComForm">
avatar