查看: 1123|回复: 0
打印 上一主题 下一主题

把Axure用的更强大

[复制链接]

1313

主题

1337

帖子

5644

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5644
跳转到指定楼层
楼主
发表于 2014-8-27 00:17:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[/url]

把Axure用的更强大


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:
    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两个变量移动动态面板到相应的坐标了。


[url=http://www.webppd.com/misc.php?action=viewthreadmod&tid=8874]本主题由 尹广磊 于 2013-9-14 20:20 移动

收藏分享评分

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?马上注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

毒镜头:老镜头、摄影器材资料库、老镜头样片、摄影
爱评测 aipingce.com  
快速回复 返回顶部 返回列表