<html>
<head>
<script language="JavaScript">
<!--
var i = 0;
var j = 0;
var urls1 = new Array();
urls1[0] = "http://www.cnn.com";
urls1[1] = "http://www.yahoo.com";
var urls2 = new Array();
urls2[0] = "http://www.slashdot.org";
urls2[1] = "http://www.sina.com.cn";
function doSwitch(use_list) {
var o = document.getElementById("dyn");
if(o != null) {
if(use_list == 1)
o.src = urls1[i++%2];
else
o.src = urls2[j++%2];
o.refresh();
}
}
//-->
</script>
</head>
<body>
<input type="button" value="press me 1!" onClick="javascript: return doSwitch(1);">
<input type="button" value="press me 2!" onClick="javascript: return doSwitch(2);">
<iframe id="dyn" src="url"></iframe>
</body>
</html>
<head>
<script language="JavaScript">
<!--
var i = 0;
var j = 0;
var urls1 = new Array();
urls1[0] = "http://www.cnn.com";
urls1[1] = "http://www.yahoo.com";
var urls2 = new Array();
urls2[0] = "http://www.slashdot.org";
urls2[1] = "http://www.sina.com.cn";
function doSwitch(use_list) {
var o = document.getElementById("dyn");
if(o != null) {
if(use_list == 1)
o.src = urls1[i++%2];
else
o.src = urls2[j++%2];
o.refresh();
}
}
//-->
</script>
</head>
<body>
<input type="button" value="press me 1!" onClick="javascript: return doSwitch(1);">
<input type="button" value="press me 2!" onClick="javascript: return doSwitch(2);">
<iframe id="dyn" src="url"></iframe>
</body>
</html>