Advertisement
i27mad

سلايد شو بسيط وتلقائي واحترافي للبلوجر ( سهل التركيب )

Jan 13th, 2016
960
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. <style>
  2. #featuredpost {padding: 10px;}
  3. #slides *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
  4. #slides ul,#slides li{padding:0;margin:0;list-style:none;position:relative}
  5. #slides ul{height:320px}
  6. #slides li{width:50%;height:100%;position:absolute;display:none}
  7. #slides li:nth-child(1), #slides li:nth-child(2), #slides li:nth-child(3), #slides li:nth-child(4), #slides li:nth-child(5){display:block}
  8. #slides li:nth-child(1){left:0;top:0}
  9. #slides li:nth-child(2){left:50%;width:25%;height:50%}
  10. #slides li:nth-child(3){left:75%;width:25%;height:50%}
  11. #slides li:nth-child(4){left:50%;top:50%;width:25%;height:50%}
  12. #slides li:nth-child(5){left:75%;top:50%;width:25%;height:50%}
  13. #slides li:nth-child(1) h4 {overflow:hidden;font-size:15px;bottom:0;color:#fafafa;width:100%;
  14. padding:10px 10px 10px 90px;text-align:left;text-transform:uppercase;background:rgba(0,0,0,0.3);
  15. height:90px;text-shadow:2px 2px 0 rgba(0,0,0,0.2);line-height:32px;left:0;}
  16. #slides li:nth-child(1) .label_text {font-size:20px;display:block;bottom:10px;left:10px;
  17. padding:0;box-shadow:5px 3px 0 rgba(0,0,0,0.2);}
  18. #slides li:nth-child(1) span.dd {display:block;font-size:20px;padding:12px 15px;
  19. background:#FC4F3F;margin:0;}
  20. #slides li:nth-child(1) span.dm {display:block;font-size:14px;background:#333;color:#fff;
  21. padding:5px 21px;text-transform:uppercase;margin:0;}
  22. #slides li:nth-child(1) span.dy, #slides li:nth-child(1) span.autname{display:none;}
  23. #slides a{display:block;width:100%;height:100%;overflow:hidden}
  24. #slides img{display:block;width:100%;height:auto;border:0;padding:0;background-color:#333;-moz-transform:scale(1.0) rotate(0);-webkit-transform:scale(1.0) rotate(0);-ms-transform:scale(1.0) rotate(0);transform:scale(1.0) rotate(0);transition:all 0.6s linear;}
  25. #slides li a:hover img {-moz-transform:scale(1.1) rotate(1deg);-webkit-transform:scale(1.1) rotate(1deg);-ms-transform:scale(1.1) rotate(1deg);transform:scale(1.1) rotate(1deg);transition:all 0.3s linear;}
  26. #slides .overlayx{width:100%;height:100%;position:absolute;z-index:2;background-image:url(http://2.bp.blogspot.com/-0haO2Mfkjjk/VDgZww2tfEI/AAAAAAAAHAk/zhu3INYSkHA/s1600/fade.png);background-position:50% 40%;background-repeat:repeat-x;}
  27. #slides h4{position:absolute;bottom:40px;margin:0;font-size:13px;
  28. left:10px;padding:5px 10px;color:#f9f9f9;z-index:3;line-height:20px;font-weight:normal;
  29. background:rgba(41,41,41,0.7);text-align:left;text-transform:uppercase;margin-right:10px;}
  30. #slides .label_text{font-size:12px;color:#fff;bottom:10px;z-index:3;left:10px;
  31. position:absolute;background:#FC4F3F;padding:3px 6px;
  32. text-transform:uppercase;}
  33. #slides li:nth-child(2) .autname,#slides li:nth-child(3) .autname,#slides li:nth-child(4) .autname,#slides li:nth-child(5) .autname{display:none;}
  34. #slides .overlayx,#slides li{transition:all .4s ease-in-out}
  35. #slides li:nth-child(1) .overlayx{display:none;}
  36. #slides li:hover .overlayx{opacity:0.1}
  37. @media only screen and (max-width:800px){
  38. #slides li:nth-child(1) h4 {font-size:18px;line-height:24px;}}
  39. @media only screen and (max-width:600px){
  40. #slides ul{height:600px}
  41. #slides li:nth-child(1){width:100%;height:50%}
  42. #slides li:nth-child(2){top:50%;height:25%;left:0;width:50%}
  43. #slides li:nth-child(3){left:50%;top:50%;width:50%;height:25%}
  44. #slides li:nth-child(4){left:0;top:75%;height:25%;width:100%}
  45. #slides li:nth-child(5){display:none;}}
  46. @media only screen and (max-width:480px){
  47. #slides li:nth-child(1) h4 {font-size:13px;line-height:16px;}}
  48. </style>
  49. <div id="featuredpost"></div>
  50. <script type="text/javascript" src="https://googledrive.com/host/0B7EdpK5Vun4YcGJMbnU2T3RMV0k"></script>
  51. <script type='text/javascript'>
  52. //<![CDATA[
  53. $(document).ready(function () {
  54. FeaturedPost({
  55. blogURL:"http://www.almtwr.net",
  56. MaxPost:8,
  57. idcontaint:"#featuredpost",
  58. ImageSize:500,
  59. interval:10000,
  60. autoplay:true,
  61. tagName:false
  62. });
  63. });
  64. //]]>
  65. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement