I have some asp:images. what i want to do is when i mouse over them they chainge the imageUrl in the mainImage of type asp:image
any ideas on how to do this
cheers
frankimageId.attributes.add("onmouseover","this.src='http://www.webdeveloper.com/forum/archive/index.php/newImage.jpg'")
imageId.attributes.add("onmouseout","this.src='http://www.webdeveloper.com/forum/archive/index.php/orgImage.jpg'")
EricimageId.attributes.add("onmouseover","this.src='http://www.webdeveloper.com/forum/archive/index.php/newImage.jpg'")
imageId.attributes.add("onmouseout","this.src='http://www.webdeveloper.com/forum/archive/index.php/orgImage.jpg'")
Eric
This is of course javascript. You cannot actually dynamically change the url for an asp:image which is a server side control using a server side script. For a server side script to execute the client most post back to the server, that cannot be done by simply clicking on a url, you need to click a button or request a new page or something.
any ideas on how to do this
cheers
frankimageId.attributes.add("onmouseover","this.src='http://www.webdeveloper.com/forum/archive/index.php/newImage.jpg'")
imageId.attributes.add("onmouseout","this.src='http://www.webdeveloper.com/forum/archive/index.php/orgImage.jpg'")
EricimageId.attributes.add("onmouseover","this.src='http://www.webdeveloper.com/forum/archive/index.php/newImage.jpg'")
imageId.attributes.add("onmouseout","this.src='http://www.webdeveloper.com/forum/archive/index.php/orgImage.jpg'")
Eric
This is of course javascript. You cannot actually dynamically change the url for an asp:image which is a server side control using a server side script. For a server side script to execute the client most post back to the server, that cannot be done by simply clicking on a url, you need to click a button or request a new page or something.