gallery7_column2.html

来自「Ajax tutorial archive」· HTML 代码 · 共 38 行

HTML
38
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      <title>
         Introduction to Ajax Tutorial
      </title>
   </head>
   <body>
    			 <p class="main">
                  the page. The arguments used for this function are
                  fadeIn(Element ID, Fade Start, Fade End)
               </p>
               <p class="main">
                  <strong>Line 7:</strong> Same as Line 6 except this time we
                  target the element with an id attribute of galleryLYR.
               </p>
               <p class="main">
                  Our fadeIn function looks like this:
               </p>
               <p class="code">
                  function fadeIn(id, startfade, endfade)<br />
                  {<br />
                  timer = 0;<br />
                  if (startfade &lt; endfade)<br />
                  {<br />
                  for (i = startfade; i &lt;= endfade; i++)<br />
                  {<br />
                  setTimeout(&quot;setOpacity(&quot; + i + &quot;,&#39;&quot; +
                  id + &quot;&#39;)&quot;, (timer * 20));<br />
                  timer++;<br />
                  }<br />
                  }<br />
                  }
               </p>
   </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?