Adding to favorites

can someone give me html code to add to a button that adds the page to favorites. I have tried and tried with script but nothing. I dont want a return message or a form button i want to add my own img src button to it.