多frames页面,怎么控制??200分吧!(200分)

  • 主题发起人 主题发起人 王晓明
  • 开始时间 开始时间

王晓明

Unregistered / Unconfirmed
GUEST, unregistred user!
我没事想做个软件,就是聊天室的自动发言控制,我想用Twebbrowser做,大部分
的软件都是用模拟键盘的,可如果用webbrowser模拟键盘sendkey不好用,但用
IHTMLDocument2,我业余编程,不大懂。简单的页面元素input我会提交,可对于新
浪聊天室原吗里没有input之类的,大多是frame,
像这个{http://chatxa14.sina.com.cn/cgi-bin/chat/go?channel=情系济南}
可原吗中我看到有个http:{//chatxa14.sina.com.cn/chat/say.html#},这个网页里有input
、value之类的,我打印出来是九页代码(别笑我呀,我都不知道这叫什么元素),这怎么“接口”呀,怎么控制??
大家帮帮忙,我有很多分给大家!~
[blue][/blue][:)]

 
也是用的 Input !!!!!!!!!1

<html> <head>
<title>新浪聊天</title>
<meta http-equiv="content-type" content="text/html; charset=GBK">

<style type="text/css">
p,td,th,input,select {font-size:12px;}
.c {font-size:2px;}
.ch0 {font-size:12px; background-color:#56930f;}
.ch1 {font-size:12px; background-color:#e1fbc1;}
.ch2 {font-size:12px; background-color:#56930f; color:#ffffff}
.ch3 {font-size:12px;}
A:link {text-decoration: none; color:#fffff}
A:visited {text-decoration: none; color:#ffffff}
A:active {text-decoration: none}
A:hover {text-decoration: none; color:#ff0000}
#chatobject {position: absolute;z-index:1;visibility:visible;left:110;top:9;width:300;font-size:12px;}
#facediv {position: absolute;z-index:2;visibility:hidden;left:85;top:9;width:300;font-size:12px;}
#actdiv {position: absolute;z-index:2;visibility:hidden;left:85;top:9;width:300;font-size:12px;}
.c0{background-color:#FFFFFF}.c1{background-color:#000000;color:#FFFFFF}.c2{background-color:#000099;color:#FFFFFF}.c3{background-color:#009900;color:#FFFFFF}.c4{background-color:#FF0000;color:#FFFFFF}.c5{background-color:#990000;color:#FFFFFF}
.c6{background-color:#990099;color:#FFFFFF}.c7{background-color:#999900;color:#FFFFFF}.c8{background-color:#FFFF00}.c9{background-color:#00FF00}.c10{background-color:#009999}.c11{background-color:#00FFFF}.c12{background-color:#0000FF;color:#FFFFFF}.c13{background-color:#FF00FF;color:#FFFFFF}.c14{background-color:#999999;color:#FFFFFF}.c15{background-color:#CCCCCC;color:#FFFFFF}

</style>

<script language="javascript" src="/chat/filter.js"></script>
<script language="javascript" src="/chat/combofilter.js"></script>

<script language=javascript>
var times = 0; //在限定时间内发言的次数
var pTime = 0; //上一次发言的时间
var maxTime = 5; //在限定时间内,允许的发言次数
var timeStep = 6000; //允许的时间间隔
var alarmNum =0;

function checkTimes(){
var t=new Date();
if(pTime == 0) pTime = t.getTime();
var cTime = t.getTime();
if(cTime - pTime < timeStep){
if(++times > maxTime){
overTime();
pTime = t.getTime();
times = 0;
return false;
}
}else{
pTime = t.getTime();
times = 0;
}
return true;
}

function overTime(){
alarmNum++;
alert("请不要在" + timeStep/1000 + "秒钟内超过" + maxTime + "次发言 ,谢谢 !");
if(alarmNum==3) { top.close(); alarmNum=0;}
}
</script>

<script language=javascript>
ns = (navigator.appName == "Netscape");

divout=true
word="";
var length;
var tmp;
tmp="";


length=50;

myimg=new Array(8)
myimg[0]=new Image()
myimg[0]="/images/c.gif"
for (i=1;i<8;i++)
{
myimg=new Image()
eval("myimg='/images/face"+i+".gif'")
}


function mytempout(my_tag)
{
if(my_tag) document.sb.goout.checked=!document.sb.goout.checked;
mytempout1(document.sb.goout.checked);
}

var aaa=0;

function mytempout1(e)
{
var tag=top.tag;
var channelName=document.sb.channel.value;
var gogo=top.chatcgi+"?job=away&tag="+tag+"&mk="+top.mem+"&says=%2Faway";

aaa++;
if(e) gogo = gogo + "+离开一会,马上回来!";
parent.senddata.location.href=gogo+"&aaa="+aaa;
return false;
}


function my()
{

if(document.sb.mode.checked)
document.sb.mode.checked=false;
else
document.sb.mode.checked=true;
return false;
}

function list_channel()
{
var hrefway=top.chatcgi+"?job=list&tag="+top.tag+"&mk="+top.mem;
top.setlist(false);
top.senddata.location.href=hrefway;
}

function openhelp()
{
var helpWin=window.open("http://chat9.sina.com.cn/chat/irchelp.html","helpwin","top=50,left=150,height=350,width=500,toolbar=0,location=0,directories=0,menubar=0,scrollbars=yes,resizable=yes,status=0");
}


function kill() {

if(ns)
{
if(!confirm('Do you want exit this Chat Room ? please press[yes]/n If want continue your Chat please press [no]'))
{return false;}

}
else
{
if(!confirm('你确定要离开聊天室吗?请点[确定]/n还是再接着聊?请点[取消]'))
{document.sb.con.focus(); return false;}
}

var tag=top.tag;
var channelName=document.sb.channel.value;
var gogo=top.chatcgi+"?job=quit&tag="+tag+"&mk="+top.mem+"&says=%2Fquit";
parent.senddata.location.href=gogo;
return false;
}

function alarm() {

if(ns)
{
if(!confirm('Do you want alarm to sina admin? please press[yes]/n If want continue your Chat please press [no]'))
{document.sb.con.focus(); return false;}

}
else
{
if(!confirm('你确定要给新浪管理员发警报吗?请点[确定]/n还是再接着聊?请点[取消]'))
{document.sb.con.focus(); return false;}
}

var tag=top.tag;
var channelName= "/004"+document.sb.channel.value;
var gogo="http://chat27.sina.com.cn/cgi-bin/alarm/alarm?tag="+tag+"&channel="+channelName;
parent.senddata.location.href=gogo;
return false;
}

function OnFontColorChanged()
{
document.sb.con.focus();
if (document.sb.fcolor.options[document.sb.fcolor.selectedIndex].value.length==7){
var temp=document.sb.fcolor.options[document.sb.fcolor.selectedIndex].value;
if(!ns)
document.sb.con.style.color=temp;
}
document.sb.color.value=document.sb.fcolor.selectedIndex;
if(document.sb.color.value<0)
document.sb.color.value=1;

return;
}

function filter(str)
{
var go;
go=top.chatcgi+"?job=egnor&tag="+top.tag+"&channel="+top.channel+"&mk="+top.mem+"&says="+str;
if(str==0) return;
else if((str=="filter" || str=="unfilter") && document.inp.say.value!="大家" && document.inp.say.value!="")
{
go=go+"&say="+document.inp.say.value;
parent.senddata.location.href=go;
}
else if(str=="filterlist")
{
parent.senddata.location.href=go;
}
else
return ;

for(var i=0;i<document.sb.filters.length;i++)
document.sb.filters.options.selected=false;
document.sb.filters.options[0].selected=true;
document.sb.con.focus();
}

function sendcmd(cmd)
{
document.sb.says.value=cmd;
document.sb.submit();
}

function dopage(str)
{

var go;
go=top.chatcgi+"?job=switch&tag="+top.tag+"&channel="+top.channel+"&mk="+top.mem+"&say="+str;
if(str==64) return;

parent.senddata.location.href=go;
for(var i=0;i<document.sb.switchpage.length;i++)
document.sb.switchpage.options.selected=false;
document.sb.switchpage.options[0].selected=true;
document.sb.con.focus();
}

function getCookieVal (offset)
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}

function checkSetCookie()
{
var oneDay= 1*24*60*60*1000;
var expDate = new Date();
expDate.setTime (expDate.getTime() + oneDay);
var cookieExpires = expDate.toGMTString();
var passwd=Math.random();

document.cookie="passwd="+passwd+";expires="+cookieExpires;

if(GetCookie('passwd')==passwd) return 0;
else return -1;
}

function mysm()
{

if(checkSetCookie()==-1)
{
alert("您的浏览器安全级别设置过高,请恢复浏览器默认级别安全设置。");
return false;
}

if(!checkTimes()) {return false;}
if(!top.wukong)
{document.sb.con.value=""; return false;}
document.sb.face.value=document.sb.face1.selectedIndex;
document.sb.act.value=document.sb.act1.selectedIndex;

document.sb.say.value=document.inp.say.value;

if(document.inp.say.value =="大家") {document.sb.say.value="";}
document.sb.act1.selectedIndex=0;
document.sb.face1.selectedIndex=0;

// keyword filter
tmp = document.sb.con.value;
tmp = tmp.replace(keyword,"");
if (tmp != document.sb.con.value)
{
alert("请注意你的发言用词,谢谢合作。");
return;
}

// combo keyword filter
var combo;
var result;
tmp = document.sb.con.value;
var combos = combofilter.split( "/" );
for ( var i=0; i<combos.length; i++ )
{
if ( combos != "" )
{
result = 1;
combo = (combos).split( ";" );

for ( var j=0; j<combo.length; j++ )
{
if ( combo[j] != "" )
{
if ( tmp.indexOf(combo[j]) == -1 )
{
result = 0;
break;
}
}
}

if ( result == 1 )
{
alert( "请注意你的发言用词,谢谢合作。" );
return;
}
}
}

// continue
var j=tmp.length;
if(j==0)
{
document.sb.con.focus();
return false;
}

var len;
var len1;
var tmp1="";
len1 = 0;
var i= 0;
while(length<(tmp.length-length*i))
{
tmp1=tmp1+tmp.substr(i*length,length)+" ";
i++;
}
tmp=tmp1+tmp.substr(i*length,tmp.length-length*i);


if(tmp == "/quit")
{
if(ns)
{
if(!confirm('Do you want exit this Chat Room ? please press[yes]/n If want continue your Chat please press [no]'))
{return false;}

}
else
{
if(!confirm('你确定要离开聊天室吗?请点[确定]/n还是再接着聊?请点[取消]'))
{document.sb.con.focus(); return false;}
}
}

if((tmp.substr(0,5)).toUpperCase()=="/NICK")
{
if(tmp.length>18)
{
alert("改名--新名字字节不能超过12个");
document.sb.con.value='/nick ';
document.sb.con.focus();
return;
}

if(ns)
{
var filter=new RegExp( "<|>", "g" );
}
else
{
var filter = keyword;
}

tmp=tmp.replace(filter,"X");
}

while (tmp.indexOf(";")!=-1)
tmp=tmp.replace(";",";")
while (tmp.indexOf(":")!=-1)
tmp=tmp.replace(":",":")

var len;
//while((len=tmp.indexOf("。。。。。"))!=-1) tmp=tmp.substr(0,len+1);
//while((len=tmp.indexOf("!!!!!"))!=-1) tmp=tmp.substr(0,len+1);
//while((len=tmp.indexOf("?????"))!=-1) tmp=tmp.substr(0,len+1);
//while((len=tmp.indexOf(",,,,,"))!=-1) tmp=tmp.substr(0,len+1);

if( (word == tmp) && (tmp.charAt(0)!='/') )
{
document.sb.con.value='';
if(ns)
alert("don't say again")
else
alert("请不要重复发言");
document.sb.con.focus();
return false;
}

//must gender
var tmpstr = new String(tmp);
var cmd = new String( (tmpstr.substr(0,5)).toUpperCase());

if( cmd=='/NICK' )
{
var newnick = tmpstr.substr(6);
tmp = '/nick ' + top.getgender(top.self_name) + "*" + newnick;
}

//adminsay confirm
tmpstr = new String(tmp);
cmd = new String( (tmpstr.substr(0,9)).toUpperCase());

if( cmd=='/ADMINSAY' )
{
if( !confirm("警告:管理员发言只用于发布通告,警告捣乱者及其它管理工作。任何私人行为不允许使用管理员发言,你所有的管理员发言都会被系统记录,你确定你要使用管理员发言吗?") )
{
return;
}
}

//kickip confirm
tmpstr = new String(tmp);
cmd = new String( (tmpstr.substr(0,7)).toUpperCase());

if( cmd=='/KICKIP' )
{
if( !confirm("警告:该项操作涉及到用户IP地址,请谨慎使用!只能用于驱逐发布违反我国法律法规的言论,严重干扰用户正常聊天,经劝告无效的用户。你所做的“禁止登录”操作会被系统记录备案,确定要使用该项功能吗?") )
{
return;
}
}

word=tmp;
document.sb.says.value=word;
document.sb.con.value='';
document.sb.con.focus();

document.sb.chattag.value=top.encode();

//return true;
document.sb.submit();
document.sb.chattag.value="sinachat";
}

</script>
<script language=javascript>

function set_channel(chan)
{
parent.channel=chan;
document.sb.channel.value=chan;
}

var say_onload=false;

function init()
{
if(ns)
alert("新浪聊天室的部分功能目前只支持IE系列浏览器,很抱歉给你带来不便。");

top.set_nick();
document.sb.action=top.chatcgi;
document.sb.mk.value=top.mem;
say_onload=true;
document.sb.con.focus();
}
function top_kill()
{
var gogo=top.chatcgi+"?job=quit&tag="+top.tag+"&says=top_quit";
eval("my_winsh=window.open(gogo,'my_winsh','width=1, height=1,top=0,left=0, toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');");
}

function myscroll(tag){
if(tag==1) document.sb.scroll.checked=!document.sb.scroll.checked;
parent.chatwin.scrollStop();
}

function do_command(j)
{
//SMSACTION
if(document.sb.command[j].options[document.sb.command[j].selectedIndex].value == "smsaction")
{
top.smsact();
document.sb.command[j].selectedIndex=0;
return false;
}

//NICK
else if(document.sb.command[j].options[document.sb.command[j].selectedIndex].value == "_nick")
{
changenick();
document.sb.command[j].selectedIndex=0;
return false;
}

//正常命令
else
{
var c;
var l,l1;
check=1;
var i=document.sb.command[j].length;
i=document.sb.command[j].selectedIndex
c=document.sb.command[j].options.value;
if(c=="")
return false;
l1=c.length;
l=c.substr(0,1);
if(l=="_")
{
c=c.substr(1,l1-1);
document.sb.con.value="/"+c+" ";
}
else
{
c="/"+c;
document.sb.con.value=c;
}
document.sb.command[j].selectedIndex=0;
document.sb.con.focus();
return false;
}
}

function smsaction(no,pwd,action,towho,msg)
{
document.sb.says.value = "/smsaction " + top.trim(no) + " " + top.trim(pwd) + " " + top.trim(action) + " " + top.trim(towho) + " " + top.trim(msg);
document.sb.submit();
}


document.onkeydown=kdown;

function kdown()
{
if (event.keyCode==78&&event.ctrlKey)
return false;
}

function ad()
{
window.open('http://simbaby.sina.com.cn/images/banner/1/go.asp','shuchang','width=400,height=300');
}

</script>
</head>
<body id=say2 leftmargin=0 rightmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='init();window.setTimeout( "dopage(32)", 2000);window.setTimeout( "my()", 1000);window.setTimeout( "ad()", 3000);' onunload='top_kill()'>
<script language=javascript>document.bgColor = parent.cc[6];</script>
<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#ff89ac>
<tr><td class=c bgcolor=#81cca2><br></td></tr>
<tr><td bgcolor=#3e885d><img src=/images/c.gif width=1 height=1></td></tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr><td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<form name=inp>
<tr bgcolor=#ffffff><td width=70><img src=images/c.gif width=70 height=1></td><td width=70><img src=images/c.gif width=63 height=1></td><td width=100%><img src=images/c.gif width=1 height=1></td></tr>
<tr id=say1><script language=javascript>document.all.say1.bgColor = parent.cc[5];</script><td height=26> <font color=#ffffff><b>我</b>  对</font></td><td>
<input type=hidden name=say size=16 maxsize=16 value='大家'><div id='towho' style="width:3.5cm">大家</div>
</td>
</form>
<form name=sb method=POST action='' target=senddata onsubmit='javascript:mysm();return false;'>
<!--<form name=sb method=POST action='' target=senddata onsubmit=return(mysm())>-->
<input type='hidden' name='job' value='write'>
<input type='hidden' name='tag' value=''>
<input type='hidden' name='chattag' value='sinachat'>
<input type='hidden' name='say' value=''>
<input type=hidden name='channel' value=''>
<input type=hidden name='says' value=''>
<input type=hidden name='face' value=''>
<input type=hidden name='act' value=''>
<input type=hidden name='mk' value=''>
<input type=hidden name='color' value='1'>
<td>
<select name=filters onchange='javascript:filter(this.options[selectedIndex].value)' class=p1>
<option value=0>过滤功能</option>
<option value=0>--------</option>
<option value=filter>屏蔽此人</option>
<option value=unfilter>解除屏蔽</option>
<option value=filterlist>显示名单</option>
</select><select name=act1 size=1>
<option value=0>语态>></option>
<option value=1>温柔</option>
<option value=2>笑</option>
<option value=3>同情</option>
<option value=4>依恋</option>
<option value=5>神秘</option>
<option value=6>幸灾乐祸</option>
<option value=7>哭着</option>
<option value=8>傻忽忽</option>
<option value=9>很无辜</option>
<option value=10>慢条斯理</option>
<option value=11>不精打彩</option>
<option value=12>严肃</option>
<option value=13>生气</option>
<option value=14>撅嘴</option>
<option value=15>动情</option>
<option value=16>晦气</option>
<option value=17>气愤</option>
<option value=18>眼泪</option>
<option value=19>拥吻</option>
<option value=20>想想</option>
<option value=21>伤心</option>
<option value=22>羞涩</option>
<option value=23>激动</option>
<option value=24>兴奋</option>
<option value=25>窘迫</option>
<option value=26>幸福</option>
<option value=27>不高兴</option>
<option value=28>天真</option>
<option value=29>阴险</option>
</select><select name=fcolor onChange="OnFontColorChanged()" size=1 class=p1>
<option class=c0 value=#FFFFFF>白色</option><option class=c1 selected value=#000000>黑色</option><option class=c2 value=#000099>深蓝</option><option class=c3 value=#009900>绿色</option><option class=c4 value=#FF0000>红色</option><option class=c5 value=#990000>暗红</option><option class=c6 value=#990099>紫色</option><option class=c7 value=#999900>橙色</option><option class=c8 value=#FFFF00>黄色</option><option class=c9 value=#00FF00>亮绿</option><option class=c10 value=#009999>深青</option><option class=c11 value=#00FFFF>亮青</option><option class=c12 value=#0000FF>蓝色</option><option class=c13 value=#FF00FF>紫红</option><option class=c14 value=#999999>灰色</option><option class=c15 value=#CCCCCC>银白</option>
</select><select name=face1 size=1><option value=0>贴图</option><option value=1>鬼脸</option><option value=2>思考</option><option value=3>警告</option><option value=4>瞎子</option><option value=5>主意</option><option value=6>气人</option><option value=7>爱情</option><option value=8>好笑</option><option value=9>当心</option><option value=10>不懂</option><option value=11>疑惑</option><option value=12>什么</option><option value=13>倒霉</option><option value=14>反对</option><option value=15>赞成</option><option value=16>害羞</option><option value=17>嘿嘿</option><option value=18>哎</option><option value=19>倒霉</option><option value=20>灯</option><option value=21>电话</option><option value=22>愤怒</option><option value=23>害羞</option><option value=24>呵呵</option><option value=25>花</option><option value=26>坏笑</option><option value=27>酒</option><option value=28>愤怒</option><option value=29>礼</option><option value=30>怒火</option><option value=31>噢</option><option value=32>日</option><option value=33>嘻嘻</option><option value=34>小乖</option><option value=35>心1</option><option value=36>心2</option><option value=37>信</option><option value=38>星</option><option value=39>呀</option><option value=40>牙痛</option><option value=41>音符</option>
</select><input type=checkbox name=scroll value=1 onclick=myscroll(0) checked><a href=# onclick=myscroll(1)>滚屏</a>

<input type=checkbox name=fen value=yes onclick=dopage(32)><a href=# onclick=dopage(32)>分屏</a> <a href=# onclick='javascript:changenick();return false;'>过客改名</a>
</font>
<!--<font color=blue>请用"离开"键退出-->
</td></tr>
<tr><td height=26> <font color=#ffffff>要说的话</font></td><td colspan=2>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td><input type=text size=58 maxlength=128 name=con> =============================================
^<<<<<<<<<<<也是用的Input

<input type=checkbox name=mode value=1><font color=#ffffff><a href=# onclick=my()>私聊</a> <input type=submit name=yy value="发言"> <input type=button name=xx value="离开" onclick=return(kill());><!--<input type=button name=xy value='报警' onclick=return(alarm());>--> </td></tr>
</table></td></tr>
<tr><td height=22> <font color=#ffffff>工具区</font></td><td colspan=2>
<select name=switchpage onchange='javascript:dopage(this.options[selectedIndex].value)'>
<option value=64>过滤配置</option>
<option value=8>出入信息</option>
<option value=4>语态</option>
<option value=2>颜色</option>
<option value=1>贴图</option>
<option value=16>过客的话</option>
<option value=32>分开屏幕</option>
<option value=5>全过滤</option>
<option value=3>全恢复</option>
<option value=0>配置状态</option>
</select><select name=changeColor onchange=parent.changeColor(this.selectedIndex)><option value=0>界面换色</option><option value=1>方案一</option><option value=2>方案二</option><option value=3>方案三</option><option value=4>方案四</option><option value=5>方案五</option><option value=6>方案六</option><option value=7>默认色</option>
</select><select size=1 name=command onchange="return(do_command(0))">
<option value=0>普通网友命令</option>
<option value='smsaction'>超级会员服务</option>
<option value='_join'>创建新聊天室</option>
<option value='list'>列表聊天室</option>
<option value='_whois'>寻找在线网友</option>
<option value='_invite'>邀请在线网友</option>
<option value='_nick'>在线改名</option>
</select><select size=1 name=command onchange="return(do_command(1))">
<option value=0>管理员命令</option>
<!--
<option value='_topic'>修改房间主题</option>
<option value='_key'>房间加密码</option
<option value='_unkey'>房间取消密码</option>
<option value='set private'>设为私人房间</option>
<option value='unset private'>撤私人房间设置</option>
<option value='set invite'>设为邀请加入</option>
<option value='unset invite'>撤邀请加入设置</option>
<option value='set moderate'>设为管理员发言</option>
<option value='unset moderate'>取消管理员发言</option>
<option value='_limit'>设置用户数限制</option>
<option value='unlimit'>取消用户数限制</option>
<option value='_admin'>授予管理员权限</option>
-->
<option value='_kick'>将某人赶出房间*</option>
<option value='_ban'>设为不欢迎人士*</option>
<option value='_unban'>取消不欢迎设置*</option>
<option value='_listban'>不欢迎人士列表*</option>
<option value='_shutup'>暂时禁止发言*</option>
<option value='_kickip'>暂时禁止登录*</option>
<!--<option value='_adminsay'>管理员发言*</option>-->
</select>

<script lanuage=javascript>
<!--
function nick(gender,nickname)
{
if(ns)
var filter=new RegExp( "<|>", "g" );
else
var filter = keyword;

if(nickname.length>12)
{
alert("改名--新名字字节不能超过12个");
return;
}

nickname=nickname.replace(filter,"X");

var nowgen = (top.self_name).charAt(0);
if( nowgen>='A' && nowgen<='Z' )
gender = gender.toUpperCase();

document.sb.says.value="/nick "+gender+"*"+nickname;
document.sb.submit();
}

function changenick()
{
var nickwin=window.open("","nickwin","top=50,left=150,height=30,width=300,toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=yes,status=0");
nickwin.document.open("text/html");
nickwin.document.writeln("<html><head><title>改名</title>");
nickwin.document.writeln("<style type='text/css'>");
nickwin.document.writeln(".ch {font-size:12px;}");
nickwin.document.writeln("</style></head><body bgcolor=#e1fbc1>");
nickwin.document.writeln("<script language=javascript>function decidesex(){for(var i=0;i<3;i++){if( document.n.sex.checked ){return document.n.sex.value;}}}</script>");
nickwin.document.writeln("<form action='"+top.chatcgi+"' target='opener.parent.senddata' onsubmit=/"javascript:opener.nick(decidesex(),document.n.nick.value); window.close(); return false;/" name=n>");
nickwin.document.writeln("改为:<input type=text name=nick size=12 maxlength=20 class=='ch'>");
nickwin.document.writeln("<input type=submit value=确定 class='ch'>");
nickwin.document.writeln("<input type=button value=取消 class='ch' onclick=/"javascript:window.close(); return false;/">");
nickwin.document.writeln("<br><br>选择性别:<input type=radio name=sex value='c' checked>女 <input type=radio name=sex value='b'>男 <input type=radio name=sex value='a'>保密");
nickwin.document.writeln("</form></body></html>");
nickwin.document.close();
}
-->
</script>

<a href=# onclick="top.setlist(false); list_channel();return false" target='senddata'>聊天室列表</a> <a href=# onclick="top.list_whois(); return false">她(他)是谁</a> <a href=# onclick="openhelp();return(false)">帮助</a>


</td></tr>
</form>
</table></td></tr>
</table>

</body>
</html>

 
jsxjd,我晕啊,这个我知道,我都打印出来了。我是问怎么调用的啊!~
当前页面是http://chatxa14.sina.com.cn/cgi-bin/chat/go?channel=情系济南
可怎么去用其中一个frame的连接http://chatxa14.sina.com.cn/chat/say.html#
???你就帮帮忙咯....
 
我刚才查看以前的帖子好像有人说
“是否有些网页是包含FRAME 格式的呀!好象有FRAME格式的暂时我没有办法处理!”
不知道现在能处理吗,不能我就放弃了.........
 
谢谢jsxjd,这个问题我已经解决了,但是如何屏蔽新浪聊天室的弹出窗口!~
我用onnewwindow2,老是提示脚本运行错误
 
jsxjd,自动提交我已经解决了,但你提供给我的代码中新浪有很多限制,比如说cookies等,
还有重复发言,怎么摆脱它们???
 
问题解决了才知道这么简单,给分了....
 
后退
顶部