it does, but the problem is audio player normally works with DOMAIN URL, not path address. but i’m working on a MOD for audio player, need to use a global script (or url) to root, look at the path of this mod:
so that embed script placed into player.js , and i can’t write a certain url, cause i don’t know the all people url :) , with php we write something like this:
global $siteurl; echo ‘
but i need to do this via java script, cause audio player based on JS.
so, i need a global call script to root, or domain name, for eveyone, not only myselft, that mean, when using of this MOD, it load songs from Root, and of course i can’t tell the people, edit it manually your self.
You can get the root location very easily, however because IE is a pain in the neck you’ll need to check both _location.hostname_ and _location.host_. Here is a function that will take care of that for you.