我需要綁定客戶端的onLoad
事件與ASP.Net圖像控件。我試了很長時間沒有成功。圖像控件的OnLoad客戶端事件
功能名稱onload="onLoadFunction(this)"
腳本:
function onLoadFunction(img) {
$(img).css("visibility", "visible"); // Using jQuery
// img.style.visibility = "visible"; // Using just javascript.
}
標記:
<asp:Image ID="imgTopFourImg2" runat="server" width="170px" height="112px" CssClass="ArticleImgHP" border="0" ImageUrl="hello.jpg" OnLoad="onLoadFunction(this)" />
它不是爲我工作,我將不勝感激,如果有人能幫助我與此有關。
你在Firebug中看到什麼? – SLaks 2012-04-19 13:57:58
ArticleImgHP是什麼? – Aristos 2012-04-19 14:01:50
這實際上與我以前的問題有關http://stackoverflow.com/questions/10227254/image-progress-bar-for-images-being-downloaded-in-website-not-working-with-aprop/10228540#comment13141900_10228540 – Learning 2012-04-22 04:12:56