クライアントサイド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
ArticleImgHPとは何ですか? – Aristos
これは実際に私の以前の質問に関連していますhttp://stackoverflow.com/questions/10227254/image-progress-bar-for-images-being-downloaded-in-website-not-working-with-aprop/10228540#comment13141900_10228540 – Learning