查看: 4647|回复: 2

把Axure用的更强大

[复制链接]

0

主题

5

回帖

63

积分

会员

Rank: 5Rank: 5

积分
63
发表于 2013-9-14 17:52:18 | 显示全部楼层 |阅读模式
尹广磊公众帐号
js脚本执行。
通过搜索国外的axure论坛发现,很多人通过在当前页打开链接的方式来执行一段js脚本,从而可以得到更强大的功能。

比如获取当前鼠标的坐标:
WARNING : Does not work in Internet Explorer. Chrome tested fine. (There's probably a fix for this, but i only needed chrome)

【翻译】只在chrome中能能够正确工作


Step 1.
Create a case in your Page Interactions...

OnPageLoad
Open Link in Current Window
Select 'Link to an external url or file'

【翻译】在OnPageLoad的页面事件中添加在当前页打开链接的交互动作


Copy and paste this into the Hyperlink box...

【翻译】粘贴以下代码到超链接地址的框中

Code:
  1. javascript:jQuery(document).ready(function(){$(document).mousemove(function(e){$axure.setGlobalVariable("CurX",e.pageX); $axure.setGlobalVariable("CurY",e.pageY);});});
复制代码
Step 2.
Create two variables in the usual way : 'CurX' and 'CurY'
【翻译】创建两个全局变量 'CurX' 和 'CurY'

CurX will now store the mouse X postion
CurY will now store the mouse Y postion

Step 3.
You can now use 'Move Panel(s)' using these new variables
你现在可以通过CurX和CurY两个变量移动动态面板到相应的坐标了。

0

主题

5

回帖

63

积分

会员

Rank: 5Rank: 5

积分
63
 楼主| 发表于 2013-9-14 17:53:21 | 显示全部楼层

0

主题

19

回帖

11

积分

会员

产品经理一枚

Rank: 5Rank: 5

积分
11
QQ
发表于 2013-9-17 22:39:06 | 显示全部楼层
表示没怎么看懂~
求职:移动端产品经理  深圳  QQ:160226466
您需要登录后才可以回帖 登录 | 新用户注册

本版积分规则

QQ|手机版|友情链接|版权声明|关于我们|Axure中文社区 |网站地图

GMT+8, 2024-4-20 01:15

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表