Php and toolbars/add-ons/extensions

hi,

i’ve implemented some api methods using php.

i want to develope a toolbar/extension for ie/ff that will call one of my api methods.

when someone right clicks an image(that’s in the browser), i want there to be a menu option that will call my api method and pass the image url to that method as a POST var.

so what do i need to do to build this extension/toolbar for the different browsers? is there one solution that will work for all browsers? what programming language/environemnt is used to build browser toolbars?

thanks