新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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 』 → 跟随鼠标的八条线(VML) 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 5135 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 跟随鼠标的八条线(VML) 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     gengwei80 帅哥哟,离线,有人找我吗?
      
      等级:大二期末(数据结构考了98分!)
      文章:57
      积分:450
      门派:XML.ORG.CN
      注册:2006/1/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给gengwei80发送一个短消息 把gengwei80加入好友 查看gengwei80的个人资料 搜索gengwei80在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看gengwei80的博客楼主
    发贴心情 跟随鼠标的八条线(VML)

    <!--------转自51widnows.net------------>


    <html>
    <title>跟随鼠标的八条线 -51windows.Net</title>
    <head>
    <meta name="keywords" content="51windows.Net">
    <meta http-equiv=Content-Type content="text/html; charset=gb2312">
    </head>
    <body>
    <STYLE>
    .disableHscroll{width:100%;overflow-x:hidden;overflow-y:scroll;}
    v\:* { BEHAVIOR: url(#default#VML)}
    </STYLE>
    <SCRIPT>
    var defaultcolor="#999999"
    var lineweighthighlight=1
    var lineweightnormal=1
    var distancetomouse=0
    var mousepos_x=0
    var mousepos_x=0
    var marginleft=0
    var margintop=0
    var marginbottom=0
    var marginright=0
    var margincenterx
    var margincentery
    var mousepos_x=0
    var mousepos_x=0
    if (document.all&&window.print){
      document.write('<div id="bodycontent" style="position:relative">')
    }
    function initiateanimation(){
      marginbottom=document.body.clientHeight
      marginright=document.body.clientWidth
      margincenterx=Math.floor(marginright/2)
      margincentery=Math.floor(marginbottom/2)  
      rectangulartopleft.to=marginleft+","+margintop
      rectangulartopright.to=marginright+","+margintop
      rectangularbottomleft.to=marginleft+","+marginbottom
      rectangularbottomright.to=marginright+","+marginbottom  
      rectangulartop.to=margincenterx+","+margintop
      rectangularright.to=marginright+","+margincentery
      rectangularbottom.to=margincenterx+","+marginbottom
      rectangularleft.to=marginleft+","+margincentery  
      rectangulartopleft.strokecolor=defaultcolor
      rectangulartopright.strokecolor=defaultcolor
      rectangularbottomleft.strokecolor=defaultcolor
      rectangularbottomright.strokecolor=defaultcolor  
      rectangulartop.strokecolor=defaultcolor
      rectangularright.strokecolor=defaultcolor
      rectangularbottom.strokecolor=defaultcolor
      rectangularleft.strokecolor=defaultcolor}
    function msover(thiscolorhighlight){
      if(document.all&&window.print){
        rectangulartopleft.strokecolor=thiscolorhighlight
        rectangulartopright.strokecolor=thiscolorhighlight
        rectangularbottomleft.strokecolor=thiscolorhighlight
        rectangularbottomright.strokecolor=thiscolorhighlight  
        rectangulartop.strokecolor=thiscolorhighlight
        rectangularright.strokecolor=thiscolorhighlight
        rectangularbottom.strokecolor=thiscolorhighlight
        rectangularleft.strokecolor=thiscolorhighlight    
        rectangulartopleft.strokeweight=lineweighthighlight
        rectangulartopright.strokeweight=lineweighthighlight
        rectangularbottomleft.strokeweight=lineweighthighlight
        rectangularbottomright.strokeweight=lineweighthighlight  
        rectangulartop.strokeweight=lineweighthighlight
        rectangularright.strokeweight=lineweighthighlight
        rectangularbottom.strokeweight=lineweighthighlight
        rectangularleft.strokeweight=lineweighthighlight
      }
    }
    function msout(){
      if(document.all&&window.print){
        rectangulartopleft.strokecolor=defaultcolor
        rectangulartopright.strokecolor=defaultcolor
        rectangularbottomleft.strokecolor=defaultcolor
        rectangularbottomright.strokecolor=defaultcolor  
        rectangulartop.strokecolor=defaultcolor
        rectangularright.strokecolor=defaultcolor
        rectangularbottom.strokecolor=defaultcolor
        rectangularleft.strokecolor=defaultcolor    
        rectangulartopleft.strokeweight=lineweightnormal
        rectangulartopright.strokeweight=lineweightnormal
        rectangularbottomleft.strokeweight=lineweightnormal
        rectangularbottomright.strokeweight=lineweightnormal  
        rectangulartop.strokeweight=lineweightnormal
        rectangularright.strokeweight=lineweightnormal
        rectangularbottom.strokeweight=lineweightnormal
        rectangularleft.strokeweight=lineweightnormal   
      }
    }
    function momouse(){
      if(document.all&&window.print){
        mousepos_x=document.body.scrollLeft+event.clientX
        mousepos_y=document.body.scrollTop+event.clientY  
        rectangulartopleft.from=mousepos_x+","+mousepos_y
        rectangulartopright.from=mousepos_x+","+mousepos_y
        rectangularbottomleft.from=mousepos_x+","+mousepos_y
        rectangularbottomright.from=mousepos_x+","+mousepos_y  
        rectangulartop.from=mousepos_x+","+mousepos_y
        rectangularright.from=mousepos_x+","+mousepos_y
        rectangularbottom.from=mousepos_x+","+mousepos_y
        rectangularleft.from=mousepos_x+","+mousepos_y
       }
    }
    if(document.all&&window.print){
      document.body.className="disableHscroll"
      code="<v:line id=rectangulartopleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangulartopright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangularbottomleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangularbottomright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangulartop style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangularright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangularbottom style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      code+="<v:line id=rectangularleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"
      document.body.insertAdjacentHTML("afterBegin",code)
      document.onmousemove=momouse
      window.onload=initiateanimation
    }
    </SCRIPT>
    </body>
    </html>


       收藏   分享  
    顶(0)
      




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

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

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

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/3/6 10:48:00
     
     xingkong 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:57
      门派:XML.ORG.CN
      注册:2006/3/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给xingkong发送一个短消息 把xingkong加入好友 查看xingkong的个人资料 搜索xingkong在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看xingkong的博客3
    发贴心情 
    不错啊,有创意
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/3/13 11:57: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/25 12:39:25

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

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