发送电子邮件至网站部门

发布于 2024-10-08 10:14:32 字数 208 浏览 0 评论 0原文

我发送了 8 封电子邮件,并从电子邮件链接到 1 个网页。

如果 1 封电子邮件是关于特定主题的,我希望链接能够转到该网页并显示 8 个选项中该主题的 DIV。

我认为这是 javascript,如果是这样的话,有什么脚本可以使用吗?

我希望这是有道理的,但我很乐意澄清。我想我需要 javascript 来读取 id GET 变量

谢谢

I have 8 emails being sent out and 1 webpage where they are linked to from the email.

If 1 email is about a particular subject I would like the link to go to the webpage and show a DIV on the subject out of the 8 choices.

I presume this is javascript and if so how, and are there any scripts out there I can use?

I hope this makes sense, but I'm happy to clarify. I think I need javascript to read the id GET variable

Thanks

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

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

发布评论

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

评论(2

最近可好 2024-10-15 10:14:32

您已向同一网站发送了 8 封电子邮件?

让电子邮件链接到一个 URL,并附加一个 ID 作为 GET 变量:

Email 1 link: http://yousite.com/email.html?id=1
Email 2 link: http://yousite.com/email.html?id=2
Email 3 link: http://yousite.com/email.html?id=3
              ...

然后您可以使用服务器端脚本或 JavaScript 来读取 id GET 变量。

You have 8 emails sent out that link to the same website?

Have the emails link to a URL with an ID appended as a GET variable:

Email 1 link: http://yousite.com/email.html?id=1
Email 2 link: http://yousite.com/email.html?id=2
Email 3 link: http://yousite.com/email.html?id=3
              ...

Then you can use server-side scripting or JavaScript to read the id GET variable.

时光是把杀猪刀 2024-10-15 10:14:32

尽管@Greg 的方法很有用,但我会使用锚点,例如:

http://yousite.com/email.html#option1
http://yousite.com/email.html#option2
http://yousite.com/email.html#option3

Despite @Greg's approach being usefull, I would use anchors for that matter, like :

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