Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML] Galeria - Kod HTML - EDYTOWANIE - Potrzebujemy małej pomocy
Forum PHP.pl > Forum > Przedszkole
pftprzybylski
  1. <!DOCTYPE html>
  2. <html lang="en-us">
  3. <meta charset="utf-8">
  4.  
  5. <title>Lightbox</title>
  6.  
  7. <meta name="description" lang="en" content="Lightbox is a script used to overlay images on the current page. It's a snap to setup and works on all modern browsers."/>
  8. <meta name="author" content="Lokesh Dhakar">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10.  
  11. <link rel="shortcut icon" href="img/demopage/favicon.png">
  12. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Karla%7CMontserrat">
  13. <link rel="stylesheet" href="css/screen.css">
  14. <link rel="stylesheet" href="css/lightbox.css">
  15. </head>
  16.  
  17. <header>
  18. <div class="container">
  19. <h1 class="logo">Lightbox</h1>
  20. <p class="lead">
  21. The original lightbox script.<br />Eight years later &mdash; still going strong!
  22. </p>
  23.  
  24. <a href="releases/lightbox-2.7.1.zip" class="button">
  25. Download
  26. </a>
  27.  
  28. <a href="https://github.com/lokesh/lightbox2/" class="button">
  29. View on Github
  30. </a>
  31.  
  32. </div>
  33. </header>
  34.  
  35. <section id="examples" class="examples-section">
  36. <div class="container">
  37. <h2>Examples</h2>
  38. <h3>Two individual images</h3>
  39. <div class="image-row">
  40. <a class="example-image-link" href="img/demopage/image-1.jpg" data-lightbox="example-1"><img class="example-image" src="img/demopage/image-1.jpg" alt="image-1" /></a>
  41. <a class="example-image-link" href="img/demopage/image-2.jpg" data-lightbox="example-2" data-title="Optional caption."><img class="example-image" src="img/demopage/image-2.jpg" alt="image-1"/></a>
  42. </div>
  43.  
  44. <hr />
  45.  
  46. <h3 style="clear: both;">Four image set</h3>
  47.  
  48. <div class="image-row">
  49. <div class="image-set">
  50. <a class="example-image-link" href="img/demopage/image-3.jpg" data-lightbox="example-set" data-title="Click the right half of the image to move forward."><img class="example-image" src="img/demopage/thumb-3.jpg" alt=""/></a>
  51. <a class="example-image-link" href="img/demopage/image-4.jpg" data-lightbox="example-set" data-title="Or press the right arrow on your keyboard."><img class="example-image" src="img/demopage/thumb-4.jpg" alt="" /></a>
  52. <a class="example-image-link" href="img/demopage/image-5.jpg" data-lightbox="example-set" data-title="The next image in the set is preloaded as you're viewing."><img class="example-image" src="img/demopage/thumb-5.jpg" alt="" /></a>
  53. <a class="example-image-link" href="img/demopage/image-6.jpg" data-lightbox="example-set" data-title="Click anywhere outside the image or the X to the right to close."><img class="example-image" src="img/demopage/thumb-6.jpg" alt="" /></a>
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58.  
  59. <section id="how-to-use" class="how-to-use-section">
  60. <div class="container">
  61. <h2>How to use</h2>
  62. <h3>Step 1 - Load the Javascript and CSS</h3>
  63. <ol>
  64. <li>Download and unzip the latest version of Lightbox.</li>
  65. <li>Look inside the <code>js</code> folder to find <code>jquery-1.11.0.min.js</code> and <code>lightbox.min.js</code> and load both of these files. Load jQuery first.
  66. <pre><code>&lt;script src=&quot;js/jquery-1.11.0.min.js&quot;&gt;&lt;/script&gt;
  67. &lt;script src=&quot;js/lightbox.min.js&quot;&gt;&lt;/script&gt;</code></pre>
  68. </li>
  69. <li>Look inside the <code>css</code> folder to find <code>lightbox.css</code> and load it.
  70. <pre><code>&lt;link href=&quot;css/lightbox.css&quot; rel=&quot;stylesheet&quot; /&gt;</code></pre>
  71. </li>
  72. <li>Look inside the <code>img</code> folder to find <code>close.png</code>, <code>loading.gif</code>, <code>prev.png</code>, and <code>next.png</code>. These files are used in <code>lightbox.css</code>. By default, <code>lightbox.css</code> will look for these images in a folder called <code>img</code>.</li>
  73. </ol>
  74. <h3>Step 2 - Turn it on</h3>
  75. <ul>
  76. <li>Add a <code>data-lightbox</code> attribute to any image link to activate Lightbox. For the value of the attribute, use a unique name for each image. For example:
  77. <pre><code>&lt;a href=&quot;img/image-1.jpg&quot; data-lightbox=&quot;image-1&quot; data-title=&quot;My caption&quot;&gt;Image #1&lt;/a&gt;</code></pre>
  78. <em>Optional:</em> Add a <code>data-title</code> attribute if you want to show a caption.
  79. </li>
  80. <li>If you have a group of related images that you would like to combine into a set, use the same <code>data-lightbox</code> attribute value for all of the images. For example:
  81. <pre><code>&lt;a href=&quot;img/image-2.jpg&quot; data-lightbox=&quot;roadtrip&quot;&gt;Image #2&lt;/a&gt;
  82. &lt;a href=&quot;img/image-3.jpg&quot; data-lightbox=&quot;roadtrip&quot;&gt;Image #3&lt;/a&gt;
  83. &lt;a href=&quot;img/image-4.jpg&quot; data-lightbox=&quot;roadtrip&quot;&gt;Image #4&lt;/a&gt;</code></pre>
  84. </li>
  85. </ul>
  86. </div>
  87. </section>
  88.  
  89.  
  90. <section id="help" class="questions-section">
  91. <div class="container">
  92. <h2>Help</h2>
  93.  
  94. <h3>Have a feature request?</h3>
  95. <p>If you want a feature added, <a href="https://github.com/lokesh/lightbox2/issues">create an issue on Github</a>. Someone else or I might be able to help out. No guarantees.</p>
  96.  
  97. <h3>Found a bug?</h3>
  98. <p>If you find a bug, <a href="https://github.com/lokesh/lightbox2/issues">create an issue on Github</a>. Include your operating system and browser version along with detailed steps on how to reproduce the bug.</p>
  99.  
  100. <h3>Can't get Lightbox working?</h3>
  101. <p>If you followed the instructions, but still can't get Lightbox working, <a href="http://stackoverflow.com/">search Stackoverflow</a> to see if other people have run into the same issue as you. If not, post a new question.</p>
  102.  
  103. <h3>Looking for older versions?</h3>
  104. <p>You can access older versions and see a changelog on the <a href="https://github.com/lokesh/lightbox2/releases">Github releases page</a>.</p>
  105. </div>
  106. </section>
  107.  
  108. <section id="donate" class="donate-section">
  109. <div class="container">
  110. <h2>Donate</h2>
  111. <p>
  112. Lightbox is 100% free to use. If you're using Lightbox on a commercial project and feeling generous, consider a donation. Thanks!
  113. </p>
  114. <form class="donate-button-form" name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
  115. <input type="hidden" name="cmd" value="_xclick">
  116. <input type="hidden" name="business" value="lokesh.dhakar@gmail.com">
  117. <input type="hidden" name="item_name" value="Donation for Lightbox">
  118. <input type="hidden" name="no_note" value="1">
  119. <input type="hidden" name="currency_code" value="USD">
  120. <input type="hidden" name="tax" value="0">
  121. <input type="hidden" name="bn" value="PP-DonationsBF">
  122. <input type="submit" name="submit" class="button donate-button" value="Donate using Paypal" alt="Make payments with PayPal - it's fast, free and secure!">
  123. </form>
  124. </div>
  125. </section>
  126.  
  127. <footer>
  128. <div class="container">
  129. <p>
  130. Lightbox is created by Lokesh Dhakar<br />
  131. <a href="https://twitter.com/lokesh" class="button button-minor">Follow me on Twitter</a>
  132. </p>
  133. </div>
  134. </footer>
  135.  
  136. <div id="sharing" class="sharing-section">
  137. <a href="https://twitter.com/share" class="twitter-share-button" data-via="lokesh" data-size="large">Tweet</a>
  138. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  139. </div>
  140.  
  141. <script src="js/jquery-1.11.0.min.js"></script>
  142. <script src="js/lightbox.js"></script>
  143.  
  144. var _gaq = _gaq || [];
  145. _gaq.push(['_setAccount', 'UA-2196019-1']);
  146. _gaq.push(['_trackPageview']);
  147.  
  148. (function() {
  149. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  150. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  151. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  152. })();
  153. </script>
  154.  
  155. </body>
  156. </html>


Jest to galeria

http://lokeshdhakar.com/projects/lightbox2/


Czy jest ktoś w stanie pomóc mi ją edytować ?
Chce mieć tylko te 4 obrazki + oczywiście działajace JS
Potem sobie zmienie obrazki i będzie fajnie git smile.gif
Ale nie wiem co wywalić z kodu by go nie rozwalić
jaca121212
  1. <!DOCTYPE html>
  2. <html lang="en-us">
  3. <meta charset="utf-8">
  4.  
  5.  
  6.  
  7.  
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9.  
  10.  
  11. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Karla%7CMontserrat">
  12.  
  13. <link rel="stylesheet" href="css/lightbox.css">
  14. </head>
  15.  
  16.  
  17.  
  18. <section id="examples" class="examples-section">
  19.  
  20.  
  21. <h3 style="clear: both;">Galeria zdjęć </h3>
  22.  
  23. <div class="image-row">
  24. <div class="image-set">
  25. <a class="example-image-link" href="img/demopage/image-3.jpg" data-lightbox="example-set" data-title="text"><img class="example-image" src="img/demopage/thumb-3.jpg" alt=""/></a>
  26. <a class="example-image-link" href="img/demopage/image-4.jpg" data-lightbox="example-set" data-title="text"><img class="example-image" src="img/demopage/thumb-4.jpg" alt="" /></a>
  27. <a class="example-image-link" href="img/demopage/image-5.jpg" data-lightbox="example-set" data-title="text"><img class="example-image" src="img/demopage/thumb-5.jpg" alt="" /></a>
  28. <a class="example-image-link" href="img/demopage/image-6.jpg" data-lightbox="example-set" data-title="text"><img class="example-image" src="img/demopage/thumb-6.jpg" alt="" /></a>
  29. </div>
  30. </div>
  31. </div>
  32. </section>
  33.  
  34.  
  35.  
  36.  
  37. <script src="js/jquery-1.11.0.min.js"></script>
  38. <script src="js/lightbox.js"></script>
  39.  
  40. var _gaq = _gaq || [];
  41. _gaq.push(['_setAccount', 'UA-2196019-1']);
  42. _gaq.push(['_trackPageview']);
  43.  
  44. (function() {
  45. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  46. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  47. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  48. })();
  49. </script>
  50.  
  51. </body>
  52. </html>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.