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("fadeIn('galleryLYR', 0,
'99.99')", 1200);
</p>
<p class="code">
<strong>Line 7:</strong>
setTimeout("fadeIn('captionLYR', 0,
'99.99')", 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("img"). 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 + -
显示快捷键?