当前位置:编程学习 > asp >>

Behavior学习笔记(七)

内建Behavior的应用:Clientcaps篇
"clientcaps"提供系统的相关信息,可以套用到网页中的任何一个元件。
xmllover.htm
<html>
<head>
    <title>xmllover</titie>
    <style>
    input {behavior:url(#default#clientcaps)}
    //内建Behavior的套用语法
    </style>
    
    <script language="vbscript">
    function button1_onclick()
        str1=button1.colordepth
        str2=button1.connectiontype
        str3=button1.cpuclass
        str4=button1.height
        str5=button1.width
        str6=button1.platform
        str7=button1.systemlanguage
        str8=button1.userlangauge
        document.open
        document.write "<pre style='font-size:18'>"
        document.writeln "colordepth=" & str1
        document.writeln "connectiontype=" & str2
        ...............
        docuemnt.writeln "userlanguage=" & str8
        document.write "</pre>"
    end function
    </script>
    </head>
    
补充:asp教程,客户端相关打印
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,