I want to change the size of the images in javascript onmouseover.
Dim files As String() = Directory.GetFiles(Server.MapPath("~/Folder1/Folder2/"), "*.jpg")
For Each File As String In files
File = File.Substring(File.LastIndexOf("/") + 1, File.Length)
'Response.Write(File & "<br>")
File = File & "~/Folder1/Folder2/"
Dim image As Image = New Image()
image.ImageUrl = File
image.Height = 50
image.Width = 50
Me.Controls.Add(image)
image.Attributes.add("onmouseover","change size here")
Panel2.controls.add(image)
Next
Is it possible to do this here?
Here is some HTML
<asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup = "none"/>
<asp:Panel ID="Panel1" runat="server"
style="display:none; background-color:Transparent; padding:1em 6px;" BackColor="White">
<asp:Panel ID="Panel2" runat="server" style="background-color:Black;" Width="265px">
<table>
<tr>
<td align="right">
<asp:ImageButton ID="CancelButton" CssClass="bttnCancel" runat="server" Text="Cancel"
ImageUrl="~/images/bttnCancel.gif" ValidationGroup = "none" />
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>