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

📄 004.htm

📁 javascript源码集锦
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0054)http://www.javascripts.com/repository/script18584.html -->
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! --><!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. --><HTML><HEAD><TITLE>My Script-by Blueraz</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2014.210" name=GENERATOR></HEAD>
<BODY><!-- This script was created by Mike Howard. If you use this script you may include this message in it //-->
<SCRIPT>
if (document.layers) {
  document.writeln ('<STYLE>');
  document.writeln ('  .changeable { position: relative; }');
  document.writeln ('<\/STYLE>');
}
</SCRIPT>

<SCRIPT>

function setElement (id, html) {
  if (document.layers) {
    var l = document[id];
    if (!l.overLayer) {
      l.overLayer = new Layer(l.clip.width);
      l.overLayer.left = l.pageX;
      l.overLayer.top  = l.pageY;
      l.visibility = 'hide';
      l.overLayer.visibility = 'show';
    }
    l.overLayer.document.open();
    l.overLayer.document.write(html);
    l.overLayer.document.close();
  }
  else if (document.all) {
    document.all[id].innerHTML = html;
  }
}
function changeNow() {
var user = document.aForm.user.value
document.aForm.aField.value = "Welcome "+user+"";
setElement ('someParagraph', document.aForm.aField.value);
}
var nw = "'";
document.write('<FORM NAME="aForm">');
document.write('<INPUT TYPE="hidden" NAME="aField" VALUE="">');
document.write('<SPAN ID="someParagraph" CLASS="changeable">');
document.write('<input type=text name=user size=5> <INPUT TYPE="button" VALUE="ok" ONCLICK="changeNow();">');
document.write('</SPAN></form>');
</SCRIPT>
Simba says Roar.<BR><!-- Simba says Roar. --></BODY></HTML>

⌨️ 快捷键说明

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