Flash 横幅中的下拉列表
我正在制作一个 Flash 横幅广告,其中包含美国各州的下拉列表。单击列表后,我想将状态代码传递到广告网址的末尾。
我以前对 ActionScript 没问题,但那是几年前的事了,我想知道是否可以让广告从父 获取 URL,然后只添加状态代码到它上面。我认为这就是 clickTags 的工作原理?
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_top");
}
}
任何人都可以提供有关如何最好地做到这一点的任何提示吗?我可以很好地构建实际的广告,只是我不确定是否需要将 50 个网址硬编码到我的下拉列表中?这似乎是一种糟糕的做事方式,我确信有更好的方法吗?
非常感谢。
I am building a flash banner ad that contains a dropdown list of US states. Once the list is clicked I want to pass the state code onto the end of the url for the ad.
I used to be ok with actionscript but it was several years ago, and I'm wondering if its possible to have the ad grab the URL from the parent <a href>
and just tack the state code onto it. I assume this is how clickTags work?
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_top");
}
}
Can anyone offer any tips on how best to do this? I'm fine with building the actual ad, its just I'm not sure if I need to hard code 50 urls into my dropdown? It seems a bad way of doing things, and I'm sure theres a better way?
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
clickTAG 是一个字符串,它是作为参数放入嵌入代码中的 URL,也是要点击的 URL。
因为它只是一个字符串,所以您可以通过编程方式向其中添加所需的任何内容。
我会这样做:
假设您想在 URL 末尾添加参数,如 ?state=NY
clickTAG is a string which is the URL that has been put as a parameter in the embed code, and is the URL to click through to.
Since, it's just a string, you can add whatever you need to it programmatically.
I would do it this way:
Say you want to add argument to the end of the URL like ?state=NY