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 6083087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:21:45+00:00 2026-05-23T11:21:45+00:00

Here is my problem I want to move a div from its position to

  • 0

Here is my problem

I want to move a div from its position to the mouses position when i mouseover an element.

Almost like a “tooltip”, but when i mouseover it doesnt move. Here is the code:

$item.mouseover(function (){

//make visible
   $tooltip.show();

    //change left and top values to mouse values
   $tooltip.css("left","event.clientX + 'px'");
   $tooltip.css("top","200px");         
 });

The “event.clientX + ‘px'” doesn’t seem to work, is there anyway i can get this to work?
The top attribute is changed without problems but I cant get the mouse value to work.

how can i change the item.left & .top values to that of the mouses?

ty in advance!

-Thaiscorpion

edit:
Wow thats for the really super fast answers im gonna trythem right now thanx!!

  • 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-23T11:21:46+00:00Added an answer on May 23, 2026 at 11:21 am

    You’re treating the event object as a string. So your call to $.css() would be more like this:

    $item.mouseenter(function(event){
      $tooltip
        .show()
        .css({
          left: event.clientX + "px",
          top: '200px'
      }); 
    });
    

    Demo: http://jsbin.com/uzicek/5/edit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my Problem, I want to pass the integer 1 when this canvas
So here is my problem. I want to redirect name.domain.com/trips/1 to domain.com?username=name&trip=1 using modrewrite.
So here is my problem. I want to store 2-tuple (key, val) and want
i have a problem here, i want to make a multiple toolbar which works
So, what's the problem? I've got a div with position:absolute property. Now - I
I want to securely move a big file from one computer to another, where
I want to move a long-running process in an Java EE application from synchronous
I'm learning how to drag-and-drop-move DIV's around the document in javascript. Here is a
I am having problems here if I want to check if eerste points to
Maddening problem here. When my page loads: <body onload=getClientDateTime();> It runs this function: document.getElementById('ClientDateTime').value=hello

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.