gallery6_column1.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">
                  Let us look at the rest of the readyState==4 conditional
                  branch as there is a bit going on there.
               </p>
               <p class="code">
                  <strong>Line 1:</strong> getImageSize =
                  document.getElementsByTagName(&quot;img&quot;)[0]
				  .getAttribute(&quot;width&quot;);
               </p>
               <p class="code">
                  <strong>Line 2:</strong> gallery.style.left = (pageWidth -
                  getImageSize) / 2+&quot;px&quot;;
               </p>
               <p class="code">
                  <strong>Line 3:</strong> preload.style.left = (pageWidth -
                  getImageSize) / 2+&quot;px&quot;;
               </p>
               <p class="code">
                  <strong>Line 4:</strong>
                  document.getElementById(&#39;captionLYR&#39;).style.
				  left = (pageWidth -&nbsp;&nbsp; getImageSize) / 2 +&quot;px&quot;;
               </p>
               <p class="code">
                  <strong>Line 5:</strong>
                  document.getElementById(&#39;accessLYR&#39;).style.
				  visibility  = &quot;hidden&quot;;
               </p>
</body>
</html>

⌨️ 快捷键说明

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