新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论SVG, GML, X3D, VRML, VML, XAML, AVALON, Batik等基于XML的图形技术,以及有关GIS的应用。
    [返回] 计算机科学论坛XML.ORG.CN讨论区 - 高级XML应用『 SVG/GML/VRML/X3D/XAML 』 → 动态svg制作 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 18850 个阅读者  浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 动态svg制作 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客楼主
    发贴心情 动态svg制作

    <svg width="250" height="500">
    <!-- Set the background to black. To see better how this all works, set the fill style below to red -->
    <rect id="refBox" x="0" y="0" height="500" width="250" style="fill:black"/>
    <!-- Set the text. Make it vertical by rotating the whole group 90 degrees -->
    <g transform="rotate(90)" style="font-size: 14; fill: rgb(0,255,0); font-family:wingdings;">
    <text y="-15">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO</text>
    <text y="-30">hjkrdohjkh984743984u9nfdsno8hIH32mnfoj2joi</text>
    <text y="-45">gfjdJKLNGKLFDMVKjfklwjr9jfmopekr98j5jr83j</text>
    <text y="-60">KHJghjghjghjghj5Kkku373828OIJGnoigopdmoi4</text>
    <text y="-75">KHJGJDGFGFDGfklm5kfjjoijoifjkfjofdgjdij04</text>
    <text y="-90">hfgmkgmoi4jgdklm9898nmnkluhn98U09798fdgfd</text>
    <text y="-105">fdngdgdkfdggfdgg65R76G76F6BUJHB6JNBBNJHUI</text>
    <text y="-120">hjkrdohjkh984743984u9nfdsno8hIH32mnfoj2joi</text>
    <text y="-135">gfjdJKLNGKLFDMVKjfklwjr9jfmopekr98j5jr83j</text>
    <text y="-150">KHJKHJKVFDSFDSFDSmdngdnuifOIJGnoigopdmoi4</text>
    <text y="-165">KHJGJDGFGFDGfklm5kfjjoijoifjkfjofdgjdij04</text>
    <text y="-180">hfgmkgmoi4jgdklm9898nmnkluhn98U09798fdgfd</text>
    <text y="-195">fdngdgdkfdggfdgg65R76G76F6BUJHB6JNBBNJHUI</text>
    <text y="-210">hfgmkgmoi4jgdklm9898nmnkluhn98U09798fdgfd</text>
    </g>
    <!-- Create the scroll effect by moving a rectangle from the the top to the bottom across the text -->
    <!-- Also vary the opacity slightly for a cool effect -->
    <rect id="anim1" x="0" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="10s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <!-- Repeat it for each column of text, varying the start time and duration each time -->
    <rect id="anim2" x="15" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="8s" begin="1s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="5s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim3" x="30" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="5s" begin="2s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim4" x="45" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="6s" begin="3s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim5" x="60" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="13s" begin="4s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="12s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim6" x="75" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="3s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="9s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim7" x="90" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="3s" begin="5s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim8" x="105" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="5s" begin="6s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim9" x="120" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="3s" begin="7s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim10" x="135" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="3s" begin="8s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="4s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim11" x="150" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="10s" begin="6s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="8s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim12" x="165" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="3s" begin="3s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="3s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim13" x="180" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="5s" begin="5s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="8s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim14" x="195" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="13s" begin="2s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="8s" repeatCount="indefinite" />  
    </rect>
    <rect id="anim15" x="210" y="0" width="14" height="500" style="fill:black">
    <animate attributeName="y" from="-500" to="500" dur="5s" begin="3s" repeatCount="indefinite" />
    <animate attributeName="opacity" from="0.5" to="1" dur="12s" repeatCount="indefinite" />  
    </rect>
    <!-- Add an extra rectangle as a background for the DVworks text -->
    <rect id="anim16" x="10" y="238" width="0" height="15" style="fill:black">
    <animate attributeName="width" from="0" to="240" dur="18s"  begin="5s" fill="freeze" />  
    </rect>
    <!-- Create a text drop in by animating the y co-ordinate 1 letter at a time -->
    <!-- and staggering the start time of each letter -->
    <g style="font-size: 14; fill: white;">
    <!-- Start the text off the top of the page and then scroll it down -->
    <text x="15" y="-10">D
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="5s" fill="freeze" />  
    </text>
    <text x="30" y="-10">E
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="6s" fill="freeze" />  
    </text>
    <text x="45" y="-10">V
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="7s" fill="freeze" />  
    </text>
    <text x="60" y="-10">E
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="8s" fill="freeze" />  
    </text>
    <text x="75" y="-10">L
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="9s" fill="freeze" />  
    </text>
    <text x="90" y="-10">O
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="10s" fill="freeze" />  
    </text>
    <text x="105" y="-10">P
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="11s" fill="freeze" />  
    </text>
    <text x="120" y="-10">E
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="12s" fill="freeze" />  
    </text>
    <text x="135" y="-10">R
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="13s" fill="freeze" />  
    </text>
    <text x="150" y="-10">W
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="14s" fill="freeze" />  
    </text>
    <text x="165" y="-10">O
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="15s" fill="freeze" />  
    </text>
    <text x="180" y="-10">R
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="16s" fill="freeze" />  
    </text>
    <text x="195" y="-10">K
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="17s" fill="freeze" />  
    </text>
    <text x="210" y="-10">S
    <animate attributeName="y" from="0" to="250" dur="1s"  begin="18s" fill="freeze" />  
    </text>
    </g>
    </svg>

       收藏   分享  
    顶(0)
      




    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/2 10:43:00
     
     awa0508 美女呀,离线,快来找我吧!金牛座1982-5-8
      
      
      等级:大一新生
      文章:5
      积分:79
      门派:XML.ORG.CN
      注册:2004/7/30

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给awa0508发送一个短消息 把awa0508加入好友 查看awa0508的个人资料 搜索awa0508在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看awa0508的博客2
    发贴心情 
    还蛮好玩得
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/2 12:48:00
     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客3
    发贴心情 
    这个就是实现乱码效果的所在

    font-family:wingdings

    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/2 17:22:00
     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客4
    发贴心情 
    对SVG感兴趣的也太少了,好可怜呐,欣赏一点好不好。

    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/10 15:08:00
     
     wenmier 美女呀,离线,快来找我吧!
      
      
      等级:大二(研究C++)
      文章:37
      积分:262
      门派:XML.ORG.CN
      注册:2004/6/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给wenmier发送一个短消息 把wenmier加入好友 查看wenmier的个人资料 搜索wenmier在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看wenmier的博客5
    发贴心情 
    还可以嘛
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/10 16:59:00
     
     rido 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究汇编)
      文章:36
      积分:273
      门派:XML.ORG.CN
      注册:2004/7/26

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给rido发送一个短消息 把rido加入好友 查看rido的个人资料 搜索rido在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看rido的博客6
    发贴心情 
    svg要实用才好推广,比如有气象网站如此应用:
    http://www.fs121.com/record/typhoon-svg.html
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/11 8:37:00
     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客7
    发贴心情 应用上还可以,效果不太完美
    以下是引用rido在2004-8-11 8:37:47的发言:
    svg要实用才好推广,比如有气象网站如此应用:
    http://www.fs121.com/record/typhoon-svg.html

    该页面上编码有错误,不能正常显示汉字,因为它原码格式为西欧字符。

    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/11 11:12:00
     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客8
    发贴心情 
    我再发一张你看看效果如何

    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/11 11:21:00
     
     wisd0m 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:24
      积分:163
      门派:XML.ORG.CN
      注册:2004/8/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给wisd0m发送一个短消息 把wisd0m加入好友 查看wisd0m的个人资料 搜索wisd0m在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看wisd0m的博客9
    发贴心情 
    不错啊,佩服

    高手啊!我有个问题想问你,就是在这个文件里面为什么我做一次开窗放大后,再继续开窗放大就不行了!

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
    <svg id="MainMap" x="0px" y="0px" width="100%" height="100%" onload="Ini(evt)">


    <script><![CDATA[

    var opinion;
    var mx1;
    var my1;
    var svgdoc;

    function Ini(evt)
    {
     svgdoc=evt.getTarget().getOwnerDocument();
     //alert(evt);
    }

    function abcout(evt)
    {
    opinion=1;
      var mx=evt.clientX;
      var my=evt.clientY;
          mx1=mx;
          my1=my;
       //alert(mx1+"\n"+my1);   
       
    }
    function fangqi(evt)
    {
           opinion=0;
           kuang=svgdoc.getElementById('s123');
           //svgdoc.remove(kuang);
           kuang=svgdoc.getElementById('s123');
     kuang.setAttribute('x',0);
            kuang.setAttribute('y',0);
     kuang.setAttribute('width',0);
     kuang.setAttribute('height',0);
    }


    function huakuang(evt)
    {
     //alert(opinion);
     if(opinion==1)
     {
            var mx2=evt.clientX;
            var my2=evt.clientY;
     var kuang;
     var kuandu;
     var gaodu;
     kuandu=mx2-mx1;
     gaodu=my2-my1;
     //alert(kuandu+"\n"+gaodu);
            kuang=svgdoc.getElementById('s123');
     kuang.setAttribute('x',mx1);
            kuang.setAttribute('y',my1);
     kuang.setAttribute('width',kuandu);
     kuang.setAttribute('height',gaodu);
     
            }
    }
     
    ]]>
    </script>


    <rect id="kongzhi"  x="0" y="0" width="100%" height="100%" style="fill:green;opacity:0.5;stroke:blue"
      onmousedown="abcout(evt)" onmousemove="huakuang(evt)" onmouseup="fangqi(evt)"/>
    <rect id="s123"  x="0" y="0" width="100" height="100" fill="black" opacity="0.3" stroke="blue"
    onmouseup="fangqi(evt)" />
    </svg>

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/11 20:52:00
     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客10
    发贴心情 
    不知道你最终要实现什么效果,这里SCRIPT里面所捕捉的鼠标坐标是相对坐标系里的位置,在放大后所显示的是相对位置,所以放大后并不是你想象的效果。这里你可以建立绝对坐标系来实现。

    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/24 17:20:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/7/20 6:37:28

    本主题贴数17,分页: [1] [2]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    250.000ms