Probably by using a Javascript and if you search the forums, you'll find threads/information about including scripts with vshare... if I remember right you have to add the tags {virtual} and {/virtual} or something like that...or {literal} {/literal} and you put your script code between the tags.