I thought it's more good inside a html/php since
the code sometimes doesnt loaded when using link.
It's better to separate scripts from your (X)HTML page (like you separate style from content).
It's easier to maintain, it's faster to load for users (since they don't have to download it each time), and you'll avoid some IE bugs.
oh isee thanks,