📄 gallery6_column2.html
字号:
<!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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -