|
-
Nov 7th, 2001, 05:23 AM
#1
Thread Starter
Lively Member
But if you you a webform hyperlink component?
-
Nov 7th, 2001, 05:47 AM
#2
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
-
Nov 7th, 2001, 05:55 AM
#3
Thread Starter
Lively Member
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>
-
Nov 7th, 2001, 05:55 AM
#4
Thread Starter
Lively Member
-
Nov 7th, 2001, 05:56 AM
#5
Thread Starter
Lively Member
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
-
Nov 7th, 2001, 06:37 AM
#6
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>
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):
Code:
onMouseOver="window.status='Test'; return true;"
Best regards
-
Nov 7th, 2001, 07:02 AM
#7
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|