<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AD_Hotspot.aspx.cs" Inherits="MYAPP.Manage.Project.Design.GigaMap.AD_Hotspot" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/date.js"></script>
<script type="text/javascript" src="/js/coe.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
    var oWindow = parent;
    var openwindow;
    function ViewScene() {
        openwindow = window.open('/pano/view_map.aspx?Tour_ID=<%=_Tour_ID%>&Map_ID=<%=_Map_ID%>', 'Preview', 'toolbar=no');
    }
    function setvalue(text, variable) {
        if (openwindow != null) {
            try {
                $(text).value = Number(openwindow.krpano().get(variable)).toFixed(2);
            }
            catch (err) {
                top._msg_show('Open Pano window first!', '', '65', 'Notice');
            }
        }
        else {
            top._msg_show('Open Pano window first!', '', '65', 'Notice');
        }
    }
    function GetPloygonal(points) {
        openwindow = window.open('/project/<%=_Tour_ID%>/get_mapploygonal_<%=_Map_ID%>.aspx', 'GetPloygonal', 'toolbar=no');
    }
	
    function SetGetPloygonal(points) {
        $('hotspot_points').value = points;
    }

    function GetHotspotXML() {
        var str_xml = "";
        if ($('hotspot_points').value != "") {
            str_xml = '<hotspot name="' + $("name").value + '">' + $('hotspot_points').value + '</hotspot>';
        }
        return str_xml;
    }


    function GetValue(id) {
        return $(id).value;
    }

    function SetValue(id, value) {
        return $(id).value = value;
    }

    function GetXYZ() {
       openwindow = window.open('/project/<%=_Tour_ID%>/get_hotspot_xyz_<%=_Map_ID%>.aspx', 'GetXYZ', 'toolbar=no');
    }	

	  function OpenPopup(turl)
	  {
	      var arr =showModalDialog(turl,self,"dialogWidth:880px; dialogHeight:640px;scrollbars=yes;help=no;status=no;scroll=0");
	  }
function QuickOnClick()
{
	var trans;
	trans=$("ddl_T_Type").value;
	if ($('T_Scene_ID').value!='')
	{
		if ($('T_Scene_ID_hlookat').value=='')
		{
		}
		
		trans=trans.replace("{Scene_ID}",$('T_Scene_ID').value);
		trans=trans.replace("{hlookat}",$('T_Scene_ID_hlookat').value);	
		trans=trans.replace("{vlookat}",$('T_Scene_ID_vlookat').value);
		trans=trans.replace("{fov}",$('T_Scene_ID_fov').value);
		trans=trans.replace("{seconds}",$('T_seconds').value);
		trans=trans.replace("{zoom}",$('T_zoom').value);
		
		trans=trans.replace("{Scene_ID}",$('T_Scene_ID').value);
		trans=trans.replace("{hlookat}",$('T_Scene_ID_hlookat').value);	
		trans=trans.replace("{vlookat}",$('T_Scene_ID_vlookat').value);
		trans=trans.replace("{fov}",$('T_Scene_ID_fov').value);
		trans=trans.replace("{seconds}",$('T_seconds').value);
		trans=trans.replace("{zoom}",$('T_zoom').value);
		
		trans=trans.replace("{Scene_ID}",$('T_Scene_ID').value);
		trans=trans.replace("{hlookat}",$('T_Scene_ID_hlookat').value);	
		trans=trans.replace("{vlookat}",$('T_Scene_ID_vlookat').value);
		trans=trans.replace("{fov}",$('T_Scene_ID_fov').value);
		trans=trans.replace("{seconds}",$('T_seconds').value);
		trans=trans.replace("{zoom}",$('T_zoom').value);
		
		$("onclick").value=trans;
		$('name').value="scene:"+AjaxDemo.GetSceneElemValueByPath(<%=_Tour_ID%>,$('T_Scene_ID').value,"Name").value;
		$('T_Hint').value=AjaxDemo.GetSceneElemValueByPath(<%=_Tour_ID%>,$('T_Scene_ID').value,"Name").value;
	}
	else
	{
		alert("请先选择场景!!!");
	}
	try
	{
		to_scene.krpano().call("moveto("+$('T_Scene_ID_hlookat').value+","+$('T_Scene_ID_vlookat').value+",smooth());");
	}
	catch(exception){}
}
function change_sceneview()
{
	if ($('T_Scene_ID').value!=''){to_scene.window.location='/project/<%=_Tour_ID%>/view_scene_'+$('T_Scene_ID').value+'_gettohvf.aspx';}else{alert('请先选择场景');}
}
self.focus();	
</script>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body onload="">
<form id="theform" runat="server">
  <table width="100%" cellspacing="2" border="1" align="center" cellpadding="0" bordercolor="#CCCCCC"
            class="board_kong">
    <tr>
      <td><table cellspacing="1" cellpadding="0" width="100%" border="0">
          <tr>
            <td style="border-bottom: #CCCCCC 1px solid; height: 24px"><table class="title_table">
                <tr>
                  <td class="l_title"><%=MyApp.Components.KRPano.GigaMap.GetElemValueByPath(_Tour_ID,_Map_ID,"Name")%> =&gt; [Hotspot]</td>
                  <td width="100" align="center" class="l_title">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td><div id="TabbedPanels1" class="TabbedPanels">
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">基础</li>
                  <li class="TabbedPanelsTab" tabindex="0">HTML5/APPLE</li>
                  <li class="TabbedPanelsTab" tabindex="0">Crop/Scale9Grid</li>
                  <li class="TabbedPanelsTab" tabindex="0">区域热点</li>
                  <li class="TabbedPanelsTab" tabindex="0">视频热点</li>
                  <li class="TabbedPanelsTab" tabindex="0">HTML热点</li>
                  <li class="TabbedPanelsTab" tabindex="0">场景转换</li>
                  <li class="TabbedPanelsTab" tabindex="0">热点事件</li>
                  <li class="TabbedPanelsTab" tabindex="0" onclick="window.open('List_Accessories_Info.aspx?curl=%FIRSTXML%GigaMap/<%=_Map_ID%>/Hotspot&dir=Hotspot&Info_ID=<%=_Tour_ID%>/GigaMap/<%=_Map_ID%>','Accessories_Info','toolbar=no,resizable=yes,status=yes');">热点附件</li>
                </ul>
                <div class="TabbedPanelsContentGroup">
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td colspan="2" align="left"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title_request">Type:</td>
                            <td colspan="2" align="left"><asp:DropDownList ID="T_Type" runat="server">
                              <asp:ListItem Value="Image">图片</asp:ListItem>
                              <asp:ListItem Value="Video">视频</asp:ListItem>
                              <asp:ListItem Value="Flash">Flash</asp:ListItem>
                              <asp:ListItem Value="Ploygonal">区域</asp:ListItem>
                              <asp:ListItem Value="Other">其他</asp:ListItem>
                              </asp:DropDownList>
                              热点类型</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title_request"> name:</td>
                            <td colspan="2" align="left"><asp:TextBox ID="name" runat="server" Columns="30" MaxLength="20" />                  
                              热点名称</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">zorder:</td>
                            <td colspan="2" align="left"><asp:TextBox ID="zorder" Columns="6" runat="server" Text='1' />                  
                              排序 alpha:
                              <asp:TextBox ID="alpha" Columns="6" runat="server" Text='1.0' />  
                              透明度 
                              blendmode:
                              <asp:DropDownList ID="blendmode" runat="server">
                                <asp:ListItem Value="NORMAL">NORMAL</asp:ListItem>
                                <asp:ListItem Value="LAYER">LAYER</asp:ListItem>
                                <asp:ListItem Value="MULTIPLY">MULTIPLY</asp:ListItem>
                                <asp:ListItem Value="SCREEN">SCREEN</asp:ListItem>
                                <asp:ListItem Value="LIGHTEN">LIGHTEN</asp:ListItem>
                                <asp:ListItem Value="DARKEN">DARKEN</asp:ListItem>
                                <asp:ListItem Value="DIFFERENCE">DIFFERENCE</asp:ListItem>
                                <asp:ListItem Value="ADD">ADD</asp:ListItem>
                                <asp:ListItem Value="SUBTRACT">SUBTRACT</asp:ListItem>
                                <asp:ListItem Value="INVERT">INVERT</asp:ListItem>
                                <asp:ListItem Value="ALPHA">ALPHA</asp:ListItem>
                                <asp:ListItem Value="ERASE">ERASE</asp:ListItem>
                                <asp:ListItem Value="OVERLAY">OVERLAY</asp:ListItem>
                                <asp:ListItem Value="HARDLIGHT">HARDLIGHT</asp:ListItem>
                              </asp:DropDownList>
                              混合模式<a href="http://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObject.html#blendMode" target="_blank">Browse</a></td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">edge:</td>
                            <td colspan="2" align="left"><asp:DropDownList ID="edge" runat="server">
                              <asp:ListItem value="lefttop">lefttop</asp:ListItem>
                              <asp:ListItem value="left">left</asp:ListItem>
                              <asp:ListItem value="leftbottom">leftbottom</asp:ListItem>
                              <asp:ListItem value="top">top</asp:ListItem>
                              <asp:ListItem value="center">center</asp:ListItem>
                              <asp:ListItem value="bottom" Selected="true">bottom</asp:ListItem>
                              <asp:ListItem value="righttop">righttop</asp:ListItem>
                              <asp:ListItem value="right">right</asp:ListItem>
                              <asp:ListItem value="rightbottom">rightbottom</asp:ListItem>
                            </asp:DropDownList>
(基准点位置)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">url:</td>
                            <td colspan="2" align="left"><asp:TextBox CssClass="width100" ID="url" runat="server" Text='%FIRSTXML%/Accessories/bs.png' /></td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">position:</td>
                            <td align="left" nowrap="nowrap">ath:
                              <asp:TextBox ID="ath" runat="server" Columns="6" Text='0' />                    
                              atv:
                              <asp:TextBox ID="atv" runat="server" Columns="6" Text='0' />
                              <input name="button" type="button" class="cursor_pointer" id="button" value="获取坐标"  onclick="openwindow = window.open('/project/<%=_Tour_ID%>/view_map_<%=_Map_ID%>_getatvath.aspx', 'scene', 'toolbar=no');"/></td>
                            <td align="left">&nbsp;</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">o-xy:</td>
                            <td align="left" nowrap="nowrap">ox:
                              <asp:TextBox ID="ox" runat="server" Columns="6" Text='0' />                    
                              oy:
                              <asp:TextBox ID="oy" runat="server" Columns="6" Text='0' />
                              (中心坐标偏移) <br />
                              - additional x/y offset<br />
                              - % values can be used and they are relative to the own size</td>
                            <td align="left" class="left_title">&nbsp;</td>
                            <td align="left">&nbsp;</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">size:</td>
                            <td colspan="2" align="left">width:
                              <asp:TextBox ID="width" Columns="6" runat="server" />                    
                              (宽度)
                              height:
                              <asp:TextBox ID="height" runat="server" Columns="6" />
                              (高度)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">R_XYZ:</td>
                            <td colspan="2" align="left">rx:
                              <asp:TextBox ID="rx" runat="server" Columns="10" Text='0' />                    
                              ry:
                              <asp:TextBox ID="ry" runat="server" Columns="10" Text='0' />
                              rz:
                              <asp:TextBox ID="rz" runat="server" Columns="10" Text='0' />
                              <input  type="button" class="cursor_pointer" value="获取空间坐标"  onclick="GetXYZ();"/></td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">refreshrate:</td>
                            <td colspan="2" align="left"><asp:TextBox ID="refreshrate" runat="server" />                  
                              (0-60)(刷新帧数)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">scale:</td>
                            <td colspan="2" align="left"><asp:TextBox ID="scale" runat="server" Columns="6" Text='1.00' />                  
                              (缩放比例)
                              <asp:CheckBox ID="zoom" Text='zoom' runat="server" />  
                              (自动缩放)
                              <asp:CheckBox ID="smoothing" Text='smoothing' runat="server" Checked="true" />
                              (平滑)
                              <asp:CheckBox ID="distorted" Text='distorted' runat="server" />
                              (扭曲)
                              <asp:CheckBox ID="rotatewithview" Text='rotatewithview' runat="server" />
                              (跟随场景旋转)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">mask:</td>
                            <td colspan="3" align="left"><asp:TextBox ID="mask" runat="server" Columns="30" />                  
                              ( plugin.name,plugin[pluginname])(蒙版插件名称)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">rotate:</td>
                            <td colspan="3" align="left"><asp:TextBox ID="rotate" runat="server" Text='0' Columns="6" />                  
                              rotation in degrees, default=&quot;0&quot;(旋转角度)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">Property:</td>
                            <td colspan="2" align="left"><asp:CheckBox ID="visible" runat="server" Text='visible' Checked="true" />                  
                              (显示)
                              <asp:CheckBox ID="enabled" runat="server" Text='enabled'  Visible="true" Checked="true"/>  
                              (鼠标事件可用)
                              <asp:CheckBox ID="capture" Text='capture' runat="server" Visible="true"/>
                              (截获鼠标事件)
                              <asp:CheckBox ID="handcursor" Text="handcursor" runat="server"  Visible="true" Checked="true"/>
                              (鼠标小手)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">style:</td>
                            <td colspan="3" align="left"><asp:TextBox ID="style" runat="server" Text='0' Columns="6" />                  
                              style.name(样式名称)</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">effect:<br />
                              效果</td>
                            <td colspan="3" align="left"><asp:TextBox CssClass="width100" ID="effect" Rows="4" runat="server" TextMode="MultiLine" /></td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">&nbsp;</td>
                            <td colspan="3" align="left">bitmap effects, can be any combination of this effect functions:<br />
                              <ul>
                                <li>glow(color,alpha,range,strength); </li>
                                <li>dropshadow(depth,angle,color,range,strength); </li>
                                <li>blur(radius); </li>
                              </ul>
                              example:   glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);</td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">Flying:</td>
                            <td colspan="2" align="left"><asp:CheckBox ID="T_FlyingTF" Text="漂浮" runat="server"  Visible="true"/>                  
                              flying:
                              <asp:TextBox ID="flying" runat="server" Text='0' Columns="4" />  
                              flyingscale:
                              <asp:TextBox ID="T_FlyingScale" runat="server" Text='1.0' Columns="4" />
                              (漂浮比例)
                              <input type="button" class="cursor_pointer"  onclick="$('onclick').value='if(flying == 0.0, flyout('+$('T_FlyingScale').value+'), flyback());';$('onover').value='';$('onout').value='';" value="漂浮设置"/></td>
                          </tr>
                          <tr>
                            <td align="center" nowrap="nowrap" class="left_title">Hits:</td>
                            <td colspan="2" align="left"><asp:TextBox CssClass="width100" ID="T_Hint" runat="server" TextMode="MultiLine" Rows="4" /></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">devices:</td>
                        <td colspan="2" align="left"><asp:DropDownList ID="devices" runat="server">
                          <asp:ListItem value="all">所有设备</asp:ListItem>
                          <asp:ListItem value="flash">Flash支持设备</asp:ListItem>
                          <asp:ListItem value="html5|iphone|ipad|android">IPAD|IPHONE|安卓系统|HTML5浏览器</asp:ListItem>
                        </asp:DropDownList>
                          针对设备</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">alturl:</td>
                        <td colspan="2" align="left"><asp:TextBox Columns="60" CssClass="width100" ID="alturl" runat="server" />                    
                          如果是flash热点,这里请填写替换地址(换成图片替换地址)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">altscale:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="altscale" runat="server" Text='1' Columns="6" />                    
                          (缩放比例)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">jsborder:<br /></td>
                        <td colspan="2" align="left"><asp:TextBox CssClass="width100" ID="jsborder" Rows="4" runat="server" TextMode="MultiLine" />                    
                          <div id="gt-res-content">
                            <div dir="ltr"><span title="点击可显示其他翻译" closure_uid_7evrt="200">JavaScript中</span><span title="点击可显示其他翻译" closure_uid_7evrt="201">的CSS</span><span title="点击可显示其他翻译" closure_uid_7evrt="202">边框设置</span><span title="点击可显示其他翻译" closure_uid_7evrt="203">。</span></div>
                          </div></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">altonloaded:<br />
                          加载完成</td>
                        <td colspan="2" align="left"><asp:TextBox CssClass="width100" ID="altonloaded" Rows="4" runat="server" TextMode="MultiLine" /></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">crop:</td>
                        <td align="left"><asp:TextBox ID="crop" runat="server" Columns="50" Enabled="true" />
                          &quot;x|y|width|height&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">onovercrop:</td>
                        <td align="left"><asp:TextBox ID="onovercrop" runat="server" Columns="50" Enabled="true" />
                          &quot;x|y|width|height&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">ondowncrop:</td>
                        <td align="left"><asp:TextBox ID="ondowncrop" runat="server" Columns="50" Enabled="true" />
                          &quot;x|y|width|height&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">scale9grid:</td>
                        <td align="left"><asp:TextBox ID="scale9grid" runat="server" Columns="50" Enabled="true" />
                          &quot;x|y|width|height&quot;</td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    </table>
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">区域获取:</td>
                        <td colspan="2" align="left"><input type="button" class="width80px" value="获取区域"  onclick="GetPloygonal($('hotspot_points').value)"/>
                          使用区域热点,热点类型必须选择&quot;区域&quot;</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="fillcolor" class="left_title">区域属性:</td>
                        <td colspan="2" align="left">fillcolor:
                          <asp:TextBox ID="fillcolor" runat="server" Text='0xFFFFFF' Columns="8" />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(fillcolor,this)"> fillcolorhover:
                          <asp:TextBox ID="fillcolorhover" runat="server" Text='0xFFFFFF' Columns="8" />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(fillcolorhover,this)"/> fillalpha:
                          <asp:TextBox ID="fillalpha" runat="server" Text='0.0' Columns="8" />
                          fillalphahover:
                          <asp:TextBox ID="fillalphahover" runat="server" Text='0.2' Columns="8" />
                          <br />
                          borderwidth:
                          <asp:TextBox ID="borderwidth" runat="server" Text='0' Columns="8" />
                          borderwidthhover:
                          <asp:TextBox ID="borderwidthhover" runat="server" Text='2' Columns="8" />
                          bordercolor:
                          <asp:TextBox ID="bordercolor" runat="server" Text='0xFFFFFF' Columns="8" />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(bordercolor,this)" /> bordercolorhover:
                          <asp:TextBox ID="bordercolorhover" runat="server" Text='0xFFFFFF' Columns="8" />
                          <img border="0" src="/images/pickcolor.gif" width="18" onclick="selColor(bordercolorhover,this)" /><br />
                          borderalpha:
                          <asp:TextBox ID="borderalpha" runat="server" Text='0.0' Columns="8" />
                          borderalphahover:
                          <asp:TextBox ID="borderalphahover" runat="server" Text='0.8' Columns="8" /></td>
                      </tr>
                      <tr>
                        <td colspan="3" nowrap="nowrap"><asp:TextBox CssClass="width100" ID="hotspot_points" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr></tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">posterurl:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="posterurl" runat="server" Columns="60" />
                          图片替换地址，视频未加载播放前现实的图片</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title"> videourl:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="videourl" runat="server" Columns="60" />                        
                          视频热点地址
                          <input type="button" value="设置视频热点"  onclick="$('url').value='/%SWFPATH%/plugins/videoplayer.swf';$('alturl').value='/%SWFPATH%/plugins/videoplayer.js';$('onover').value='';$('onout').value='';$('onclick').value='togglepause();';"/>
                          (.flv, .mp4, .m4v, .mov, .3gp)(<a href="http://krpano.com/forum/wbb/index.php?page=Thread&threadID=811" target="_blank">help</a>)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">altvideourl:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="altvideourl" runat="server" Columns="60" />
                        HTML5下视频热点地址(.m4v,推荐默认flash下也是用m4v格式，这样可更好的兼容hml5)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">volume:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="volume" Text="1" Columns="10" runat="server" />                        
                          (音量)range:
                          <asp:TextBox ID="range" runat="server" />  
                          (1 - 360)(声音区域)
                          <asp:CheckBox ID="directionalsound" Text="directionalsound" runat="server" />
                          (是否方位声音)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">buffertime:</td>
                        <td colspan="2" align="left"><asp:TextBox ID="buffertime" Text="0.1" Columns="10" runat="server" />                        
                          second(缓冲时间)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">视频属性:</td>
                        <td colspan="2" align="left"><asp:CheckBox ID="loop" Text="loop" runat="server" Checked="true" />                        
                          (循环播放)
                          <asp:CheckBox ID="pausedonstart" Text="pausedonstart" runat="server" />  
                          (加载的时候暂停)
                          <asp:CheckBox ID="updateeveryframe" runat="server" Text='updateeveryframe' Checked="true" />
                          (播放每一帧)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">onvideocomplete:<br />
                          视频播放完成事件
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onvideocomplete');"/></td>
                        <td colspan="2"><asp:TextBox CssClass="width100" ID="onvideocomplete" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">&nbsp;</td>
                        <td colspan="2" align="left"><ul>
                          <li>will be called when the video was played completely<br />
                          </li>
                          <li>only when &quot;loop&quot; is set to &quot;false&quot;</li>
                        </ul></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">HTML热点:</td>
                        <td align="left"><asp:CheckBox ID="T_HtmlPluginTF" Text="使用HTML热点" runat="server" />                    
                          (%SWFPATH%/plugins/textfield.swf)</td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">属性:</td>
                        <td align="left">autosize:
                          <asp:DropDownList ID="autosize" runat="server">
                            <asp:ListItem value="none">none</asp:ListItem>
                            <asp:ListItem value="left">left</asp:ListItem>
                            <asp:ListItem value="center">center</asp:ListItem>
                            <asp:ListItem value="right">right</asp:ListItem>
                          </asp:DropDownList>
                          <asp:CheckBox ID="background" Text="background" runat="server" />                      
                          backgroundcolor:
                          <asp:TextBox ID="backgroundcolor" Text="0xFFFFFF" Columns="8" runat="server" />
                          bordercolor
                          <asp:TextBox ID="bordercolor2" runat="server" Columns="8" Text='0x000000' />
                          borderwidth:
                          <asp:TextBox ID="borderwidth2" Text="1" Columns="4" runat="server" />
                          roundedge:
                          <asp:TextBox ID="roundedge" Text="0" runat="server" Columns="4" />
                          <br />
                          <asp:CheckBox ID="selectable" Text="selectable" runat="server" />
                          glow:
                          <asp:TextBox ID="glow" Text="0" runat="server" Columns="4" />
                          glowcolor:
                          <asp:TextBox ID="glowcolor" Columns="8" runat="server" Text='0xFFFFFF' />
                          blur:
                          <asp:TextBox ID="blur" Text="0" runat="server" Columns="4" />
                          shadow:
                          <asp:TextBox ID="shadow" Text="0" Columns="4" runat="server" />
                          <br />
                          textglow:
                          <asp:TextBox ID="textglow" Text="0" Columns="4" runat="server" />
                          textglowcolor:
                          <asp:TextBox ID="textglowcolor" runat="server" Text='0xFFFFFF ' />
                          textblur:
                          <asp:TextBox ID="textblur" Text="0" Columns="4" runat="server" />
                          textshadow:
                          <asp:TextBox ID="textshadow" Columns="4" runat="server" />
                          <br /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title"> CSS :<br />
                          <a href="http://livedocs.adobe.com/flex/201/langref/flash/text/StyleSheet.html" target="_blank"><font color="#FF0000">(help)</font></a></td>
                        <td align="left"><asp:TextBox CssClass="width100" ID="css" MaxLength="20" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">html content:<br />
                          <a href="http://livedocs.adobe.com/flex/201/langref/flash/text/TextField.html#htmlText" target="_blank"><font color="#FF0000">(help)</font></a></td>
                        <td align="left"><asp:TextBox CssClass="width100" ID="html" Rows="8" runat="server" TextMode="MultiLine" /></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">目标场景:</td>
                        <td align="left"><asp:TextBox ID="T_Scene_ID" Columns="10" runat="server" />
                          &lt;==
                          <asp:DropDownList ID="ddl_T_Scene_ID" runat="server">
                            <asp:ListItem value=""></asp:ListItem>
                          </asp:DropDownList>
                          <input type="button" class="width80px" onclick="change_sceneview()" value="预览场景" /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">转换方式:</td>
                        <td align="left"><asp:DropDownList ID="ddl_T_Type" runat="server"></asp:DropDownList>
                          <span class="left_title">转换时间:
                          </span>
                          <asp:TextBox ID="T_seconds" runat="server" Columns="6" Text='1.5' />
                        秒 <span class="left_title">缩放因子:</span>                        <asp:TextBox ID="T_zoom" runat="server" Columns="6" Text='10' /></td>
                      </tr>
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title">目标视区::</td>
                        <td align="left"><span class="left_title">横向坐标:</span>
                          <asp:TextBox ID="T_Scene_ID_hlookat" runat="server" Columns="6" Text='' />
                          <span class="left_title">纵向坐标:</span>
                          <asp:TextBox ID="T_Scene_ID_vlookat" runat="server" Columns="6" Text='0' />
                          <span class="left_title">视区: </span>
                          <asp:TextBox ID="T_Scene_ID_fov" runat="server" Columns="6" Text='90' />
                          <input type="button" class="width80px" onclick="try{SetValue('T_Scene_ID_hlookat',Number(to_scene.krpano().get('view.hlookat')).toFixed(2));SetValue('T_Scene_ID_vlookat',Number(to_scene.krpano().get('view.vlookat')).toFixed(2));SetValue('T_Scene_ID_fov',Number(to_scene.krpano().get('view.fov')).toFixed(2));QuickOnClick();}catch(exception){}" value="场景设置漫游"/>
                          <input type="button" class="width80px" onclick="try{QuickOnClick();}catch(exception){}" value="手动设置漫游"/></td>
                      </tr>
                      <tr>
                        <td height="700" colspan="2" align="center" nowrap="nowrap"><iframe src="" id="to_scene" name="to_scene" width="100%" height="100%" scrolling="auto"
                                                frameborder="0"></iframe></td>
                      </tr>
                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB"
                                                class="board_kong">
                      <tr>
                        <td align="center" class="left_title">onclick:<br />
                          鼠标点击<br />
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onclick');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="onclick" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">onover:<br />
                          鼠标经过
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onover');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="onover" runat="server" TextMode="MultiLine" Rows="4"  Text="set(back_auto,get(autorotate.enabled));set(autorotate.enabled,false);"/></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">onhover:<br />
                          鼠标停留
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onhover');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="onhover" runat="server" TextMode="MultiLine" Rows="4"  Text="showtext(get(T_Hint));"/></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">onout:<br />
                          鼠标移开
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onout');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="onout" runat="server" TextMode="MultiLine" Rows="4" Text="set(autorotate.enabled,get(back_auto));" /></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">ondown:<br />
                          鼠标按下
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('ondown');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="ondown" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                      <tr>
                        <td align="center" class="left_title">onup:<br />
                          鼠标抬起
                          <input type="button" class="width80px" value="辅助"  onclick="KREditor('onup');"/></td>
                        <td><asp:TextBox CssClass="width100" ID="onup" runat="server" TextMode="MultiLine" Rows="4" /></td>
                      </tr>
                    </table>
                  </div>
                </div>
              </div></td>
          </tr>
          <tr>
            <td height="26" align="center"><asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="True" ShowSummary="False" />
              <asp:Button CssClass="width80px" ID="ButPost" runat="server" Text="提交保存" OnClick="ButPost_Click" />
              <input name="Submit" type="reset" class="width80px" value="重置" />
              <input name="ButReturn" type="button" class="width80px" id="ButReturn" onclick="window.location='<%=MyApp.Components.NavUrl.GetUrl(3)%>'" value="返回" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
<!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
    </script>
</body>
</html>
