Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 595425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:03:38+00:00 2026-05-13T16:03:38+00:00

<div> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span

  • 0
<div>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
     <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
    </div>

<p id="vtip" style="position:absolute"><img id="vtipArrow" src="vtip_arrow.png" />testtest<span class="content"></span></p>

<script>

function tip(evt,s){
        $('p#vtip').show();

        xOffset = -10; // x distance from mouse
        yOffset = 10; // y distance from mouse 
        alert(evt.pageY+' '+evt.pageX)
}
</script>

in firefox it is ok,
but in ie8 it print ‘undefined undefined’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:03:38+00:00Added an answer on May 13, 2026 at 4:03 pm

    As noted, if you are going do this with straight JS, you’d have to use pageY/pageX for most browsers and clientX/clientY for IE.

    Since you’re using jQuery (I see you have $(‘p#vtip’).show(); in there), you might as well use jQuery to bind the events, too. jQuery will also normalize the way you can access the event attributes across browsers when you use it to bind the events instead of the inline events you’re using now.

    See the jQuery event docs.

    Here’s an example of how to set up the html differently. Give the spans a class and remove the onmouseover.

    <span class='tipped'>程序错误<div class="content">good</div></span><br>
    

    Assign the mouseover event to the spans with jQuery.

    <script>
      $('.tipped').mouseover(function(evt){
        $('p#vtip').show();
    
        xOffset = -10; // x distance from mouse
        yOffset = 10; // y distance from mouse 
        alert(evt.pageY+' '+evt.pageX)//this should work fine in IE too, since it's a jQuerified event object 
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my parent div, <div id=ResultsDiv class=resultsdiv> <br /> <span id=EmployeeName style=font-size:125%;font-weight:bolder;>Pandiyan</span> <span
I'm trying to get from this: @FindBy(xpath = //div/span/img) public WebElement addNew; @FindBy(xpath =
<div> <span>left</span> <span>right</span> <!-- new line break, so no more content on that line
Consider the following: <div onclick=alert('you clicked the header') class=header> <span onclick=alert('you clicked inside the
given the html: <div> <span class=a>a <span class=b>b</span> </span> <div> Is it possible to
I come across this: html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,d l,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,figure,footer,header,hgroup,menu,nav,section,menu,time,mark,audio,video{background:transparent;border:0;font-size:100%;list-style:none;margin:0;padding:0;outline:0;vertical-align:baseline;} The comment mention reset, I guess is used
I have this code style.css .row { position: fixed; top: 0; left: 0; bottom:
In the following style: .slider div div div h2 span { color:#ae663d;} What is
I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items
The span element seems to be exactly like a div, but at the in-line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.