zoukankan      html  css  js  c++  java
  • 依赖于脚本支持的应用程序

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Example:Replacing noscript</title>
      <script type="text/javascript">
      function noscript()
      {
          if(!document.getElementById||!document.createTextNode){return;}
          var noJSmsg=document.getElementById('noscripting');
          if(!noJSmsg){return;}
          var headline='Browser test succeeded';
          replaceMessage='We tested if your browser is capable of ';
          replaceMessage+='supporting the application,and all checked out fine.';
          replaceMessage+='Please proceed by activating the following link.';
          var linkMessage='Proceed to application.';
          var head=document.createElement('h1');
          head.appendChild(document.createTextNode(headline));
          noJSmsg.parentNode.insertBefore(head,noJSmsg);
          var infoPara=document.createElement('p');
          infoPara.appendChild(document.createTextNode(replaceMessage));
          noJSmsg.parentNode.insertBefore(infoPara,noJSmsg);
          var linkPara=document.createElement('p');
          var appLink=document.createElement('a');
          appLink.setAttribute('href','application.aspx');
          appLink.appendChild(document.createTextNode(linkMessage));
          linkPara.appendChild(appLink);
          noJSmsg.parentNode.replaceChild(linkPara,noJSmsg);
      }
      window.onload=noscript;
      </script>
    </head>
    <body>
      <p id="noscripting">
      We are sorry,but this application needs JavaScript to be
      enabled to work.Please <a href="contact.html">contact us</a>
      if you cannot enable scripting and we will try to help you in
      other ways
      </p>
    </body>
    </html>

    image

    image

  • 相关阅读:
    ubuntu下安装eclipse
    UTC时间、GMT时间、本地时间、Unix时间戳
    [转]mysql使用关键字作为列名的处理方式
    mysql日期格式化
    ssh远程登陆看不到用户名和主机名
    ssh以root用户远程登录失败
    PowerBI发布到网页
    视图是否有主键的问题
    select count(*)和select count(1)
    PPT产品的重要性
  • 原文地址:https://www.cnblogs.com/vonk/p/3979648.html
Copyright © 2011-2022 走看看