flash 调用 脚本
Copy the script from here and then paste it in to the head of the HTML document that contains your Flash movie.
从此处复制脚本 ,然后将其粘贴到包含Flash电影HTML文档的开头。
<script type="text/javascript"> <!-- function shake(n) { if (parent.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); } } } } // --> </script>To create the flash movie,
要创建Flash电影,
1. Open a new flash movie. 2. Create a button in flash, right click on it, and insert the actions below:
1.打开一个新的Flash电影。 2.在Flash中创建一个按钮,右键单击它,然后插入以下操作:
on (press) { getURL ("javascript:shake(5)"); }翻译自: https://www.sitepoint.com/script-shaking-window-effect/
flash 调用 脚本