本来就只是一个url的写法的问题
尝试了一下:


程序代码
on (release) {
a = "a.html#flag";
getURL(a, "_self");
}

结果传到网页,网址变成a.html,没有后面那段了
以为是ie的问题,后来怀疑是否url的问题,也许应该换个写法:


 程序代码
on (release) {
a = escape("a.html#flag");
getURL(a, "_self");
}

这个方法就可以,把url先处理一下就可以了


补充蓝色经典内的回答:

你这个方法只能解决部分锚点的问题,无法完美解决。
如果是跳转到当前页面的某个锚点的时候,这个方法会重新加载页面,再跳转到某个锚点。无法实现无刷新跳转。

要想实现无刷新锚点跳转,用fscommand+js的可能可以实现。

flash按钮代码:

 程序代码
on (release) {
 fscommand("anchor","#flag");
}

按钮ID,name为button。

添加到页面中<head></head>的JS代码:

 程序代码
<script language=javascript>
function button_DoFSCommand(command,args)
{if(command == "anchor"){
window.location.href=args;}
}
</script>
<SCRIPT LANGUAGE=VBScript>
Sub button_FSCommand(ByVal command, ByVal args)
call button_DoFSCommand(command, args)
end sub
</SCRIPT>




原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
发表评论
表情
emotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemotemotemotemotemotemotemotemot
打开HTML 打开UBB 打开表情 隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写
 

阅读推荐

服务器相关推荐

开发相关推荐

应用软件推荐