Tim
Tim

Reputation: 2649

Email to Site Div

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

Upvotes: 0

Views: 134

Answers (2)

yoda
yoda

Reputation: 10981

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

Upvotes: 1

Greg
Greg

Reputation: 21909

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.

Upvotes: 1

Related Questions