1) Πίνακάς έλεγχου
2) Σχεδίασή
3) Επεξεργασία HTML
4) τσεκάρουμε το τετραγωνάκι (Επέκταση προτύπων γραφικών στοιχείων)
5) Πατάμε στο πληκτρολόγιο μας ctrl+f οπού μας ανοίγει ένα παραθυράκι αναζητήσεις.
Αντιγράφουμε των παρακάτω κωδικό :
]]></b:skin>
και το επικολλούμε στον παραθυράκι της αναζητήσεις, και αμέσως το βρίσκουμε μέσα στους κωδικούς HTML. Ακριβώς πάνω από αυτών των κωδικό προσθέτουμε αυτόν:
/*--Main Container--*/
.main_view {
float: left;
position: relative;
}
/*--Window/Masking Styles--*/
.window {
height:250px; width: 500px;
overflow: hidden; /*--Hides anything outside of the set width/height--*/
position: relative;
}
.image_reel {
position: absolute;
top: 0; left: 0;
}
.image_reel img {float: left;}
/*--Paging Styles--*/
.paging {
position: absolute;
bottom: 40px; right: -7px;
width: 178px; height:47px;
z-index: 100; /*--Assures the paging stays on the top layer--*/
text-align: center;
line-height: 40px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA8OpxuOW8jRVjFk-FG1YtRW7VCAx-vMwpmzqrxIeLf_VzpN1sc0cN0bXIPjojynIN6yXYssX4T9QVVDqMn6q0y2ZAke404ENTQFSELQDiPPQKV5kNICv0OJrIJsydmrwDX30r1AUAOcpv/s1600/paging_bg2.png) no-repeat;
display: none; /*--Hidden by default, will be later shown with jQuery--*/
}
.paging a {
padding: 5px;
text-decoration: none;
color: #fff;
}
.paging a.active {
font-weight: bold;
background: #920000;
border: 1px solid #610000;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
}
.paging a:hover {font-weight: bold;
Με τον ιδιο τροπο βρίσκουμε των κωδικό </head> ακριβώς πάνω από αυτών των κωδικό θα βάλουμε των παρακάτω:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function() {
//Set Default State of each portfolio piece
$(".paging").show();
$(".paging a:first").addClass("active");
//Get size of images, how many there are, then determin the size of the image reel.
var imageWidth = $(".window").width();
var imageSum = $(".image_reel img").size();
var imageReelWidth = imageWidth * imageSum;
//Adjust the image reel to its new size
$(".image_reel").css({'width' : imageReelWidth});
//Paging + Slider Function
rotate = function(){
var triggerID = $active.attr("rel") - 1; //Get number of times to slide
var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide
$(".paging a").removeClass('active'); //Remove all active class
$active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function)
//Slider Animation
$(".image_reel").animate({
left: -image_reelPosition
}, 500 );
};
//Rotation + Timing Event
rotateSwitch = function(){
play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds
$active = $('.paging a.active').next();
if ( $active.length === 0) { //If paging reaches the end...
$active = $('.paging a:first'); //go back to first
}
rotate(); //Trigger the paging and slider function
}, 7000); //Timer speed in milliseconds (3 seconds)
};
rotateSwitch(); //Run function on launch
//On Hover
$(".image_reel a").hover(function() {
clearInterval(play); //Stop the rotation
}, function() {
rotateSwitch(); //Resume rotation
});
//On Click
$(".paging a").click(function() {
$active = $(this); //Activate the clicked paging
//Reset Timer
clearInterval(play); //Stop the rotation
rotate(); //Trigger rotation immediately
rotateSwitch(); // Resume rotation
return false; //Prevent browser jump to link anchor
});
});
</script>
<div class="container">
<div class="folio_block">
<div class="main_view">
<div class="window">
<div class="image_reel">
<a href="http://www.spiceupyourblog.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRFZUmsU75fjMCjcfYhcvmobUpxFv2SF7wNgqOUKLHsV43I5Pn7hFFh3QiP-vQf-oQVRjJECDbKQegCG3r2y89F4sOAwh11VtyVWqPeGFC4krEWUa9IvJ9FANQ5p8VikAHQLjbW1bNVW5/s1600/slider-image-1.jpg" alt="" /></a>
<a href="http://www.spiceupyourblog.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCZDhosgixXgKteN0p5noTzkySClV-0eKET-palYvbmWP3su0bCkcC92yS_s9gqUSvwZyr_OT02QN4Lnn5bF81ZG9sTLfl47d2F8_s7uEbPuB0oa69OiHuiOvZvr1qwsCFYviScVfxU0ft/s1600/slider-image-2.jpg" alt="" /></a>
<a href="http://www.spiceupyourblog.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcGbLGvyZPIPEcb_seGIaaa4heai7_voQz-4v7B2TFK95KU0CYuLXVJM6AFVeTk5h6g9_RMcWDSAyFVlZz0hXflZOAIJmyJUPQ5M6GRTXR5m6HC468Wb9opljUqP-oQo-s3REhGOHBedDB/s1600/slider-image-3.jpg" alt="" /></a>
<a href="http://www.spiceupyourblog.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2pXPFkySBgk_LzlkMpNqFYxeHq5eRUaRARhsS5AjorjtenEbNFKDlHGs6PeZa5lJ7er9uzsF2685zkFpxlbQ2B6zEdaucelnRRjn024M_LwlM4xVDVyzMI9QpF8UA0ooeJt1NoAlmhS_M/s1600/slider-image-4.jpg" alt="" /></a>
<a href="http://www.spiceupyourblog.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOgbSlkCFGlnV14XxWoy1kwPFUhsirIaxWCXyycGNIZPjUPAiqXrpUtjnu_kdJ5vS75MRg4UVkEqxWpAMeVdW0Ug8_Kq32dSsRfud8VssS_P9ie6guJzsYBCcHIG5pBfaCL3DGkJYKomxg/s1600/slider-image-6.jpg" alt="" /></a>
</div>
</div>
<div class="paging">
<a href="#" rel="1">1</a>
<a href="#" rel="2">2</a>
<a href="#" rel="3">3</a>
<a href="#" rel="4">4</a>
<a href="#" rel="5">5</a>
</div>
</div>
</div>
</div>
Προσοχη:
1) οπου λεει https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRFZUmsU75fjMCjcfYhcvmobUpxFv2SF7wNgqOUKLHsV43I5Pn7hFFh3QiP-vQf-oQVRjJECDbKQegCG3r2y89F4sOAwh11VtyVWqPeGFC4krEWUa9IvJ9FANQ5p8VikAHQLjbW1bNVW5/s1600/slider-image-1.jpg Βαλτέ το λινκ της εικόνας που θέλετε να εμφανίζετε στο slidshow.
2) οπου λεει : http://www.spiceupyourblog.com/ Βαλτέ το λινκ του ορθού στο όποιο αντίστοιχη η εικόνα.






0 σχόλια:
Δημοσίευση σχολίου