Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

onmouseout/onmouse over

Posted on 2004-11-02
5
Medium Priority
?
249 Views
Last Modified: 2010-08-05
Does anyone know why I can not use the onmouseover onmouseout javascript function on a div tag in asp.net.

I have used this method for years but in VS 2003 it tell me that onmouseover onmouseout is not an element of the div tag.

Cheers

Wayne
0
Comment
Question by:watherton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:dungla
ID: 12479660
just use it and ignore the warning by VS 2003. Till working

Hope this help
.:: LDLP ::.
0
 

Author Comment

by:watherton
ID: 12481069
cheers will carry on. Strange that it does not pick this up though, and there I was thinking I was working with the latest technology!

Wayne
0
 

Author Comment

by:watherton
ID: 12481073
Oh by the way, just to add, the events do nothing in the browser. They do no do any mouse over or onmouseout.

Wayne
0
 
LVL 13

Accepted Solution

by:
dungla earned 200 total points
ID: 12489429
watherton,

I use VS 2003 and till working correctly, here is my example code. My VS 2003 displayed IntelliSense for onmouseout and onmouseover of <div> tag.

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Test1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
      <HEAD>
            <title>WebForm1</title>
            <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
            <meta name="CODE_LANGUAGE" Content="C#">
            <meta name="vs_defaultClientScript" content="JavaScript">
            <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
            <script language="javascript">
                  function out(){
                        alert("Mouse out");
                  }
                  function over(){
                        alert("Mouse over");
                  }
            </script>
      </HEAD>
      <body MS_POSITIONING="GridLayout">
            <form id="Form1" method="post" runat="server">
                  <div onmouseout="out();" onmouseover="over();">Test Mouse Out/Over</div>
            </form>
      </body>
</HTML>

==========

Hope this help
.:: LDLP ::.
0
 

Author Comment

by:watherton
ID: 12491454
Dungla, that seemed to work fine, maybe it was something I was doing.

Thank you for that.

Wayne
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question