⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gallery5_column2.html

📁 Ajax tutorial archive
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      <title>
         Introduction to Ajax Tutorial
      </title>
   </head>
   <body>
    			<p class="main">
                  That&#39;s the basic logic for a preload routine. You may
                  have noticed on the readystate == 3 branch that we are
                  calling a function named setOpacity(). We do this to ensure
                  that the image opacity is set to 0 before it is rendered by
                  the browser after the readyState == 4 branch has been parsed.
                  The function it hooks into enables us to set opacity for the
                  browsers that support it. Opera will simply just display the
                  images without using opacity. The setOpacity() function looks
                  like this:
               </p>
               <p class="code">
                  function setOpacity(opacity, id)<br />
                  {<br />
                  var el = document.getElementById(id).style;<br />
                  el.opacity = (opacity / 100);<br />
                  el.MozOpacity = (opacity / 100);<br />
                  el.KhtmlOpacity = (opacity / 100);<br />
                  el.filter = &quot;alpha(opacity=&quot; + opacity +
                  &quot;)&quot;;<br />
                  }
               </p>
   </body>
</html>

⌨️ 快捷键说明

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