getURL实现框架的更新 |
| 作者:wetogeth… 来源:闪吧 更新:2005-12-17 12:22:25 错误报告 我要投稿 |
|
getURL可以实现框架的更新
先在DW里面创建一个框架,分别为:index.htm(框架文件)框架的设置如下,主要是设置子框架的名称和对应的页面,这里名称分别设置为:topFrame,left,main
<frameset rows="130,*" cols="*" frameborder="NO" border="0" framespacing="1"> <frame src="top.htm" name="topFrame" scrolling="1" noresize> <frameset rows="*" cols="219,*" framespacing="0" frameborder="1" border="1" bordercolor="#999999"> <frame src="left.htm" name="left" scrolling="yes" noresize> <frame src="main.htm" name="main"> </frameset> </frameset>
top.htm(放Flash用的) , left.htm(左边页面) , main.htm(右边页面)。 然后再做两个链接的页面(用来测试FLASH调用是否成功):left1.htm , main1.htm
在Flash里面添加两个按钮,AS如下 第一个按钮:
on (click) { getURL("main.htm", target="main"); getURL("left.htm", target="left"); }
第二个按钮:
on (click) { getURL("main1.htm", target="main"); getURL("left1.htm", target="left"); }
测试一下,可以调用了 |
|
| 文章录入:skyuu 责任编辑:skyuu |
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |