在动作脚本中从网站的根目录寻址

发布于 2024-09-30 01:39:01 字数 167 浏览 0 评论 0原文

我的网站中有一个 Flash 横幅,上面有一些导航链接。

因为我的网站中有几个不同的文件夹,所以我需要从根目录解决它们。

目前我像这样使用 getUrl :

getURL("ArticleList/Default.aspx");

但这不起作用。 提前致谢

I have a flash banner in my website and it has some navigation links on it .

Because I have several different folders in my website I need address them from the root .

At the moment i use getUrl like this :

getURL("ArticleList/Default.aspx");

But it doesn't work .
Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

错々过的事 2024-10-07 01:39:01

尝试使用 ~/Folder/Page.aspx。 ~ 在 ASP.NET 中表示 root

Try using ~/Folder/Page.aspx. ~ signifies root in ASP.NET

嘿嘿嘿 2024-10-07 01:39:01

您可以在嵌入 Flash 影片时使用基本参数。电影中的所有相对路径均据此解析。在这里看看 - http://kb2.adobe.com/cps/127/ tn_12701.html

You can use the base parameter while embedding the Flash movie. All relative paths inside the movie are resolved according to that. Have a look at it here - http://kb2.adobe.com/cps/127/tn_12701.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文