当前位置: 代码迷 >> Java Web开发 >> 在线 E话通在JSP中的调用
  详细解决方案

在线 E话通在JSP中的调用

热度:75   发布时间:2016-04-17 16:00:29.0
在线求助 E话通在JSP中的调用
E话通在ASP中通过以下JS调用
<td   width= "40% "> <a   href= "# "   onclick= "start( 'CLASS_EPH_PTP_CHAT_12/19/2003   9:57 ', '271447 ', 'E话通 ', '61.153.32.115 ', '8037 ', '用户聊天室 ', 'E话通 ', '10 ', '4 ', '0 ') "> 婚姻家庭 </a> </td>
而同样的以上的代码在JSP中却不能调用,提示缺少对像‘ephchat’
 其JS代码如下:

<SCRIPT   LANGUAGE= "JavaScript ">
<!--
function   killErrors()   {  
return   true;
window.onerror   =   killErrors;
}  
//-->
</SCRIPT>
<SCRIPT   language= "vbscript ">
Sub   start(ServerTypeName,roomid,roomname,ServerName,ServerPort,RoomTypeName,RoomDescription,RoomMaxOnlineUser,RoomMaxMike,eskytype)
  ephchat.SetCommandType( "start ")
  ephchat.SetServerType(ServerTypeName)
  ephchat.SetRoomTypeName(RoomTypeName)
  ephchat.SetRoomInfo(RoomDescription)
  ephchat.SetMaxUserAmount(RoomMaxOnlineUser)
  ephchat.SetMaxMikeAmount(RoomMaxMike)
                ephchat.SetChatName(roomname)
                ephchat.SetPort(ServerPort)
                ephchat.SetIPAddr(ServerName)
                ephchat.SetRoomID(roomid)
                ephchat.SetESkyType(eskytype)
                ephchat.SendMessage()
end   Sub
Sub   AddRoom(ServerTypeName,roomid,roomname,ServerName,ServerPort,RoomTypeName,RoomDescription,RoomMaxOnlineUser,RoomMaxMike,eskytype)
  ephchat.SetCommandType( "add ")
  ephchat.SetServerType(ServerTypeName)
  ephchat.SetRoomTypeName(RoomTypeName)
  ephchat.SetRoomInfo(RoomDescription)
  ephchat.SetMaxUserAmount(RoomMaxOnlineUser)
  ephchat.SetMaxMikeAmount(RoomMaxMike)
                ephchat.SetChatName(roomname)
                ephchat.SetPort(ServerPort)
                ephchat.SetIPAddr(ServerName)
                ephchat.SetRoomID(roomid)
                ephchat.SetESkyType(eskytype)
                ephchat.SendMessage()
end   Sub
</script>
</head>
<SCRIPT   language=javascript>
var   move
var   initint
initint=0



try
{
var   objCheckqtt;
objCheckqtt   =   new   ActiveXObject( "EtelChek.Application.1 ");
function   MakeCallqtt(userID)
{
if((objCheckqtt   !=   null   )&&(objCheckqtt.IsRunning))
{
objCheckqtt.MakeCall( 'c0086 ', 'c268 ',userID);
}
else
{
window.open( "http://www.c22.cn/webcom/main.asp?remotecountryid=c0086&remoteareaid=c268&remoteuserid= "+userID, 'WDETEL ', 'width=523,height=298,resizeable=0 ');
}
}
}
catch(e)
{
}
drag   =   0
move   =   0
        window.document.onmousemove   =   mouseMove
        window.document.onmousedown   =   mouseDown
        window.document.onmouseup   =   mouseUp
  相关解决方案