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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:26:54+00:00 2026-06-14T12:26:54+00:00

I am new in Web Programming. I want to implement something like in facebook,

  • 0

I am new in Web Programming.

I want to implement something like in facebook, when we hover our mouse on the link, a arrow-floating-div that anchor on the link will be showed on top of it.

How do you all address that kind of component? The closest library that I found is http://gristmill.github.com/jquery-popbox/ This does not work sometime, in some browser. Further search for “Popbox” does not show any useful result. Can anyone recommend any similar library like the link I posted? It can be using Jquery, Javascript, CSS, html or etc.

Instead of using library, can anyone show me how to do it without using library, in a simplest of way. I just want to know the rough idea behind. Most of the library come with complicated code, is hard to learn for beginner.

Thank very much in advanced.

  • 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-06-14T12:26:55+00:00Added an answer on June 14, 2026 at 12:26 pm

    Check this working demo: http://jsfiddle.net/fedmich/Aapw6/

    You’ll need to create an image of the arrow on top and centered in the popup box and then generally move the popup box to follow the target anchor.

    $('.hover').hover(function(){
            var popup_div = $('.popup_div');
            var obj = $(this);
            var offset = obj.offset();
    
            var new_top = offset.top + 30;
    
            var new_left = offset.left;
    
            new_left = new_left - ( popup_div.width() / 2);
            new_left = new_left + ( obj.width() / 2);
    
            popup_div.css('left', new_left + 'px');
            popup_div.css('top', new_top + 'px');
    
            popup_div.show();
        }
        , function (){
            //hovered away so hide popup
            $('.popup_div').hide();
        }
        );
    

    CSS code should be position absolute

    .popup_div{
        position:absolute;
        left:100px;
        top:100px;
        border:1px solid red;
        background-color:blue;
        width:150px;
        height:150px;
        background:url("http://i.imgur.com/zFWft.png") no-repeat scroll center 0 transparent;
        text-align:left;
    }
    

    you could do this via getting the positioning of the target div and then getting the center by dividing the width by half and adding it to the left.

        new_left =  hovered_thing.left + (hovered_thing.width / 2) - (popup_div.width / 2)
    

    let me make you some fiddle for this shortly
    on another note though, have you tried hovercards? might be similar to what you want to do

    http://designwithpc.com/Plugins/Hovercard

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

Sidebar

Related Questions

I'm new to Web programming! I try to make an app (something like Client
I am new to web programming,learning VBScript.I want to display few text boxes in
I am new to web programming. I want to create buttons in html and
Hi I am new to web programming. I want to create a template sort
I'm new to Web java programming. I want to create a simple JSF modular
I'm very new to web programming and jQuery. I want to load images and
I am new to web programming and Visual Web Developer. I have made a
I am new to web programming and my first draft of a web page
I'm pretty new to web programming, reading a book on ASP.NET, and I notice
I'm new to web programming in general so this is probably a really simple

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.