hi..

i want to know how we can attach a ext. javascript to server controls like buttons or Imagebuttons. cause in my app. im using few image buttons. i want to change the image of image button on mouseover event, but when i try to write properties in my source code, it says its not a valid attribute of element Imagebutton..

can anybody please tell me how i can use my ext. .js file to change the image or the color of particular imagebutton?

Thanks,

no..thats just some info about images & abt javascripts...nthn else...

ImageButton onclick is working for me,For you if it's not working then try dynamic html,

<td id=cell runat="server">
</td>
<input id=addimage runat=server onclick="fun();"/>

in js
function fun()
{
var img="<img src='sample.gif'  border=0>"
addimage.innerhtml=img;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.