Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i found this answer in other question:</p> <pre><code>&lt;script src="Scripts/jquery-1.7.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $("#&lt;%=Hyperlink1.ClientID%&gt; img").hover(function () { $(this).attr("src", "/Images/logo.png"); }, function () { $(this).attr("src", "/Icons/Icon_english_a.png"); }).mousedown(function () { $(this).attr("src", "/Images/logo.png"); }).mouseup(function () { $(this).attr("src", "/Icons/Icon_english_a.png"); }); }); &lt;/script&gt; </code></pre> <p>Reference: <a href="https://stackoverflow.com/questions/20665340/hyperlink-not-being-able-to-have-image-states-i-e-onmousedown">hyperlink not being able to have image states, i.e onmousedown</a></p> <p><strong>UPDATE</strong></p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td class="nav"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:HyperLink ID="HyperLink1" CssClass="lab" runat="server" ImageUrl="~/ActiveIcons/Icon_lab_a.png" NavigateUrl="~/Tabbet.aspx"&gt;HyperLink&lt;/asp:HyperLink&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:HyperLink ID="HyperLink2" CssClass="abc" runat="server" ImageUrl="~/ActiveIcons/Icon_ABC_a.png"&gt;HyperLink&lt;/asp:HyperLink&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:HyperLink ID="HyperLink3" CssClass="math" runat="server" ImageUrl="~/ActiveIcons/Icon_math_a.png"&gt;HyperLink&lt;/asp:HyperLink&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;table&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('.nav a img').hover(function () { if($(this).parent().hasClass("lab")) $(this).attr("src", "/Images/lab_hover.png"); //if hasClass("abc") //if hasClass("math") }, function () { if($(this).parent().hasClass("lab")) $(this).attr("src", "/Images/lab_a.png"); //if hasClass("abc") //if hasClass("math") }).mousedown(function () { if($(this).parent().hasClass("lab")) $(this).attr("src", "/Images/lab_mousedown.png"); //if hasClass("abc") //if hasClass("math") }).mouseup(function () { if($(this).parent().hasClass("lab")) $(this).attr("src", "/Images/lab_mouseup.png"); //if hasClass("abc") //if hasClass("math") }); }); &lt;/script&gt; </code></pre> <p>I hope this helps you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload