Cześć posiadam taki kod:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Slick jQuery Slidehow: Demo</title>
  5. <style type="text/css">
  6. <!--
  7. /**
  8. * Slideshow style rules.
  9. */
  10. #slideshow {
  11. margin:0 auto;
  12. width:640px;
  13. height:263px;
  14. background:transparent url(img/bg_slideshow.jpg) no-repeat 0 0;
  15. position:relative;
  16. }
  17. #slideshow #slidesContainer {
  18. margin:0 auto;
  19. width:560px;
  20. height:263px;
  21. overflow:auto; /* allow scrollbar */
  22. position:relative;
  23. }
  24. #slideshow #slidesContainer .slide {
  25. margin:0 auto;
  26. width:540px; /* reduce by 20 pixels of #slidesContainer to avoid horizontal scroll */
  27. height:263px;
  28. }
  29.  
  30. /**
  31. * Slideshow controls style rules.
  32. */
  33. .control {
  34. display:block;
  35. width:39px;
  36. height:263px;
  37. text-indent:-10000px;
  38. position:absolute;
  39. cursor: pointer;
  40. }
  41. #leftControl {
  42. top:0;
  43. left:0;
  44. background:transparent url(img/control_left.jpg) no-repeat 0 0;
  45. }
  46. #rightControl {
  47. top:0;
  48. right:0;
  49. background:transparent url(img/control_right.jpg) no-repeat 0 0;
  50. }
  51.  
  52. /**
  53. * Style rules for Demo page
  54. */
  55. * {
  56. margin:0;
  57. padding:0;
  58. font:normal 11px Verdana, Geneva, sans-serif;
  59. color:#ccc;
  60. }
  61. a {
  62. color: #fff;
  63. font-weight:bold;
  64. text-decoration:none;
  65. }
  66. a:hover {
  67. text-decoration:underline;
  68. }
  69. body {
  70. background:#393737 url(img/bg_body.jpg) repeat-x top left;
  71. }
  72. #pageContainer {
  73. margin:0 auto;
  74. width:960px;
  75. }
  76. #pageContainer h1 {
  77. display:block;
  78. width:960px;
  79. height:114px;
  80. background:transparent url(img/bg_pagecontainer_h1.jpg) no-repeat top left;
  81. text-indent: -10000px;
  82. }
  83. .slide h2, .slide p {
  84. margin:15px;
  85. }
  86. .slide h2 {
  87. font:italic 24px Georgia, "Times New Roman", Times, serif;
  88. color:#ccc;
  89. letter-spacing:-1px;
  90. }
  91. .slide img {
  92. float:right;
  93. margin:0 15px;
  94. }
  95. #footer {
  96. height:100px;
  97. }
  98. #footer p {
  99. margin:30px auto 0 auto;
  100. display:block;
  101. width:560px;
  102. height:40px;
  103. }
  104. -->
  105. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  106. <script type="text/javascript">
  107. $(document).ready(function(){
  108. var currentPosition = 0;
  109. var slideWidth = 560;
  110. var slides = $('.slide');
  111. var numberOfSlides = slides.length;
  112.  
  113. // Remove scrollbar in JS
  114. $('#slidesContainer').css('overflow', 'hidden');
  115.  
  116. // Wrap all .slides with #slideInner div
  117. slides
  118. .wrapAll('<div id="slideInner"></div>')
  119. // Float left to display horizontally, readjust .slides width
  120. .css({
  121. 'float' : 'left',
  122. 'width' : slideWidth
  123. });
  124.  
  125. // Set #slideInner width equal to total width of all slides
  126. $('#slideInner').css('width', slideWidth * numberOfSlides);
  127.  
  128. // Insert controls in the DOM
  129. $('#slideshow')
  130. .prepend('<span class="control" id="leftControl">Clicking moves left</span>')
  131. .append('<span class="control" id="rightControl">Clicking moves right</span>');
  132.  
  133. // Hide left arrow control on first load
  134. manageControls(currentPosition);
  135.  
  136. // Create event listeners for .controls clicks
  137. $('.control')
  138. .bind('click', function(){
  139. // Determine new position
  140. currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
  141.  
  142. // Hide / show controls
  143. manageControls(currentPosition);
  144. // Move slideInner using margin-left
  145. $('#slideInner').animate({
  146. 'marginLeft' : slideWidth*(-currentPosition)
  147. });
  148. });
  149.  
  150. // manageControls: Hides and Shows controls depending on currentPosition
  151. function manageControls(position){
  152. // Hide left arrow if position is first slide
  153. if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
  154. // Hide right arrow if position is last slide
  155. if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
  156. }
  157. });
  158. </head>
  159. <div id="pageContainer">
  160. <h1><a href="http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/">Slick Slideshow using jQuery</a></h1>
  161. <!-- Slideshow HTML -->
  162. <div id="slideshow">
  163. <div id="slidesContainer">
  164. <div class="slide">
  165. <h2>Web Development Tutorial</h2>
  166. <p><a href="http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/"><img src="img/img_slide_01.jpg" alt="An image that says Install X A M P P for wordpress." width="215" height="145" /></a>If you're into developing web apps, you should check out the tutorial called "<a href="http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/">Using XAMPP for Local WordPress Theme Development</a>" which shows you how to set up a local testing server for developing PHP/Perl based applications locally on your computer. The example also shows you how to set up WordPress locally!</p>
  167. </div>
  168. <div class="slide">
  169. <h2>Grunge Brushes, Anyone?</h2>
  170. <p><a href="http://sixrevisions.com/freebies/brushes/sr-grunge-free-high-resolution-photoshop-grunge-brushes/"><img src="img/img_slide_02.jpg" width="215" height="145" alt="A thumbnail image that says S R grunge photoshop brushes 6 high resolution grunge brushes by six revisions." /></a>In this layout, I used <a href="http://sixrevisions.com/freebies/brushes/sr-grunge-free-high-resolution-photoshop-grunge-brushes/">SR Grunge</a>, which is a free set of high-resolution Photoshop brushes you can download here on Six Revisions.</p>
  171. <p>
  172. </div>
  173. <div class="slide">
  174. <h2>How About Some Awesome Grunge Textures?</h2>
  175. <p><a href="http://sixrevisions.com/freebies/textures/grunge-extreme-15-high-resolution-grunge-textures/"><img src="img/img_slide_03.jpg" width="215" height="145" alt="A thumbnail image that says grunge extreme 15 free high resolution grunge textures six revisions." /></a>The texture used in this web page is from the Grunge Extreme Textures freebie set by JC Parmley released here on Six Revisions.</p>
  176. <p>You can head over to the <a href="http://sixrevisions.com/freebies/textures/grunge-extreme-15-high-resolution-grunge-textures/">Grunge Extreme</a> page to download the texture set or check out Six Revisions' <a href="http://sixrevisions.com/category/freebies/">freebie section</a> for even more goodies!</p>
  177. </div>
  178. <div class="slide">
  179. <h2>'Tis the End, My Friend.</h2>
  180. <p><a href="http://sixrevisions.com/tutorials/photoshop-tutorials/how-to-create-a-slick-and-clean-button-in-photoshop/"><img src="img/img_slide_04.jpg" width="215" height="145" alt="Thumbnail image that says sleek button using photoshop that links to a Photoshop tutoril." /></a>This is the last slide. Hit the left arrow control to go back to the other slides.</p>
  181. <p>Alternatively, you may want to check out the tutorial on how to create a simple and cool button in Photoshop called &quot;<a href="http://sixrevisions.com/tutorials/photoshop-tutorials/how-to-create-a-slick-and-clean-button-in-photoshop/">How to Create a Slick and Clean Button in Photoshop</a>&quot; which was inspired by the <a href="http://www.campaignmonitor.com/designer/?utm_source=sixrevisions&amp;utm_medium=banner&amp;utm_term=2&amp;utm_content=0003&amp;utm_campaign=Apr09Banners">Campaign Monitor</a> web interface.</p>
  182. </div>
  183. </div>
  184. </div>
  185. <!-- Slideshow HTML -->
  186. <div id="footer">
  187. <p><a href="#">Create a Slick and Accessible Slideshow Using jQuery by Jacob Gube</a> (<a href="http://sixrevisions.com/">Six Revisions</a>)</p>
  188. </div>
  189. </div>
  190. </body>
  191. </html>


To nie jest mój skrypt! Próbowałem na różne sposoby zmienić rozmiar tego okienka... i mi się to nie udało, albo się psuło, albo nic nie działało:)

Tutaj jest temat źródłowy Silder

Docelowe wymiary to: 800x600px


Proszę o pomoc! ;]