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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:57:42+00:00 2026-05-30T15:57:42+00:00

I am using FullCalendar v1.5.3 by Adam Shaw. I’ve gotten almost everything to work

  • 0

I am using FullCalendar v1.5.3 by Adam Shaw. I’ve gotten almost everything to work with it accept I am trying to do a “simple” hovertip and can’t quite get what I’m looking for.

I am trying to get the left side of my tooltip to be the same as the left side of the event I’m hovering over. And I’m trying to get the tooltip to hover above the event.

The code I am currently using appears to give me a “random” left and top of where the mouse entered the FullCalendar event.

My current code looks like:

    eventMouseover: function (event, jsEvent, view) {
            var eventInfo = $("#EventInfoTip");
            var mousex = jsEvent.pageX + 20; //Get X coodrinates
            var mousey = jsEvent.pageY + 20; //Get Y coordinates
            var tipWidth = eventInfo.width(); //Find width of tooltip
            var tipHeight = eventInfo.height(); //Find height of tooltip

            //Distance of element from the right edge of viewport
            var tipVisX = $(window).width() - (mousex + tipWidth);
            //Distance of element from the bottom of viewport
            var tipVisY = $(window).height() - (mousey + tipHeight);

            if (tipVisX < 20) { //If tooltip exceeds the X coordinate of viewport
                mousex = jsEvent.pageX - tipWidth - 20;
            } if (tipVisY < 20) { //If tooltip exceeds the Y coordinate of viewport
                mousey = jsEvent.pageY - tipHeight - 20;
            }
            //Absolute position the tooltip according to mouse position
            eventInfo.css({ top: mousey, left: mousex });
            eventInfo.show(); //Show tool tip
        } //end full calendar mouseover event

EventInfoTip is a simple span on the page:

<span id = "EventInfoTip">
I'm over an event
</span>

Is it possible to get the top and left of the current event I’m hovering over?

  • 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-30T15:57:44+00:00Added an answer on May 30, 2026 at 3:57 pm

    From docs:” Within the callback function, this is set to the event’s div” element.

    So you can use $(this).offset() to get the event div location in page.

    var elOffset= $(this).offset(), offsetLeft=elOffset.left,  offsetTop=elOffset.top
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Adam Shaw's fullcalendar jquery plugin and it works really well, after speaking
I'm looking at using Adam Shaw's excellent Fullcalendar in an application. Their is a
I'm using the FullCalendar plugin, and am very pleased with it, however I can't
Hi I'm using fullCalendar 1.5.1, and I've created a PHP query that returns almost
I'm using fullcalendar , how can I fetch more events from same server side,
I have been using fullcalendar plugin successfully for a few months and suddenly ran
I am using jquery fullcalendar and asp.net-mvc. It works fine out of the box
I am using jquery fullcalendar and it works great. My events come in from
I am using jquery fullcalendar which works great. The one issue I have is
I am using jquery and fullcalendar to schedule activities. When users select a timeslot,

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.