Slideris bijis pielāgots priekš manām vajadzībām,liekot pilnajā materiāla skatā,bet varat pielagot arī savām vajadzībām.
Kods,kas jāievieto,kur vēlaties redzēt slaideri:
Code
></script>
<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
</script>
<div id="newsstat"><div id="featured"> <ul
class="ui-tabs-nav"> <li class="ui-tabs-nav-item
ui-tabs-selected" id="nav-fragment-1"><a
href="#fragment-1"><img
src="$IMG_URL2$"
alt="" width="80" height="50"></a></li> <li
class="ui-tabs-nav-item" id="nav-fragment-2"><a
href="#fragment-2"><img
src="$IMG_URL3$" alt=""
width="80" height="50"></a></li> <li
class="ui-tabs-nav-item" id="nav-fragment-3"><a
href="#fragment-3"><img
src="$IMG_URL4$"
alt="" width="80" height="50"></a></li> <li
class="ui-tabs-nav-item" id="nav-fragment-4"><a
href="#fragment-4"><img
src="$IMG_URL5$"
alt="" width="80" height="50"></a></li> </ul>
<!-- First Content --> <div id="fragment-1"
class="ui-tabs-panel" style=""> <img
src="$IMG_URL2$" width="320px" height="250px"
alt=""></div> <!-- Second Content
--> <div id="fragment-2" class="ui-tabs-panel ui-tabs-hide"
style=""> <img
src="$IMG_URL3$" width="320px" height="250px"
alt=""></div> <!-- Third Content
--> <div id="fragment-3" class="ui-tabs-panel ui-tabs-hide"
style=""> <img
src="$IMG_URL4$" width="320px" height="250px"
alt=""></div> <!-- Fourth Content
--> <div id="fragment-4" class="ui-tabs-panel ui-tabs-hide"
style=""> <img
src="$IMG_URL5$" width="320px" height="250px"
alt=""></div></div>
<div
align="center"><table style="width: 515px; border-collapse:
collapse" width="" align=""
summary="null"><tbody><tr><td style="text-align:
right; letter-spacing: 0px; word-spacing: 0px; vertical-align: middle;
padding-right: 10px"><span style="font-size:
8pt"></span></td></tr></tbody></table></div>
Attiecāmi,kur man ir norādīti $IMG_URL1...4$ attiecīgi varam likt arī savus bilžu linkus,
Slaidera CSS izskatas:
Code
/* SLIDER SAKUMS */
#featured{
width:318px;
padding-right:110px;
position:relative;
border:5px solid #ccc;
height:250px;
background:#fff;
}
#featured ul.ui-tabs-nav{
position:absolute;
top:0; left:319px;
list-style:none;
padding:0; margin:0;
width:250px;
}
#featured ul.ui-tabs-nav li{
padding:1px 0;padding-left:13px;
font-size:12px;
color:#666;
}
#featured ul.ui-tabs-nav li img{
float:left; margin:2px 5px;
background:#fff;
padding:2px;
border:1px solid #eee;
}
#featured ul.ui-tabs-nav li span{
font-size:11px; font-family:Verdana;
line-height:18px;
}
#featured li.ui-tabs-nav-item a{
display:block;
width:96px;
height:60px;
color:#333; background:#fff;
line-height:20px;
}
#featured li.ui-tabs-nav-item a:hover{
background:#f2f2f2;
}
#featured li.ui-tabs-selected{
background:url('/images/selected-item.gif') top left no-repeat;
}
#featured ul.ui-tabs-nav li.ui-tabs-selected a{
background:#ccc;
}
#featured .ui-tabs-panel{
width:320px; height:250px;
background:#999; position:relative;
}
#featured .ui-tabs-panel .apraksts{
position:absolute;
top:180px; left:0;
width:320px; height:70px;
background: url('/images/transparent-bg.png');
}
#featured .apraksts h2{
font-size:18px; font-family:Georgia, serif;
color:#fff; padding:5px; margin:0;
overflow:hidden;
}
#featured .apraksts p{
margin:0 5px;
font-family:Verdana; font-size:11px;
line-height:15px; color:#f0f0f0;
}
#featured .apraksts a{
text-decoration:none;
color:#fff;
}
#featured .apraksts a:hover{
text-decoration:underline;
}
#featured .ui-tabs-hide{
display:none;
}
#newsstat {margin:0px 0px 0px 2px;}
/* SLIDER BEIGAS */
Izmērus arī pielāgojam attiecīgi kā jums vien sirds kāro.