If you are using a standard template from Parallels, the "script approach" from Blazesoft is optimal.
Disadvantage of Blazesoft approach: you can be ending up with adding scripts on each page.
However, if you use a custom template, be aware that you can use code in the template immediately. This code will be present on each page you make.
Naturally, a custom template is a "complex" alternative.