1
ソースイメージファイルが特定のものかどうかをチェックするjqueryスクリプトでIfステートメントを作成する方法がわかりました。If Ifステートメント内でコードを実行します。ifステートメントのソースイメージを確認する
<li class="levelOne" ><a class="button notice buttonEight" href="#">
<asp:image id="importantImg" runat="server" ClientIDMode="Static" /></a></li>
</ul>
<asp:PlaceHolder ID="contentPlaceholder1" runat="server" EnableViewState="false" />
</div>
<div id="headerAlertMessage" runat="server" ClientIDMode="Static" style="display:none">
<div id = "divLayer1" class="alertPod">
<img src="<%= Page.ResolveUrl("~/{0}/_res/_images/icon_alertMessage.png", PBS.Cms.Settings.PBSFolderName) %>" />
</div>
<div id = "divLayer2" class="msgPod">
<div id="divLayer3" class="messageWrapper">
<h6>IMPORTANT ANNOUNCEMENT</h6>
<div id="divLayer4" class="box" >
<div id = "divLayer5" class="viewport" style="overflow: auto; height: 48px;" runat="server">
<p>
<asp:Literal ID="ltimportantannouncementTitle" runat="server"></asp:Literal>
<br />
<asp:Literal ID="ltimportantannouncementSummary" runat="server"> </asp:Literal>
</p>
</div>
</div>
</div>
<a href="#" ><img id="alertCloseBtn" ClientIDMode="Static" src="<%= Page.ResolveUrl("~/{0}/_res/_images/button_alertMsgClose.png", PBS.Cms.Settings.PBSFolderName) %>" /></a>
</div>
</div>
おかげで、働いていました! – jre247
@ jre247あなたが答えを気に入ったら、左のチェックマークをクリックしてそれを受け入れるべきです。 – philipvr