客户端层(div)的拖动效果

翻译|其它|编辑:郝浩|2004-01-18 14:25:00.000|阅读 1781 次

概述:

# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>

Dynamic Properties Sample

Expressions are ideal for working with several objects that rely upon a particular value, such as a script variable, rather than the measurements of other objects. In this sample, four DIV elements have been positioned around a fifth, larger DIV. The four smaller DIV elements are positioned using the measurements of the the center DIV and a script variable, iOffset. When the center DIV is moved around the screen (just click and drag), the four smaller DIV elements move in unison. Rather than write script to move the four smaller elements, expressions are used based upon the location of the fifth element. In addition to accounting for the changing location of the center element, the four smaller elements also take into account the value of the script variable used for the offset. If you change the value in the text field below, the offset values are changed without having to reset the positions.


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP