Change code with javascript/jquery

Change code with javascript/jquery

I have a flash music player that uses javascript for embedding. I was wondering if there was a way to dynamically change the url of the mp3 when you hit a certain page.

Is this possible?