Hi,
I am trying to write a javascript that does the following: (needs to be Javascript)
there is a sound file that is loaded on the main page
(
this sound is only loaded if the URL is accessed from another domain name. if the previous page viewed was from the same domain (blah.com), the sound is NOT played.
This seems to involve getting a referrer value and changing the action depending on it, but i honestly have no idea who to actually make the script do this. i've been trying without any luck.
Can anyone lend me a script I could use to do this?? the more thorough the better at this point, i am getting burnt on this.
Thank you VERY much.
Jennifer
I am trying to write a javascript that does the following: (needs to be Javascript)
there is a sound file that is loaded on the main page
(
this sound is only loaded if the URL is accessed from another domain name. if the previous page viewed was from the same domain (blah.com), the sound is NOT played.
This seems to involve getting a referrer value and changing the action depending on it, but i honestly have no idea who to actually make the script do this. i've been trying without any luck.
Can anyone lend me a script I could use to do this?? the more thorough the better at this point, i am getting burnt on this.
Thank you VERY much.
Jennifer