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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:47:46+00:00 2026-06-14T23:47:46+00:00

I am currently trying to create a login button that is similar to that

  • 0

I am currently trying to create a login button that is similar to that of dropbox. There is another thread available on how to do this, but I wish to do it differently. Note I tried to follow the code provided in that thread as close as I can, but it was a failed attempt.

Rather than having a link written in text, my button refers to a link through an image. Furthermore, when the button is pressed, I want another image to popup right below it.

Here is my code:

html/ jquery /php code:

echo '<div id = popup>';
  echo '<a href="#" id ="logbutton"></a>';
  echo '<div id = "popupimage"> </div>';
echo '</div>';

echo '<script type="text/javascript src="jquery.js">';
echo '$("#popup").click(function(e){ 
$("#popupimage").css("visibility","visible");
e.stopPropagation();
});';
echo '</script>';

css code:

#logbutton{
    top:50px;
    left:850px;
    position: absolute;
    background-image: url(../images/buttons/loginbutton.png);
    width:59px; 
    height:28px;   
}

#popupimage{
    top:63px;
    left:887px;
    position: absolute;
    background-image: url(../images/popupimage.png);
    visibility: hidden;
    width:400px; 
    height:600px;   
}

If possible I would also like to know if this can be done using html 5 and css only?

Thanks in advance

  • 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-14T23:47:47+00:00Added an answer on June 14, 2026 at 11:47 pm

    I have managed to do this. Here is the code:

        echo '<a href="#" id ="loginbutton"></a>';
    
        echo '<div id = "popup">';
        echo '<div id = "popupimage"> </div>';
    
    //HTML INSIDE POPUP
    
        echo '</div>';
    
        echo '<script type="text/javascript" src="jquery.js"></script>';
        echo '<script>';
    
        echo '$("#loginbutton").click(function(e){';
        echo '$("#popup").css("visibility","visible");';
        echo 'e.stopPropagation();';
        echo '});';
    
        echo '$("#popup").click(function(e){';
        echo 'e.stopPropagation();';
        echo '});';
    
        echo '$("body").click(function(e){';
        echo '$("#popup") . css("visibility", "hidden");';
        echo '});';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a login form on my ASP.NET website. Currently, there's
I'm currently trying to create an email application using Rails and Sendgrid. This application
I'm currently trying to create a program that estimates location based on signal strength.
I am currently trying to create an Android application that loops Audio from the
I am currently trying to create a site that filter the content based on
I am trying create a small web application that allows a user to login
I'm trying to use this gem to create a honeypot field, but I'm not
I'm a newbie of jQuery. Now I'm trying to intercept click login button that
I'm trying to create a simple login system that will have the forms and
I'm trying to create a website that allows users to login with their Facebook

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.