原创  c#(SVG)无刷新,动态执行Javascript处理SVG对象:包含SVG的 页面.aspx (一) 收藏

 ==========  包含SVG的 页面 ==============
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NodeSide.aspx.cs" Inherits="NodeSide" %>

<!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 runat="server">
    <title>设备布置图</title>
    <script id="tscript" language="JavaScript"></script>
    <script language="javascript" type="text/javascript">
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth,screen.availHeight);
        function refreshSVG(){
          tscript.src="ajax.aspx"; //执行 ajax.aspx , 返回javascript脚本,并执行脚本
          //alert("refreshSVG");
        }
    </script>   
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" scroll="no"><!-- onload="setInterval('drawNode()',5000)"-->
<form id="form1" runat="server">
    <!-- src="userPos.svg"  SVG的 动态加载.cs  -->
    <embed id="thesvgdoc" runat="server" type="image/svg+xml" src="test.SVG" width="100%" height="100%" pluginspage="http://www.adobe.com/svg/viewer/install/"></embed>

</form>
</body>
</html>

发表于 @ 2007年08月30日 11:59:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:诗词 | 新一篇:c#(SVG)无刷新,动态执行Javascript处理SVG对象:包含SVG的 页面.cs源码 (二)

  • 发表评论
  • 评论内容:
  •  
Copyright © luckyjan
Powered by CSDN Blog