TACKTECH,INC.
top >
labo >
Ajaxその1
2つのサーバをサムネイルのように縮小表示しています。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_Jis">
<head>
<title>WebMonitor</title>
<script src="http://192.168.1.1/WebMonitor?init=guest" type="text/javascript"></script> ← (1)
</head>
<body>
<div id="view" style="overflow:scroll; width: 500px; height: 400px; border: 1px solid #000000;"></div> ← (2)
<script type="text/javascript"> ← (3)
//<![CDATA[
var WebMon = new WebMonitor();
WebMon.init('http://192.168.1.1/', 'view', 1);
//]]>
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_Jis" />
<head>
<title>WebMonitor</title>
<script src="http://192.168.1.1/WebMonitor?init=guest" type="text/javascript"></script>
</head>
<body>
<div id="view1" style="width: 500px; height: 400px; border: 1px solid #000000;"></div>
<script type="text/javascript">
//<![CDATA[
var WebMon1 = new WebMonitor();
WebMon1.init('http://192.168.1.1', 'view1', 0);
//]]>
</script>
<p/>
<div id="view2" style="width: 500px; height: 400px; border: 1px solid #000000;"></div>
<script type="text/javascript">
//<![CDATA[
var WebMon2 = new WebMonitor();
WebMon2.init('http://192.168.0.2:8080/WebMonitor/', 'view2', 0);
//]]>
</script>
</body>
</html>
©2006 TackTech,Inc.