【发布时间】:2015-03-12 06:29:49
【问题描述】:
当用户访问此页面时,我正在运行 adobe edge 动画脚本,我希望页面在边缘脚本完成后自动将用户重定向到新页面 (first.html)。如果我使用 window.location.href,无论我把它放在哪里,当页面加载时,边缘脚本都不会运行,它只会将我引导到新页面。我应该使用不同的功能吗? setTimeout 也许?也无法让它工作。
<script type="text/javascript" charset="utf-8" src="index_edgePreload.js"></script>
<style>
.edgeLoad-EDGE-132380638 { visibility: hidden; }
</style>
<!--Adobe Edge Runtime End-->
</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="EDGE-132380638"> </div>
</body>
<script>window.location.href = "first.html";
</script>
</html>
【问题讨论】:
标签: javascript adobe-edge