But if you you a webform hyperlink component?
Printable View
But if you you a webform hyperlink component?
Simply add the onMouseOver statement in the <asp:HyperLink> tag. You'll get a warning in the editor that it can't find the onMouseOver attribute of the HyperLink element but that doesn't matter it will just send it to the client in the anchor tag instead.
Best regards
I used this
<asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
But i got an error on it
This is the error I got
Server Error in '/oefp155' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
Source Error:
Line 12: <form id="Form1" method="post" runat="server">
Line 13: <asp:ImageButton id="imglogo" style="Z-INDEX: 101; LEFT: 11px; POSITION: absolute; TOP: 16px" runat="server" Width="105px" Height="67px" ImageUrl="file:///C:\Documents and Settings\viennematthias\My Documents\init_dotnet.gif"></asp:ImageButton>
Line 14: <asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
Line 15: <asp:HyperLink id="hplregister" style="Z-INDEX: 103; LEFT: 10px; POSITION: absolute; TOP: 129px" runat="server" Width="104px" Height="16px">Register</asp:HyperLink>
Line 16: <asp:HyperLink id="hplhome" style="Z-INDEX: 102; LEFT: 9px; POSITION: absolute; TOP: 106px" runat="server" Width="97px" Height="14px" NavigateUrl="home.aspx">home</asp:HyperLink>
Source File: c:\inetpub\wwwroot\oefp155\menu.aspx Line: 14
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3328.4; ASP.NET Version:1.0.3328.4
The problem is that you haven't quoted the onMouseOver attribute value and you don't have the ending semicolon (remember that this is JavaScript code):Quote:
Originally posted by matjev
I used this
<asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
Best regardsCode:onMouseOver="window.status='Test'; return true;"
No I used the code
<asp:HyperLink onMouseOver="window.status='Test'; return true;" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
The problem now is that teh window.status is always test except when I'm on the hyperlinkt.
It's the opposit of the the thing it should be