【www.gdgbn.com--js教程】

function setobj(obj)
{
for (i=1; i {
 var iscontinue=true;
 if (parent.chatform.document.forms[0].object.options[i].value==obj)
 {
  parent.chatform.document.forms[0].object.selectedIndex = i;
  iscontinue=false;
  break;
 }
}
if (iscontinue==true)
{
 var oOption = parent.chatform.document.createElement("OPTION");
 parent.chatform.document.forms[0].object.add(oOption, 1);
 parent.chatform.document.forms[0].object.options[1].value=obj;
 parent.chatform.document.forms[0].object.options[1].text=obj;
 parent.chatform.document.forms[0].object.selectedIndex=1;
 parent.chatform.document.forms[0].putwords_temp.focus();
}
}
function gotop(isrefresh)
{
 if (window==top)
 {
  top.location.href="chat.asp?ntime=<%=ntime%>";
 }
}
//-->

本文来源:http://www.gdgbn.com/wangyezhizuo/13577/