gallery8_column1.html

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

HTML
36
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Introduction to Ajax Tutorial</title>
</head>

<body>
                  <p class="main">
                  Only a couple of more things and we are done for part 1. One
                  thing we want to do is to cycle through the images as a user
                  clicks through the forward or previous buttons. In order to
                  do that we use the following case.
               </p>
               <p class="code">
                  case &quot;cycle_gallery&quot;:<br />
                  if (args[1] == &#39;forw&#39; &amp;&amp; gallery_index !=
                  galleryArray.length - 1)<br />
                  {<br />
                  gallery_index++;<br />
                  description_index++;<br />
                  ajaxManager(&#39;load_page&#39;, galleryArray[gallery_index],
                  &#39;galleryLYR&#39;);<br />
                  ajaxManager(&#39;load_page&#39;,
                  descriptionArray[description_index],
                  &#39;captionLYR&#39;);<br />
                  }<br />
                  else if (args[1] == &#39;rev&#39; &amp;&amp; gallery_index !=
                  0)<br />
                  {<br />
                  gallery_index--;<br />
                  description_index--;<br />
               </p>
</body>
</html>

⌨️ 快捷键说明

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