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

📄 19.6.htm

📁 这是我卖的书上的源码 这书是电子邮电出版的是有关网络编程 有详细的例子
💻 HTM
字号:
<!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>Remote Control</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<script type="text/javascript">
<!--
function loadImage(which) 
{
  var contentWindowURL = "20.5.htm";
  if (!window.opener || window.opener.closed) 
   {
    alert("Main window went away. Will respawn it.");
    window.open(contentWindowURL, "_blank");
    window.close();
    return;
  }
  window.opener.document.images["displayedImage"].src = which;
  window.opener.focus();
}
//-->
</script>
</head>
<body>
<h3>选择要显示的图片</h3>
<form action="#" onsubmit="return false;" method="get">
<input type="button" value="图片一" onclick="loadImage('image1.gif');">
&nbsp;
<input type="button" value="图片二" onclick="loadImage('image2.gif');">
&nbsp;
<input type="button" value="图片三" onclick="loadImage('image3.gif');">
&nbsp;
<input type="button" value="图片四" onclick="loadImage('image4.gif');">
</form>
</body>
</html>

⌨️ 快捷键说明

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