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

📄 acronym.html

📁 java script to pop out selection
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Acronym</title>
    
    <script type="text/javascript">
    <!--
        acr_array=["ADSL:Asymmetrical Digital Subscriber Line",
               "ALU:Arithmetic Logic Unit",
               "AV:Audio Vedio",
               "BMP:BitMap",
               "CODEC:COdec DECoder",
               "CPU:Central Processing Unit",
               "DAC:Digital to Analog Converter",
               "GB:Giga Byte",
               "HD:Hard Disk",
               "HTML:Hyper Text Markup Language"];
               
     function getList(selection){
        var mean = acr_array[selection].split(":");
        document.getElementById('desc').innerHTML = mean[1];
     };
     //-->
    </script>
</head>

<body>
    <script type="text/javascript">
    <!--
    document.write("<h1>Welcome to rhe Acronym Finder</h1>");
    document.write("<h3>Select an acronym from the drop down list!</h3>");
    document.write("<table border='1' cellpadding='5' width='90%'>");
    document.write("<tr style='text-align:center'>");
            document.write("<td>Acronym</td>");
            document.write("<td>Meaning</td>");
        document.write("</tr>");
        document.write("<tr>");
            document.write("<td width='25%'>Acronym:");
                document.write("<form action=''>");
                    document.write("<select onchange='getList(this.value)' id='option'>");
                    document.write("<option value='0' selected='selected'>ADSL</option>");
                    document.write("<option value='1'>ALU</option>");
                    document.write("<option value='2'>AV</option>");
                    document.write("<option value='3'>BMP</option>");
                    document.write("<option value='4'>CODEC</option>");
                    document.write("<option value='5'>CPU</option>");
                    document.write("<option value='6'>DAC</option>");
                    document.write("<option value='7'>GB</option>");
                    document.write("<option value='8'>HD</option>");
                    document.write("<option value='9'>HTML</option>");
                    document.write("</select>");
                document.write("</form>");
            document.write("</td>");
            document.write("<td id='desc'>&nbsp");
            document.write("</td>");
        document.write("</tr>");
    document.write("</table>");        
    //-->
    </script>
    
    <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-xhtml10-blue"
        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  </p>

</body>
</html>

⌨️ 快捷键说明

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