FineUI/FineUI_v6/FineUI.Examples/iframe/selectprovince1_child.aspx
三生石上 62ef818ff0 v6.0.3
2017-09-05 11:30:31 +08:00

82 lines
5.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectprovince1_child.aspx.cs"
Inherits="FineUI.Examples.iframe.selectprovince1_child" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager>
<f:Panel ID="Panel1" runat="server" ShowBorder="False" ShowHeader="false" BodyPadding="5px">
<Items>
<f:Image runat="server" ID="imgChina" ImageUrl="~/res/images/china.gif">
</f:Image>
<f:Label runat="server" EncodeText="false" ID="labNote">
</f:Label>
</Items>
</f:Panel>
<asp:Label runat="server" ID="labTest"></asp:Label>
<map id="ChinaMap" name="ChinaMap">
<area href="javascript:select('黑龙江');" coords="398,52,442,72" shape="rect">
<area href="javascript:select('吉林');" coords="400,96,433,111" shape="rect">
<area href="javascript:select('辽宁');" coords="378,117,409,135" shape="rect">
<area href="javascript:select('北京');" coords="329,135,359,149" shape="rect">
<area href="javascript:select('天津');" coords="345,151,370,165" shape="rect">
<area href="javascript:select('山东');" coords="347,179,382,195" shape="rect">
<area href="javascript:select('上海');" coords="395,224,423,242" shape="rect">
<area href="javascript:select('浙江');" coords="378,250,410,266" shape="rect">
<area href="javascript:select('台湾');" coords="398,287,415,336" shape="rect">
<area href="javascript:select('香港');" coords="350,329,374,343" shape="rect">
<area href="javascript:select('广东');" coords="324,313,350,326" shape="rect">
<area href="javascript:select('澳门');" coords="323,339,349,351" shape="rect">
<area href="javascript:select('河南');" coords="311,207,343,223" shape="rect">
<area href="javascript:select('山西');" coords="307,161,321,197" shape="rect">
<area href="javascript:select('河北');" coords="329,157,343,191" shape="rect">
<area href="javascript:select('宁夏');" coords="259,174,273,202" shape="rect">
<area href="javascript:select('四川');" coords="219,241,254,260" shape="rect">
<area href="javascript:select('贵州');" coords="254,282,292,301" shape="rect">
<area href="javascript:select('青海');" coords="163,187,217,207" shape="rect">
<area href="javascript:select('新疆');" coords="73,122,124,142" shape="rect">
<area href="javascript:select('湖北');" coords="306,238,338,255" shape="rect">
<area href="javascript:select('湖南');" coords="296,270,329,286" shape="rect">
<area href="javascript:select('江西');" coords="337,268,365,286" shape="rect">
<area href="javascript:select('云南');" coords="205,308,242,325" shape="rect">
<area href="javascript:select('广西');" coords="271,312,308,332" shape="rect">
<area href="javascript:select('西藏');" coords="74,221,140,250" shape="rect">
<area href="javascript:select('甘肃');" coords="211,158,244,177,266,214,250,219,231,188,204,167,171,162,165,133,191,133,208,156"
shape="poly">
<area href="javascript:select('内蒙古');" coords="295,126,254,137,268,160,297,155,311,149,352,114,361,101,337,97"
shape="poly">
<area href="javascript:select('重庆');" coords="261,260,264,274,282,267,301,235,285,234,260,257"
shape="poly">
<area href="javascript:select('安徽');" coords="358,211,371,227,380,243,370,253,359,253,352,236,352,216,354,211"
shape="poly">
<area href="javascript:select('陕西');" coords="295,226,298,184,290,171,286,174,285,194,275,220,271,228,295,227"
shape="poly">
<area href="javascript:select('江苏');" coords="368,201,378,201,385,212,393,221,393,230,377,229,371,217,367,202"
shape="poly">
<area href="javascript:select('福建');" coords="375,313,393,275,373,270,355,299,374,312"
shape="poly">
<area href="javascript:select('海南');" coords="286,361,313,379" shape="rect">
</map>
</form>
<script src="../res/js/jquery.min.js" type="text/javascript"></script>
<script>
function select(provinceName) {
// 返回当前活动Window控件实例浏览器窗口对象通过F.wnd.getActiveWindow().window获取
var activeWindow = F.wnd.getActiveWindow();
activeWindow.window.selectProvince(provinceName);
activeWindow.f_hide();
}
//var imgClientID = '<%= imgChina.ClientID %>';
//F.ready(function () {
// // 设置图片的HTML标签属性
// F(imgClientID).el.select('img').set({ 'usemap': '#ChinaMap' });
//});
</script>
</body>
</html>