I want a star icon image will be displayed at a time,contains two star icons, one is blank and another is yellow in colour and will be swapped as clicked or tap for touch screen devices.

And one more thing,I need is while swapping,I want to store values as 0 or 1 in flag variable.star1.jpg(blank/dull star) represent as 0 value.star2.jpg(yellow star) represents as 1.

Real life example in google restaurant result,right side star button.
<http://gilsmethod.wpengine.netdna-cdn.com/wp-content/uploads/2010/11/google-hotpot-recommendations-android-maps.png>

I want simple coding.

HTML

```
<html>
<head>
</head>
<body>

<table>
                <tbody>
                    <tr>
                        <td width="91%">Restaurant 1</td>
                        <td>
                                <a href="">
                                    <img border="0"
                                    src="star1.jpg"
                                    width="100%" height="100%" align="middle" >
                                </a>
                        </td>
                    </tr>
                    <tr>
                        <td>Restaurant 2</td>
                        <td>
                                <a href="">
                                    <img border="0"
                                    src="star1.jpg"
                                    width="100%" height="100%" align="middle" >
                                </a>
                        </td>
                    </tr>
                </tbody>
            </table>

</body>
</html>

```