Setting attribute of Image Obejct jquery
<p>I have an Image object as following<br/></p>

<pre>

 var img_BlinkingGreen = new Image();
 img_BlinkingGreen.src = "Images/UIFiles/transparent-area.gif";

</pre>

<p>I want to set attributes of image object and a class and a click event. How can i do that.
I am doing like this but it is giving me an error</p>

<pre>

  img_BlinkingGray.attr({
                            position: "absolute",
                            opacity: ".1",
                            height: height,
                            width: width,
                            left: left,
                            top: top,
                            class: lnk_question
                        }).onclick("GoToStep('" + nextAns + "');");

</pre>

<p>How can i do this.</p>
