gallery6_column2.html

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

HTML
39
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      <title>
         Introduction to Ajax Tutorial
      </title>
   </head>
   <body>
    			 <p class="code">
                  <strong>Line 6:</strong>
                  setTimeout(&quot;fadeIn(&#39;galleryLYR&#39;, 0,
                  &#39;99.99&#39;)&quot;, 1200);
               </p>
               <p class="code">
                  <strong>Line 7:</strong>
                  setTimeout(&quot;fadeIn(&#39;captionLYR&#39;, 0,
                  &#39;99.99&#39;)&quot;, 1300);
               </p>
               <p class="main">
                  <strong>Line 1:</strong> With this statement we create a
                  variable named getImageSize. As the variable name implies we
                  are going to the dimensions of the image being imported.
                  Specifically its width attribute. In order to do this, we
                  grab the image tag using
                  document.getElementsByTagName(&quot;img&quot;). The [0]
                  indicates to the browser to obtain the first image contained
                  within the document. If we wanted to obtain the second image,
                  we would use [1] and so on. Then we obtain the width
                  attribute by employing getAttribute. All this information is
                  now stored in the variable.
               </p>
               <p class="main">
                  <strong>Line 2:</strong> The element galleryLYR left position
                  is
               </p>
   </body>
</html>

⌨️ 快捷键说明

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