Well, if the script works on your html page than has it to work on your PHP page, unless you're doing something wrong, whatever that might be. There's no need for another script if this one works. If you're using Firefox, then check the javascript console and see if you get any errors there.