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

  • Home
  • SEARCH
  • 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 7966885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:33:10+00:00 2026-06-04T06:33:10+00:00

what do i need to do beacuse i am new to jquery is the

  • 0

what do i need to do beacuse i am new to jquery is the following:
I want: when the user clicks an exact link. An exact image should appear in the middle of the screen with a fade effect or without (whatever easier) and then it will disappear after 4 seconds.

In the head i included this:

<script src="http://code.jquery.com/jquery-latest.js"></script>

In the Body i included this:
<a href="#" id="myLink">click</a>
<img src="achievement.png" id="myImage" style="display:none">

i figured it out, now how do i set it to overlay over the content of the website? CSS probably

  • 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-04T06:33:12+00:00Added an answer on June 4, 2026 at 6:33 am

    What about something like this:

    $('#myLink').click(function(){
        $('#myImage').fadeIn().delay(4000).fadeOut();
    });
    

    Here is a good way to center an image on the screen using css:

    html:

    <div id="myImage"></div>

    css:

    #myImage{
        position:fixed;
        left:0;
        right:0;
        top:0;
        bottom:0;
        background: url(path/to/image.png) center center no-repeat;
    }
    

    note that I’m using a <div> tag with a background image instead of a <img> tag. This is much easier to center using css.

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

Sidebar

Related Questions

I have the following jQuery (admittedly messy at the moment) which appends a new
I am pretty new to jQuery, so I need some help here: I just
I downloaded MVC Fool Proof Validation from http://foolproof.codeplex.com/ Beacuse I am in need of
I want to declare static(or not static) variable inside Enum. I need this because
I am overriding sessionscontroller because I need a special behavior. When the user signs
I'm new to jquery and even after looking at examples it eludes me. I
I have the following problem: I have a form I need to serialize but
I'm new with JavaScript and jQuery. I clonned below html table with this jQuery
I'm new to jQuery (1.5 months) and I've found myself developing a PHP +
The following code is in PHP. I want to do the same in Java.

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.