Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Scroll button
RosheD
post
Post #1





Grupa: Zarejestrowani
Postów: 69
Pomógł: 0
Dołączył: 10.06.2013

Ostrzeżenie: (0%)
-----


Witam bardzo serdecznie (IMG:style_emoticons/default/smile.gif) Czy mógł by mi ktoś pomóc,podać link do skryptu bo nie potrafie takowego znaleźć .
Więc poszukuje skryptu który po kliknięciu guzika będzie zjeżdżał na dół (tak wiem to bez problemu można znaleźć) ale żeby było widać suwaka na prawej stronie Tak jak to jest na distance to mars (IMG:style_emoticons/default/smile.gif)
Z góry dziękuje za odpowiedzi (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
com
post
Post #2





Grupa: Zarejestrowani
Postów: 3 034
Pomógł: 366
Dołączył: 24.05.2012

Ostrzeżenie: (0%)
-----


nie działa spróbuj tak:
  1. <div id="mainpage">
  2. <nav id="top">
  3. <h1>Webpage Title</h1>
  4. <ul id="navigation">
  5. <li><a href="#">Home</a></li>
  6. <li><a href="#about"><img src="img/about.png" alt="tekst alternatywny" /></a></li>
  7. <a href="#howtouse" class="nav-button" id="header">How to Use</a>
  8. </ul>
  9. </nav>
  10. </div>

  1. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  2. margin: 0;
  3. padding: 0;
  4. border: 0;
  5. font-size: 100%;
  6. font: inherit;
  7. vertical-align: baseline;
  8. outline: none;
  9. -webkit-box-sizing: border-box;
  10. -moz-box-sizing: border-box;
  11. box-sizing: border-box;
  12. }
  13. html {overflow:hidden;}
  14. body { font-family: Arial, Tahoma, sans-serif; font-size: 62.5%; line-height: 1; background: #fff; color: #343434; }
  15.  
  16. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
  17. ol, ul { list-style: none; }
  18.  
  19. blockquote, q { quotes: none; }
  20. blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
  21. strong { font-weight: bold; }
  22.  
  23. table { border-collapse: collapse; border-spacing: 0; }
  24. img { border: 0; max-width: 100%; }
  25.  
  26. h2 { font-size: 2.3em; line-height: 1.1em; font-family: 'ABeeZee', 'Trebuchet MS', Arial, sans-serif; color: #646464; font-weight: bold; margin-bottom: 12px; }
  27.  
  28. p { font-size: 1.4em; line-height: 1.25em; margin-bottom: 20px; color: #444; }
  29.  
  30. a.close { display: inline-block; background: #5574b4; padding: 10px 8px; color: #fff; font-weight: bold; font-size: 1.4em; text-decoration: none; margin-bottom: 6px; }
  31. a.close:hover { background: #4a6397; }
  32.  
  33. #about {
  34. display: block;
  35. width: 300px;
  36. background: #fff;
  37. padding: 10px 11px;
  38. padding-top: 35px;
  39. position: absolute;
  40. top: 0;
  41. left: 0;
  42. height: 100%;
  43. }
  44.  
  45. #mainpage {
  46. width: 100%;
  47. height: 100%;
  48. display: block;
  49. background: #473d47 url('../img/tlo.jpg');
  50. min-height: 800px;
  51. overflow: hidden;
  52. position: relative;
  53. z-index: 2;
  54. color: #fff;
  55. }
  56.  
  57. #mainpage nav {
  58. position: absolute;
  59. width: 100px;
  60. min-height: 97%;
  61. padding: 0px 8px;
  62. padding-top: 220px;
  63. }
  64. #mainpage nav h1 {
  65. font-family: 'ABeeZee', 'Trebuchet MS', Arial, sans-serif;
  66. font-size: 2.85em;
  67. line-height: 1.3em;
  68. font-weight: bold;
  69. text-transform: uppercase;
  70. margin-bottom: 11px;
  71. }
  72.  
  73. #navigation {
  74. list-style: none;
  75. }
  76. #navigation li { display: block; margin-bottom: 2px; font-size: 1.4em; font-weight: bold; }
  77. #navigation li a { display: block; padding: 8px 6px; width: 100%; color: #d1e0f8; text-decoration: none; }
  78. #navigation li a:hover, #navigation li a.open { color: #fff; opacity: 0.5; }
  79.  
  80.  
  81. #content {
  82. display: block;
  83. margin-left: 200px;
  84. padding: 10px 15px;
  85.  
  86. }
  87.  
  88. #content p {
  89. color: #fff;
  90. text-shadow: 2px 1px 0px rgba(0,0,0,0.7);
  91. }
  92.  
  93. #mainpage nav#top {
  94. position: absolute;
  95. height: 120px;
  96. width: 100%;
  97. min-height: 120px;
  98. top: 0;
  99. text-align: center;
  100. padding: 20px 0px;
  101. }
  102.  
  103. nav#top #navigation li {
  104. display: inline-block;
  105. margin-right: 6px;
  106. }
  107.  
  108. .fixed-btm { padding-bottom: 120px; /* add extra space when nav is fixed at the bottom */ }
  109.  
  110. .nav-button {
  111. padding: 10px;
  112. padding: 1rem;
  113. text-decoration: none;
  114. color: #959db5;
  115. font-size: 20px;
  116. font-size: 2rem;
  117. text-shadow: 0 -1px 1px #000;
  118. text-transform: uppercase;
  119. font-weight: bold;
  120. font-style: normal;
  121. }
  122. .current, a.nav-button:hover {
  123. color: #fff;
  124. }
  125. .slide {
  126. margin: 0 auto;
  127. width: 99%;
  128. padding: 120px 0;
  129. padding: 12rem 0;
  130. height: 40rem;
  131. }
  132.  
  133. .pro-tip {
  134. display: block;
  135. padding: 20px;
  136. padding: 2rem;
  137. text-shadow: 0 1px 0 #fff;
  138. }
  139.  
  140. code {
  141. font-style: normal;
  142. padding-left: 5px;
  143. padding-left: .5rem;
  144. }
  145.  
  146.  
  147. h1 {
  148. font-size: 180px;
  149. font-size: 18rem;
  150. margin: 0;
  151. text-shadow: 0 2px 1px #fff;
  152. }
  153.  
  154. p {
  155. width: 80%;
  156. margin: 20px auto;
  157. margin: 2rem auto;
  158. text-shadow: 0 1px 1px #fff;
  159. line-height: 1.2;
  160. }
  161.  
  162. a, a:visited {
  163. color: #1a4a6a;
  164. font-weight: bold;
  165. font-style: italic;
  166. text-shadow: none;
  167. }
  168.  
  169. small {
  170. line-height: 1;
  171. font-style: italic;
  172. font-size: 20px;
  173. font-size: 2rem;
  174. text-shadow: 0 1px 0 #fff;
  175. }
  176.  
  177.  
  178. /* target screen width */
  179. @media (max-width: 1280px) {
  180. html {
  181. font-size: 10px;
  182. }
  183. }
  184.  
  185. @media (max-width: 1160px) {
  186. html {
  187. font-size: 9px;
  188. }
  189. }
  190.  
  191. @media (max-width: 1040px) {
  192. html {
  193. font-size: 8px;
  194. }
  195. }
  196.  
  197. @media (max-width: 920px) {
  198. html {
  199. font-size: 7px;
  200. }
  201. }
  202.  
  203. @media (max-width: 800px) {
  204. html {
  205. font-size: 6px;
  206. }
  207. }
  208.  
  209. @media (max-width: 680px) {
  210. html {
  211. font-size: 5px;
  212. }
  213. }
  214.  
  215. @media (max-width: 560px) {
  216. html {
  217. font-size: 4px;
  218. }
  219. }
  220.  
  221. @media (max-width: 440px) {
  222. html {
  223. font-size: 3px;
  224. }
  225. }
  226.  
  227. @media (max-width: 320px) {
  228. html {
  229. font-size: 3px;
  230. }
  231. }


Ten post edytował com 10.10.2013, 22:05:26
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 11:30