layout.js复制代码
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <!-- saved from url=(0310)http://vip.tq.cn/vip/leavemsg.do -->
- <HTML><HEAD>
- <META content=IE=EmulateIE7 http-equiv=X-UA-Compatible>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <SCRIPT>
- //2010-11-20 加tag参数
- //2010-11-30 加leavemsg_welcome
- //2011-01-11加rand参数
- //2011-01-19加代理定制需求
- //2011-02-21加siteid
- //2012-1-12统一推广链接参数
- //2012-8-12留言页中也支持标签
- //2012-9-4加是否显示TQlogo的功能
- //2012.12.19加手机版
- var isPreview = false;//说明是预览
- if(isPreview)
- {
- document.write('<scr'+'ipt language="javascript" src="js2010/getpreviewpara.js"></s'+'cript>');
- }
- else
- {
- ///*
- //2011.04.12加自定义留言字段功能
- var items = [];
- //2011-01-19加代理定制需求
- var agentid="0";
- var chat_logo = "";
- var logoLink = "";
- var card_url = "";//代理定制设置的名片
- var siteid = "";
- var ltype="1";
- var iscallback="1";
- var tq_right_infocard_url="";//嵌入代码中设置的名片
- var struin="9427669";
- var is_chat_win_size = "0";
- var chat_win_w="0";
- var chat_win_h="0";
- var adminuin = "9427669";
- var clientid = "";
- var clientname = "";
- var para1 = "";
- var para2 = "";
- var para3 = "";
- var para4 = "";
- var para5 = "";
- //10.05.25
- var type_code ="";
- var comtimes="1";
- var spage="";
- var rand="86376897402886632";
- var page="";
- var localurl="http://hg8048.com/";
- var keyword = "";
- //2010-10-01
- var is_defined_infocard = "0";
- var leavemsg_welcome = "";
- var leavemsg_welcome_en = "";
- var infocard_url="";//会话页面中设置的名片
- var logo_area_style = "0";
- var is_defined_logo = "0";
- var logo_img = "";
- var mp_title = "";
- var mp_title_en = "";
- var infocard_bg_style="1";
- var infocard_bg_trans="80";
- var bg_type="0";
- var bg_style="1";
- var bg_img="";
- var color_rgb="8AA2DF";
- var top_bg_style = "0";
- var top_bg_trans="80";
- var style="2";
- var sendbutton_style ="6";
- var card_templete_id = "0";
- var action = "leavemsg";
- var tag = "call";
- var is_weibo = "0";
- var weibo_id = "";
- var weibo_verifier = "";
- var is_weibo_follow = "0";
- var weibo_name="";
- var weibo_url="";
- var weibo_uid="";
- var access_token = "";
- var is_brandlogo = "1";
- if(is_brandlogo == "")
- is_brandlogo = 1;
- //2012-8-29
- var is_robot = "0";
- var sendbutton_style = 1;
- var toolsbar_bg_style = 0;
- var toolsbar_bg_trans = 80;
- var is_top_menu = "1";
- var is_top_menu_selected_color = "0";
- var top_menu_selected_color = "c20f17";
- var is_top_menu_color = "0";
- var top_menu_color = "ffffff";
- var cp_title = "";
- var cp_title_en = "";
- var is_welcome_msg= "0";
- var welcome_msg = "";
- var welcome_msg_en = "";
- var buttonsflag = "";
- var imgPath = "http://sysimages.tq.cn/images/webchat_101001/";
- if(style == "" || style == "0")
- style = 2;
- if(color_rgb == "")
- color_rgb = "a5bbfd";
- if(top_bg_trans == "" || top_bg_trans == "0")
- top_bg_trans = "80";
- if(infocard_bg_trans == "" || infocard_bg_trans == "0")
- infocard_bg_trans = "90";
- //2012.10.13
- var page_templete_id = "48761";
- var robot_logo = "";
- //2011-01-11
- var rand = "86376897402886632";
- var isMobile = "0";
- //*/
- //test code
- /*
- var agentid="0";
- var ltype="0";
- var iscallback="1";
- var struin="1001";
- var leavemsg_welcome = "";
- var leavemsg_welcome_en = "";
- var msg_win_width="";
- var msg_win_height="";
- var adminuin = "8008115";
- var clientid = "34234234";
- var clientname = "";
- var para1 = "";
- var para2 = "";
- var para3 = "";
- var para4 = "";
- var para5 = "";
- //10.05.25
- var type_code ="2";
- var comtimes="2";
- var spage="";
- var rand="4524624";
- var page="";
- var localurl="";
- var keyword = "";
- //在打开会话页面时,首先判断style参数,当没有此参数或值为1时,或值为空时,打开以前的会话页面,即081125版,当style>1时,打开final_cn_101001.htm
- //以下变量要读pageinfo表,且变量不能少,且要放到原先的变量及从url中获取的变量的后面
- var is_defined_infocard = 0;
- var infocard_url="";
- var logo_area_style = 0;
- var is_defined_logo = 0;
- var logo_img = "";
- var mp_title = "";
- var mp_title_en = "";
- var infocard_bg_style=0;
- var infocard_bg_trans=80;
- var bg_type=0;
- var bg_style=1;
- var bg_img="";
- var color_rgb="a5bbfd";
- var top_bg_style = 0;
- var top_bg_trans=90;
- var style=2;
- var sendbutton_style = 1;
- var toolsbar_bg_style = 0;
- var toolsbar_bg_trans = 80;
- var is_top_menu_selected_color = 0;
- var top_menu_selected_color = 80;
- var is_top_menu_color = 0;
- var top_menu_color = "";
- var tag = "leavemsg";
- if(typeof(action) == "undefined")
- var action = "leavemsg";
- */
- //document.write('<scr'+'ipt language="javascript" src="js2010/leavemsg_resouce.js"></s'+'cript>');
- }
- if(typeof(is_weibo)!="undefined" && is_weibo == 1 && typeof(is_weibo_follow)!="undefined" && is_weibo_follow ==1)
- {
- document.write("<SC"+"RIPT src=http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=1377453928><\/SCR"+"IPT>")
- }
- document.write('<scr'+'ipt language="javascript" src="http://sysimages.tq.cn/js/webchat_101001/style.js"></s'+'cript>');
- </SCRIPT>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- TD {
- FONT-SIZE: 12px
- }
- LI {
- LIST-STYLE-TYPE: none
- }
- A {
- COLOR: #0033cc; TEXT-DECORATION: none
- }
- A:hover {
- COLOR: #f00; TEXT-DECORATION: none
- }
- .required {
- PADDING-LEFT: 2px; COLOR: #f00
- }
- UL {
- LIST-STYLE-TYPE: none
- }
- .main {
- PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; FLOAT: left; PADDING-TOP: 0px
- }
- .menu LI {
- TEXT-ALIGN: center; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 100px; PADDING-RIGHT: 0px; DISPLAY: block; BACKGROUND: none transparent scroll repeat 0% 0%; FLOAT: left; MARGIN-LEFT: 4px; CURSOR: pointer; FONT-WEIGHT: bold; PADDING-TOP: 4px
- }
- .menu LI.hover {
- BACKGROUND: #fff; HEIGHT: 20px
- }
- #main UL {
- MARGIN-TOP: 0px; DISPLAY: none; PADDING-TOP: 0px
- }
- #main UL.block {
- DISPLAY: block
- }
- .btn_submit_mouseover {
- BORDER-BOTTOM: #5495c5 1px solid; BORDER-LEFT: #5495c5 1px solid; PADDING-LEFT: 2px; WIDTH: 90px; PADDING-RIGHT: 2px; BACKGROUND: url(images/bt_bg2.jpg) center 50%; HEIGHT: 30px; COLOR: black; FONT-SIZE: 14px; BORDER-TOP: #5495c5 1px solid; CURSOR: hand; FONT-WEIGHT: bold; BORDER-RIGHT: #5495c5 1px solid; PADDING-TOP: 2px
- }
- #appraisePaneBg {
- Z-INDEX: 50; POSITION: absolute; TEXT-ALIGN: center; FILTER: Alpha(opacity=30); BACKGROUND-COLOR: #000000; WIDTH: 100%; HEIGHT: 100%; FONT-SIZE: 12px; VERTICAL-ALIGN: middle; TOP: 0px; LEFT: 0px; opacity: 0.3
- }
- .input_tip {
- WIDTH: 350px; HEIGHT: 21px; COLOR: #bcbcbc
- }
- .input_ok {
- WIDTH: 350px; HEIGHT: 21px; COLOR: #707070
- }
- .input_error {
- BORDER-BOTTOM: #c00000 1px solid; BORDER-LEFT: #c00000 1px solid; WIDTH: 350px; HEIGHT: 21px; COLOR: #c00000; BORDER-TOP: #c00000 1px solid; BORDER-RIGHT: #c00000 1px solid
- }
- .td {
- PADDING-TOP: 2px
- }
- </STYLE>
- <META name=GENERATOR content="MSHTML 8.00.6001.19412"></HEAD>
- <BODY><!--用于填充框架的html-->
- <TABLE style="DISPLAY: none" id=message_table_html>
- <TBODY id=messageHTML>
- <TR style="DISPLAY: none; HEIGHT: 30px" id=callback_bar>
- <TD style="BACKGROUND: #fff" vAlign=top align=left>
- <DIV id=menu class=menu>
- <LI class=hover onmouseover=setTab(0)>免费电话 </LI>
- <LI onmouseover=setTab(1)>在线留言 </LI></DIV></TD></TR>
- <TR>
- <TD style="PADDING-LEFT: 10px; BACKGROUND: #fff" id=callback_td vAlign=top
- align=left>
- <TABLE style="DISPLAY: none" id=errorMSG width="100%" height="100%">
- <TBODY>
- <TR>
- <TD align=middle>
- <DIV
- style="BORDER-BOTTOM: green 0px solid; TEXT-ALIGN: center; BORDER-LEFT: green 0px solid; WIDTH: auto; DISPLAY: block; FONT-SIZE: 12px; BORDER-TOP: green 0px solid; BORDER-RIGHT: green 0px solid"><IMG
- align=absMiddle
- src="请您留言或使用免费电话与我联系 _files/icon_alert.gif">
- 一小时之内使用免费电话不能超过10次,谢谢!</DIV></TD></TR></TBODY></TABLE><!--<iframe name=callbackIframe id=callbackIframe border=0 cellpadding=0 cellspacing=0 width=450 height=330 marginwidth=0 marginheight=0 frameborder=0 scrolling=no ></iframe>-->
- <DIV id=callback_DIV></DIV></TD>
- <TD style="PADDING-LEFT: 10px; DISPLAY: none; BACKGROUND: #fff"
- id=message_td vAlign=top>
- <FORM style="MARGIN: 0px" method=post name=form action=leaveMsg_input.do
- target=sendFrame><INPUT value=hg8444 type=hidden name=strid> <INPUT
- value=9427669 type=hidden name=struin> <INPUT type=hidden name=strds>
- <INPUT value=hg8444@163.com type=hidden name=userEmail> <INPUT value=皇冠客服
- type=hidden name=userName> <INPUT type=hidden name=url_from> <INPUT
- value=http://hg8048.com/ type=hidden name=url_local> <INPUT value=1
- type=hidden name=ispaymoney> <INPUT value=1 type=hidden name=ltype> <INPUT
- value=0 type=hidden name=agentid> <INPUT type=hidden name=com_name> <!--<input type="hidden" name="com_address">--><INPUT type=hidden
- name=adIframe_url> <INPUT type=hidden name=cardframe_url> <INPUT
- type=hidden name=clientid> <INPUT value=86376897402886632 type=hidden
- name=rand> <INPUT type=hidden name=siteid> <INPUT type=hidden
- name=weibo_name> <INPUT type=hidden name=weibo_uid> <INPUT type=hidden
- name=weibo_url> <INPUT value=0 type=hidden name=is_message_sms> <INPUT
- value=0 type=hidden name=is_send_mail>
- <DIV id=fieldContainer></DIV><!--
- <table width="100%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td height="60" id=tip colspan="2" bgcolor="#FFFFFF" style="color:#555" >
- 请填写真实详细信息,我们将第一时间给您答复。
- </td>
- </tr>
- <tr>
- <td align="right" id="words1">您的姓名:</td>
- <td align="left" style="padding-top:2px;">
- <input name="user" id=user type="text" value="" size="50" style="color:#999999; width:350px;">
- </td>
- </tr>
- <tr>
- <td align="right" id="words6">移动电话:</td>
- <td align="left" style="padding-top:2px;">
- <input name="mobile" type="text" id="mobile" size="50" style="color:#999999; width:350px;">
- </td>
- </tr>
- <tr>
- <td align="right" id="words3">固定电话:</td>
- <td align="left" style="padding-top:2px;">
- <input name="phone_head" type="hidden" id="phone_head" size="50" value="" >
- <input name="phone_end" type="text" id="phone_end" size="50" style="color:#999999; width:350px;">
- </td>
- </tr>
- <tr>
- <td align="right" id="words2">电子邮件:</td>
- <td align="left" style="padding-top:2px;">
- <input type="text" name="email" id="email" size="50" style="color:#999999; width:350px;">
- </td>
- </tr>
- <tr>
- <td align="right" id="words10">联系地址:</td>
- <td align="left" style="padding-top:2px;">
- <input type="text" name="com_address" id="com_address" size="50" style="color:#999999; width:350px;">
- </td>
- </tr>
- <tr>
- <td align="right" id="words11">留言类型:</td>
- <td align="left" style="padding-top:2px;">
- <input type="radio" name="search_type" value="100" id="search_type"checked /><span id="words12">咨询</span>
- <input type="radio" name="search_type" value="102" id="search_type" /><span id="words13">建议</span> <input type="radio" name="search_type" value="103" id="search_type" /><span id="words14">投诉</span>
- </td>
- </tr>
- <tr>
- <td align="right" id=words7>留言内容:</td>
- <td align="left" style="padding-top:2px;">
- <textarea name="message" cols="29" rows="5" style="color:#999999; width:350px;height:70px;"></textarea>
- </td>
- </tr>
- <tr>
- <td height="35" align="right"> </td>
- <td align="left">
- <a id=submitbutton_mobile class="button big green" href="javascript:void(0)" onClick="javascript:return checkform();">提交留言</a><input id=submitbutton class=btn_submit_mouseover type="button" value=" 提交留言 " onClick="javascript:return checkform();"><span id=submit_state></span>
- </td>
- </tr>
- </table>
- --></FORM></TD></TR>
- <TR>
- <TD
- style="TEXT-ALIGN: right; PADDING-BOTTOM: 20px; PADDING-RIGHT: 10px; HEIGHT: 20px"
- id=callback_homepage class=message_input><A id=register
- href="http://weibo.com/tqcn?m=tqly_9427669"
- target=_blank>我的网站申请开通</A></TD></TR></TBODY></TABLE><IFRAME
- style="DISPLAY: none; VISIBILITY: hidden" id=sendFrame height=0
- src="about:blank" frameBorder=0 width=0 name=sendFrame></IFRAME><!--生成页面框架布局-->
- <SCRIPT src="请您留言或使用免费电话与我联系 _files/layout.js"></SCRIPT>
- <DIV style="VISIBILITY: hidden" id=appraisePaneBg></DIV>
- <SCRIPT>
- if(isPreview)
- {
- document.write('<scr'+'ipt language="javascript" src="js2010/leavemsg_preview.js"></s'+'cript>');
- }
- else
- {
- document.write('<scr'+'ipt language="javascript" src="http://sysimages.tq.cn/js/webchat_101001/leavemsg_core8.0.js"></s'+'cript>');
- }
- </SCRIPT>
- </BODY></HTML>
复制代码
- //用于生成会话页面的布局,目前有四种布局
- //2012-2-29知识库匹配功能
- //2012-5-19排队改C服务器
- //2012-6-14修正无顶部标签时,因没生成标签UI而导致的排队留言转不过去的bug
- //2012-8-20将机器人功能分离出来
- //2012-11-18加手机版支持
- //2013-4-7修正迷你会话时,在非firefox下无法发送消息的问题
- //2013-4-9修正在ie8下,迷你会话窗口上面有一大片空白的问题
- if(typeof(pagetype)=="undefined")
- pagetype = "";
- var chatwordsIframeHTML = '<iframe id="chatwordsFrames" name="chatwordsFrames" frameborder="0" hspace="0" height="100%" width="100%" marginwidth="0" marginheight="0" ></iframe>';
- //var chatwordsIframeHTML = '<div id="chatwordsFrames" style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll"></div>';// 用DIV的问题在于在firefox下,层的高度会撑开
- var infocardIframeHTML = '<iframe id=cardframe name=cardframe allowtransparency=true border=0 cellpadding=0 cellspacing=0 width=100% height=100% marginwidth=0 marginheight=0 frameborder=0 scrolling=no ></iframe>';
- var _logoImgUrl = "";
- if(is_defined_logo == 1)
- _logoImgUrl = logo_img;
- else
- {
- if(typeof(logoLink) != "undefined" && logoLink != "")
- _logoImgUrl = logoLink;
- else if(typeof(chat_logo) != "undefined" && chat_logo != "")
- _logoImgUrl = chat_logo;
- else
- _logoImgUrl = imgPath+'common/logo.png';
- }
- var topLogoHTML = '<div class=talkframe_top_left><img src='+_logoImgUrl+' /></div><div class=talkframe_top_right '+(logo_area_style==1?'style="display:none"':'')+'><span id=ChatTips></span></div>';
- var topMenuHTML = [];
- if( (style==4 || style==5) && is_top_menu==1 && (action == "chat" || action == "acd" || action == "leavemsg"))
- {
- var chatClass = 'talkframe_top_right_menu_li_active';
- var leavemsgClass = 'talkframe_top_right_menu_li_normal';
- if(action == "leavemsg")
- {
- chatClass = 'talkframe_top_right_menu_li_normal';
- leavemsgClass = 'talkframe_top_right_menu_li_active';
- }
- topMenuHTML.push('<div id="talkframe_top_right_menu" class="talkframe_top_right_menu" >');
- topMenuHTML.push('<li class="'+chatClass+'" id=top_menu_chat onclick="WebIM.switchTag(this,\'chat\')" style="cursor:pointer" onmouseover="WebIM.mouseOverLi(this)" onmouseout="WebIM.mouseOutLi(this)">在线交谈</li>');
- var dispStr = '';
- if(typeof(iscallback) == "undefined" || iscallback == 0)
- dispStr = 'display:none;';
- topMenuHTML.push('<li class="talkframe_top_right_menu_li_normal" id=top_menu_call onclick="WebIM.switchTag(this,\'call\')" style="'+dispStr+'cursor:pointer" onmouseover="WebIM.mouseOverLi(this)" onmouseout="WebIM.mouseOutLi(this)">免费电话</li>');
- topMenuHTML.push('<li class="'+leavemsgClass+'" id=top_menu_message onclick="WebIM.switchTag(this,\'message\')" style="cursor:pointer" onmouseover="WebIM.mouseOverLi(this)" onmouseout="WebIM.mouseOutLi(this)">在线留言</li>');
- dispStr = '';
- if(typeof(is_robot) == "undefined" || is_robot == 0)
- dispStr = 'display:none;';
- topMenuHTML.push('<li class="talkframe_top_right_menu_li_normal" id=top_menu_robot onclick="WebIM.switchTag(this,\'robot\')" style="'+dispStr+'cursor:pointer" onmouseover="WebIM.mouseOverLi(this)" onmouseout="WebIM.mouseOutLi(this)">自助答疑</li>');
- topMenuHTML.push('</div>');
- }
- else {
- topMenuHTML.push('<div style="display:none;" id="talkframe_top_right_menu" class="talkframe_top_right_menu" ><li id="top_menu_chat"></li><li id="top_menu_call"></li><li id="top_menu_robot"><li id="top_menu_message"></li></div>');
- }
- //会话页面与留言页面仅下面的变量值不同
- var chatBoxHTML = [];
- chatBoxHTML.push('<tr>');
- chatBoxHTML.push('<td id="chatwordsTd" style="padding:0px 5px; " class="talkfarme_content">');
- chatBoxHTML.push(chatwordsIframeHTML);
- chatBoxHTML.push('</td>');
- chatBoxHTML.push('</tr>');
- //2012-2-19加知识库
- chatBoxHTML.push('<tr id="knowledgeTipTR" style="display:none">');
- chatBoxHTML.push('<td style="padding:0px;">');
- chatBoxHTML.push('<div id="knowledgeTipDIV" style="padding-left:5px;padding-right:5px;background: none repeat scroll 0 0 #ffffff;visible;height:100px;border-top:1px solid #A5BBFD;"></div>');
- chatBoxHTML.push('</td>');
- chatBoxHTML.push('</tr>');
- chatBoxHTML.push('<tr class=tool_bar_tr>');
- chatBoxHTML.push('<td height=20>');
- chatBoxHTML.push('<div class="iconBg talktools_style" id=tools_bar_div>toolsbar</div>');
- chatBoxHTML.push('</td>');
- chatBoxHTML.push('</tr>');
- chatBoxHTML.push('<tr>');
- chatBoxHTML.push('<td class="message_input" id=message_input_td></td>');
- chatBoxHTML.push('</tr>');
- chatBoxHTML = chatBoxHTML.join('');
- if(action == "leavemsg" || action == "leavemsg_simple")
- {
- chatBoxHTML = document.getElementById("messageHTML").innerHTML;;
- }
- var tagContentHTML = '';//点标签留言或呼叫时,要显示的隐藏内容
- if(style == 4 || style == 5)
- {
- tagContentHTML = [];
- tagContentHTML.push('<table style="display:none" id=top_menu_message_table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- tagContentHTML.push('<tr>');
- tagContentHTML.push('<td style="background:#ffffff"><iframe src="about:blank" id="top_menu_message_frame" name="leavemsgFrame" frameborder="0" hspace="0" height="100%" width="100%" marginwidth="0" marginheight="0" scrolling=no></iframe></td>');
- tagContentHTML.push('</tr>');
- tagContentHTML.push('</table>');
- //if(iscallback == 1)
- //{
- tagContentHTML.push('<table style="display:none" id=top_menu_call_table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- tagContentHTML.push('<tr><td style=" height:1px;"></td></tr>');
- tagContentHTML.push('<tr>');
- tagContentHTML.push('<td><iframe src="about:blank" id="top_menu_call_frame" name="callFrame" frameborder="0" hspace="0" height="100%" width="100%" marginwidth="0" marginheight="0" scrolling=no ></iframe></td>');
- tagContentHTML.push('</tr>');
- tagContentHTML.push('</table>');
- //}
- tagContentHTML.push('<table style="display:none" id=top_menu_robot_table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- tagContentHTML.push('<tr><td style=" height:1px;"></td></tr>');
- tagContentHTML.push('<tr>');
- tagContentHTML.push('<td><iframe src="about:blank" id="top_menu_robot_frame" name="robotFrame" frameborder="0" hspace="0" height="100%" width="100%" marginwidth="0" marginheight="0" scrolling=no ></iframe></td>');
- tagContentHTML.push('</tr>');
- tagContentHTML.push('</table>');
- tagContentHTML = tagContentHTML.join('');
- }
- //var style = 5;
- var html =[];
- if(style == 2)
- {
- html.push('<table id="webdialog" style="width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr>');
- html.push('<td valign="top" class="talkframe_box" >');
- html.push('<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- html.push('<tr'+((pagetype=="mini")?' style="display:none"':'')+'>');
- html.push('<td class="talkframe_top talkframe_topbg_style">');
- html.push('<div id=top_left></div>');
- html.push('</td>');
- html.push('</tr>');
- html.push('<tr>');
- html.push('<td style=" height:1px;"></td>');
- html.push('</tr>');
- html.push(chatBoxHTML);
- html.push('</table>');
- html.push('</td>');
- html.push('<td valign="top" class="card_bg_trans_style" >');
- html.push(infocardIframeHTML);
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- }
- else if(style == 3)
- {
- html.push('<table id="webdialog" style="width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr>');
- html.push('<td valign="top" class="card_bg_trans_style" >');
- html.push(infocardIframeHTML);
- html.push('</td>');
- html.push('<td valign="top" class="talkframe_box" >');
- html.push('<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- html.push('<tr'+((pagetype=="mini")?' style="display:none"':'')+'>');
- html.push('<td class="talkframe_top talkframe_topbg_style">');
- html.push('<div id=top_left></div>');
- html.push('</td>');
- html.push('</tr>');
- html.push('<tr>');
- html.push('<td style=" height:1px;"></td>');
- html.push('</tr>');
- html.push(chatBoxHTML);
- html.push('</table>');
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- }
- else if(style == 4)
- {
- html.push('<table id="webdialog" style="'+((action == "leavemsg_simple")?'border-left:0px;':'')+'width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr'+((action == "leavemsg_simple" || pagetype=="mini")?' style="display:none"':'')+'>');
- html.push('<td class="talkframe_top talkframe_topbg_style">');
- html.push('<div id=top_left></div>');
- html.push('</td>');
- html.push('</tr>');
- html.push('<tr>');
- html.push('<td>');
- html.push('<table style="width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr>');
- html.push('<td valign="top" class="talkframe_box" '+((action == "leavemsg_simple")?' style="padding-right:0px"':'')+'>');
- html.push(tagContentHTML);
- html.push('<table id=chatTag border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- html.push('<tr>');
- html.push('<td style=" height:1px;"></td>');
- html.push('</tr>');
- html.push(chatBoxHTML);
- html.push('</table>');
- html.push('</td>');
- html.push('<td '+((action == "leavemsg_simple")?' style="display:none"':'')+' valign="top" class="card_bg_trans_style" >');
- if(action != "leavemsg_simple")
- html.push(infocardIframeHTML);
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- }
- else if(style == 5)
- {
- html.push('<table id="webdialog" style="'+((action == "leavemsg_simple")?'border-right:0px;':'')+'width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr'+((action == "leavemsg_simple" || pagetype=="mini")?' style="display:none"':'')+'>');
- html.push('<td class="talkframe_top talkframe_topbg_style">');
- html.push('<div id=top_left></div>');
- html.push('</td>');
- html.push('</tr>');
- html.push('<tr>');
- html.push('<td>');
- html.push('<table style="width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">');
- html.push('<tr>');
- html.push('<td '+((action == "leavemsg_simple")?' style="display:none"':'')+' valign="top" class="card_bg_trans_style" >');
- if(action != "leavemsg_simple")
- html.push(infocardIframeHTML);
- html.push('</td>');
- html.push('<td valign="top" class="talkframe_box" '+((action == "leavemsg_simple")?' style="padding-left:0px"':'')+'>');
- html.push(tagContentHTML);
- html.push('<table id=chatTag border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" class="talkframe_all">');
- html.push('<tr>');
- html.push('<td style=" height:1px;"></td>');
- html.push('</tr>');
- html.push(chatBoxHTML);
- html.push('</table>');
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- html.push('</td>');
- html.push('</tr>');
- html.push('</table>');
- }
- document.write(html.join(''));
- function FillHTML()
- {
- document.getElementById("top_left").innerHTML = topLogoHTML + topMenuHTML.join('');
- if((action == "chat" || action == "acd"))
- {
- document.getElementById("tools_bar_div").innerHTML = document.getElementById("tools_bar_div_html").innerHTML;
- if(isMobile == 1)
- {
- if(pagetype!="mini")
- {
- document.getElementById("message_input_td").innerHTML =
- '<table border="0" cellpadding="0" cellspacing="0" class=inputarea_table>'+
- '<tr>'+
- '<td valign="top" id="input_td"><textarea id=FreeTextBox1_editor class=inputarea></textarea></td>'+
- '<td width=80><a class="button_1 green" href="javascript:void(0)" onclick="WebIM.FTB_Send();">发 送</a></td>'+
- '</tr>'+
- '<tr style="display:none"><td colspan=2 style="padding-bottom:2px;" id="sendImg_td"></td></tr>'+
- '</table>';
- document.getElementById("message_input_td").className="message_input_td";
- }
- else
- {
- document.getElementById("message_input_td").innerHTML =
- '<table border="0" cellpadding="0" cellspacing="0" class=inputarea_table>'+
- '<tr>'+
- '<td valign="top" id="input_td"><textarea id=FreeTextBox1_editor class=inputarea></textarea></td>'+
- '<td width=50><div class="send_mini send_zh_mini" onMouseOut="this.className=\'send_mini send_zh_mini\'" onMouseOver="this.className=\'send_mini send_zh2_mini\'" onClick="WebIM.FTB_Send();"></div>'+
- '<div id=shortcutsTipDIV class="send_tips" style="display:none"></div></td>'+
- '</tr>'+
- '<tr style="display:none"><td colspan=2 style="padding-bottom:2px;" id="sendImg_td"></td></tr>'+
- '</table>';
- document.getElementById("message_input_td").className="message_input_td";
- }
- }
- else
- {
- document.getElementById("message_input_td").innerHTML = document.getElementById("message_input_td_html").innerHTML;
- }
- document.body.removeChild(document.getElementById("tools_bar_div_html"));
- document.body.removeChild(document.getElementById("message_input_td_html"));
- }
- else
- {
- document.body.removeChild(document.getElementById("message_table_html"));
- }
- }
- FillHTML();
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |