前端开发 —— 图片轮播
<div class="output_wrapper" id="output_wrapper_id" style="font-size: 16px; color: rgba(62, 62, 62, 1); line-height: 1.6; word-spacing: 0; letter-spacing: 0; font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%); background-size: 20px 20px; background-position: center"><blockquote style="line-height: inherit; display: block; padding: 15px 15px 15px 1rem; font-size: 0.9em; margin: 1em 0; color: rgba(129, 145, 152, 1); border-left: 6px solid rgba(220, 230, 240, 1); background: rgba(242, 247, 251, 1); overflow: auto; overflow-wrap: normal; word-break: normal"><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0; margin: 0">今日一言:<br>受身无间者永远不死,寿长乃无间地狱中之大劫。<br>——《涅盘经》</p>
</blockquote>
<h3 id="h" style="color: inherit; line-height: inherit; padding: 0; margin: 1.5em 0 50px; font-weight: bold; border-bottom: 2px solid rgba(63, 63, 63, 1); font-size: 1em"><span style="font-size: inherit; line-height: inherit; margin: 0; display: inline-block; background: rgba(63, 63, 63, 1); color: rgba(255, 255, 255, 1); padding: 10px 16px; border-radius: 5px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 1)">前端开发 —— 图片轮播</span></h3>
<hr style="font-size: inherit; color: inherit; line-height: inherit; padding: 0; height: 1px; margin: 1.5rem 0; border-right: none; border-bottom: none; border-left: none; border-top: 1px dashed rgba(165, 165, 165, 1)">
<h3 id="hhtml" style="color: inherit; line-height: inherit; padding: 0; margin: 1.5em 0 50px; font-weight: bold; border-bottom: 2px solid rgba(63, 63, 63, 1); font-size: 1em"><span style="font-size: inherit; line-height: inherit; margin: 0; display: inline-block; background: rgba(63, 63, 63, 1); color: rgba(255, 255, 255, 1); padding: 10px 16px; border-radius: 5px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 1)">HTML</span></h3>
<pre style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0"><code class="html language-html hljs xml" style="overflow-wrap: break-word; margin: 0 2px; line-height: 18px; font-size: 14px; font-weight: normal; word-spacing: 0; letter-spacing: 0; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0; color: rgba(169, 183, 198, 1); background: rgba(40, 43, 46, 1); overflow-x: auto; padding: 0.5em; white-space: pre !important; word-wrap: normal !important; word-break: normal !important; overflow: auto !important"><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">class</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"content"</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">class</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"img_box"</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">ul</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">img</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">src</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"./img/1.jpeg"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height: 480px"</span> /></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">img</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">src</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"./img/2.jpeg"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height: 480px"</span>/></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">img</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">src</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"./img/3.jpeg"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height: 480px"</span>/></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">img</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">src</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"./img/4.jpeg"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height: 480px"</span>/></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">img</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">src</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"./img/5.jpeg"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height: 480px"</span>/></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">ul</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">p</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">span</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">class</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"leftBtn"</span>></span>&lt;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">span</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">span</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">class</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"rightBtn"</span>></span>&gt;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">span</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">p</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"><<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">class</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"bar"</span> <span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">style</span>=<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"width: 640px;height:5px;background-color: #FFFFFF"</span>></span><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span>></span><br> <span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span>></span><br><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0; word-wrap: inherit !important; word-break: inherit !important"></<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">div</span>></span><br></code></pre>
<hr style="font-size: inherit; color: inherit; line-height: inherit; padding: 0; height: 1px; margin: 1.5rem 0; border-right: none; border-bottom: none; border-left: none; border-top: 1px dashed rgba(165, 165, 165, 1)">
<h3 id="hcss" style="color: inherit; line-height: inherit; padding: 0; margin: 1.5em 0 50px; font-weight: bold; border-bottom: 2px solid rgba(63, 63, 63, 1); font-size: 1em"><span style="font-size: inherit; line-height: inherit; margin: 0; display: inline-block; background: rgba(63, 63, 63, 1); color: rgba(255, 255, 255, 1); padding: 10px 16px; border-radius: 5px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 1)">CSS</span></h3>
<pre style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0"><code class="css language-css hljs" style="overflow-wrap: break-word; margin: 0 2px; line-height: 18px; font-size: 14px; font-weight: normal; word-spacing: 0; letter-spacing: 0; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0; color: rgba(169, 183, 198, 1); background: rgba(40, 43, 46, 1); overflow-x: auto; padding: 0.5em; white-space: pre !important; word-wrap: normal !important; word-break: normal !important; overflow: auto !important"><span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">body</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">background-color</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">#212121</span>;<br>}<br><br><span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">li</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">list-style-type</span>: none;<br>}<br><br><span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">ul</span> {<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">width</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">640px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">height</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">480px</span>;<br><br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">padding</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">display</span>: flex;<br>}<br><br><span class="hljs-selector-class" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">.img_box</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">width</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">640px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">height</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">480px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">position</span>: absolute;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">left</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50%</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">top</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50%</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-left</span>: -<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">320px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-top</span>: -<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">240px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">overflow</span>: hidden;<br>}<br><br><span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">p</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">position</span>: absolute;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">width</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">640px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">height</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">70px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">top</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50%</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">left</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50%</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-left</span>: -<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">320px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-top</span>: -<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">35px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">display</span>: flex;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">justify-content</span>: space-between;<br>}<br><br><span class="hljs-selector-class" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">.rightBtn</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-webkit-touch-callout</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-webkit-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-khtml-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-moz-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-ms-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">display</span>: inline-block;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">font-size</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">width</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">70px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">height</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">70px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">border-radius</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">9px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">text-align</span>: center;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-right</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">5px</span>; <br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">color</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">#fff</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">background-color</span>: <span class="hljs-built_in" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">rgba</span>(0,0,0,0.5);<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">cursor</span>: pointer;<br>}<br><br><span class="hljs-selector-class" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">.leftBtn</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-webkit-touch-callout</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-webkit-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-khtml-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-moz-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">-ms-user-select</span>: none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">user-select</span>: none;<br> user-select:none;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">display</span>: inline-block;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">font-size</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">50px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">width</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">70px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">height</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">70px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">border-radius</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">9px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">text-align</span>: center;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">color</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">#fff</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">margin-left</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">5px</span>;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">background-color</span>: <span class="hljs-built_in" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">rgba</span>(0,0,0,0.5);<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">cursor</span>: pointer;<br>}<br><br><span class="hljs-selector-class" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(232, 191, 106, 1); word-wrap: inherit !important; word-break: inherit !important">.bar</span>{<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">position</span>: absolute;<br> <span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">bottom</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>;<br>}<br></code></pre>
<hr style="font-size: inherit; color: inherit; line-height: inherit; padding: 0; height: 1px; margin: 1.5rem 0; border-right: none; border-bottom: none; border-left: none; border-top: 1px dashed rgba(165, 165, 165, 1)">
<h3 id="hjavascript" style="color: inherit; line-height: inherit; padding: 0; margin: 1.5em 0 50px; font-weight: bold; border-bottom: 2px solid rgba(63, 63, 63, 1); font-size: 1em"><span style="font-size: inherit; line-height: inherit; margin: 0; display: inline-block; background: rgba(63, 63, 63, 1); color: rgba(255, 255, 255, 1); padding: 10px 16px; border-radius: 5px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 1)">JavaScript</span></h3>
<pre style="font-size: inherit; color: inherit; line-height: inherit; margin: 0; padding: 0"><code class="JavaScript language-JavaScript hljs" style="overflow-wrap: break-word; margin: 0 2px; line-height: 18px; font-size: 14px; font-weight: normal; word-spacing: 0; letter-spacing: 0; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0; color: rgba(169, 183, 198, 1); background: rgba(40, 43, 46, 1); overflow-x: auto; padding: 0.5em; white-space: pre !important; word-wrap: normal !important; word-break: normal !important; overflow: auto !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">var</span> cureent = <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>;<br><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">var</span> time = $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"img"</span>).width();<br><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">var</span> timer;<br><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">var</span> leftBtn = $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">".leftBtn"</span>);<br><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">var</span> rightBtn = $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">".rightBtn"</span>);<br><br><span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span> <span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">show</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">status</span>)</span>{<br> <span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">if</span>( status == <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">1</span> ){<br> timer = setInterval(<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> time--;<br> <span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">if</span>( time < <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span> ){<br> Tright();<br> time = box.width();<br> }<br> $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">".bar"</span>).width($(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"img"</span>).width()-time+<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"px"</span>);<br> },<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">10</span>);<br> } <span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">else</span> {<br> clearInterval(timer);<br> time = $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"img"</span>).width();<br> }<br>}<br><br>show(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">1</span>);<br><br>$(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">".img_box"</span>).hover(<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> leftBtn.fadeIn(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">30</span>);<br> rightBtn.fadeIn(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">30</span>);<br>});<br><br>$(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">".img_box"</span>).mouseleave(<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> leftBtn.fadeOut(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">30</span>);<br> rightBtn.fadeOut(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">30</span>);<br>});<br><br><span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span> <span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">Tleft</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> show(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>);<br> cureent--;<br> <span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">if</span>( cureent < <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span> ) cureent = <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">4</span>;<br> $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"ul"</span>).animate({<span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">marginLeft</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">-640</span> * cureent + <span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"px"</span>});<br> show(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">1</span>);<br>}<br><br><span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span> <span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">Tright</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> show(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>);<br> cureent++;<br> <span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">if</span>( cureent >= <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">5</span> ) cureent = <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">0</span>;<br> $(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"ul"</span>).animate({<span class="hljs-attr" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(255, 198, 109, 1); word-wrap: inherit !important; word-break: inherit !important">marginLeft</span>: <span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">-640</span> * cureent +<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(106, 135, 89, 1); word-wrap: inherit !important; word-break: inherit !important">"px"</span>});<br> show(<span class="hljs-number" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important">1</span>);<br>}<br><br>leftBtn.click(<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> Tleft();<br>});<br><br>rightBtn.click(<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(204, 120, 50, 1); word-wrap: inherit !important; word-break: inherit !important">function</span>(<span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: rgba(104, 151, 187, 1); word-wrap: inherit !important; word-break: inherit !important"></span>)</span>{<br> Tright();<br>});<br></code></pre>
<hr style="font-size: inherit; color: inherit; line-height: inherit; padding: 0; height: 1px; margin: 1.5rem 0; border-right: none; border-bottom: none; border-left: none; border-top: 1px dashed rgba(165, 165, 165, 1)"></div><br><br>
来源:https://www.cnblogs.com/rcklos/p/12977275.html
頁:
[1]