请教JSP高手

来源:百度知道 编辑:UC知道 时间:2024/06/20 13:58:31
请帮我看看下边的程序哪里出现错误。为什么系统提示
window.open(list[page],"Random-Page");
这一行参数有问题。
谢谢!!

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Example 5.2</title>
<SCRIPT LANGUAGE="JavaScript">
<!--hide from other browsers
function urlList(a,b,c,d,e){
//define five-element object
this[0]=a;
this[1]=b;
this[2]=c;
this[3]=d;
this[4]=e;
}
function selectPage(list){
//select random page
var today=new Date();
var page=today.getSeconds()%5;
//make page an integer(get rid of the stuff after the decimal point)
//open page

Java脚本不太懂
choices=new urlList("http://www.sohu.com",
这句我不太明白,不过那不是JSP的问题,是脚本问题,可能你把JSP的写法写在脚本上了,脚本和JSP有点不一样。