|  | 
 
| 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:
 Step 2.复制代码javascript:jQuery(document).ready(function(){$(document).mousemove(function(e){$axure.setGlobalVariable("CurX",e.pageX); $axure.setGlobalVariable("CurY",e.pageY);});});
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两个变量移动动态面板到相应的坐标了。
 | 
 |