<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> JAVASCRIPT </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE="JavaScript">
<!--
function NewArrary(Size)
{
if (size > 0)
{
this.length = size;
for (var i=1; i<=size; i++)
{
this[i] = "0";
}
return this;
}
}
function MakeArrary(Size)
{
if (Size > 0)
{
var num = Size + 2
var Msg = new NewArrary(num);
for (var i=1; i<=Size; i++)
{
var storyNum = "story"+ i;
var article = "Article #";
Msg[storyNum] = article + i;
}
Msg["index"] = "Return to the conver!";
Msg["expand"] ="Remove the Button!";
}
return Msg[Size];
}
ClearId = 0;
function Message(StoryNum,URL,Size)
{
window.alert(StoryNum);
if (ClearId)
{
clearTimeout(ClearId);
}
window.alert(StoryNum);
Msg[Size] = new MakeArrary(Size);
window.parent.frames["HELP"].document.forms[0].helping.value = Msg[StoryNum];
//window.parent.frames['HELP'].document.forms['FRM'].helping.value = 1;
window.parent.status = URL;
ClearId = setTimeout("window.parent.frames['HELP'].document.forms[0].helping.value=''",5000);
}
function hrefMsg(Size)
{
if (Size > 0)
{
for (var i=1; i<=Size-2; i++)
{
var storyNum="";
var storyUrl="";
var storyNum2="";
storyNum = "story" + i;
storyUrl = storyNum + ".html";
storyLocation = "" + window.location;
document.write("<CENTER>");
//window.alert("<A HREF="+ storyUrl +" TARGET='MAIN' ONMOUSEOVER='Message("+'"'+storyNum+'"'+","+ '"'+window.location+'"' +");return true;'>");
//window.alert("ONMOUSEOVER='Message( storyNum ,"+ window.location+");return true;'");
document.write("<A HREF="+ storyUrl +" TARGET='MAIN' ONMOUSEOVER='Message( "+'"'+storyNum+'"'+","+'"'+ window.location +'"'+");return true;'>\r\n");
//var str = '<A HREF="'+ storyUrl +'" TARGET="MAIN" ONMOUSEOVER="Message('+storyNum+','+storyLocation+');return true;">';
//var str = "<A HREF='"+ storyUrl +"' TARGET='MAIN' ONMOUSEOVER='Message(storyNum,storyLocation,5)'>";
//window.alert(str);
//document.write(str);
//document.write("<A HREF="+ storyUrl +" TARGET='MAIN' ONMOUSEOVER='Message(" + "'"+storyNum +"'"+","+this.href+");'>");
document.write(storyNum);
document.write("</A>");
document.write("</CENTER>");
document.write("<HR SIZE=2 WIDTH=25% ALIGN = CENTER>");
}
}
}
//-->
</SCRIPT>
</HEAD><BODY BGCOLOR = #FF0000 onload=hrefMsg(7)>
<CENTER>
<FONT SIZE="3" COLOR="#000000">
<STRONG>
CONTENTS!
</STRONG>
</FONT>
</CENTER>
</BODY>
</HTML>
--------------
没有问题啊????