<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="View_Map_Scene.aspx.cs" Inherits="MYAPP.Manage.Project.Design.Tour.Map.View_Map_Scene" %>
<asp:XmlDataSource ID="xds" runat="server"  XPath="" 
    EnableCaching="False" EnableViewState="False"></asp:XmlDataSource>
<!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="X-UA-Compatible" content="IE=7" />
<title></title>
<link rel="stylesheet" type="text/css" href="/yui/fonts/fonts-min.css" />
<script type="text/javascript" src="/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="/yui/dragdrop/dragdrop-min.js"></script>
<script type="text/javascript" src="/js/coe.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript">
    var dmpoint;
    (function () {
        YAHOO.util.Event.onDOMReady(function () {
            dmpoint = new YAHOO.util.DD("mpoint");
        });
    })();
    function GetX() {
        return parseInt($("mpoint").style.left.replace("px", "")) + 9;
    }
    function GetY() {
        return parseInt($("mpoint").style.top.replace("px", "")) + 9;
    }
    function SetXY(x, y) {
        if ((parseInt(x) > 0) && (parseInt(y) > 0)) {
            $("mpoint").style.left = x + "px";
            $("mpoint").style.top = y + "px";
        }
    }
</script>   
<style type="text/css">
  body   {  
    -moz-user-select : none;  
  } 
.move_point {cursor:pointer;position:absolute;top:0px;left:0px; z-index:99}
.point_title {border:1px solid #FFFFFF;font:12px; background-color:#C60; color:#FFF; padding-top:2px;padding-bottom:2px; padding-left:4px; padding-right:4px;filter:alpha(opacity=80);opacity:0.8; float:none}
 </style> 
<script>
document.oncontextmenu=function(e){return   false;}
window.onload = function(){
 document.body.onmouseup = function (){document.selection.empty();};
 document.body.oncontextmenu = function () {return false;};
 document.body.onselectstart = function () {return false;};
 document.body.onselect = function () {document.selection.empty()};
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<asp:Image ID="Image_Map" runat="server"  BorderColor="#BBBBBB" BorderWidth="1"/>
<div id="mpoint" class="move_point"><img src="/pano/images/mpoint.png" title="拖动到相应位置,标注场景"/></div> 
 <asp:Repeater ID="rp_list" runat="server">
<ItemTemplate>
<div onClick="SetXY(<%# Convert.ToInt32(XPath("@x"))-10%>,<%# Convert.ToInt32(XPath("@y"))-10%>);" style="position:absolute; cursor:pointer;top:<%# Convert.ToInt32(XPath("@y"))-8%>px;left:<%# Convert.ToInt32(XPath("@x"))-8%>px;" title="<%# XPath("@hint")%>"><img src="/pano/images/mappoint.png" /><div class='point_title' style="display:none1"><%# XPath("@hint")%></div></div> 
</ItemTemplate>
</asp:Repeater>
</body>
</html>