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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:40:34+00:00 2026-05-31T15:40:34+00:00

Firstly I have to say I have no coding experience whatsoever, but will try

  • 0

Firstly I have to say I have no coding experience whatsoever, but will try to explain what I am trying to acheive.

I have the following code with 2 images… blue.png is a color image
bluebw.png is the same image in black and white. Code simply changes images on mouse over.

<script  type='text/javascript'>
$(document).ready(function(){
    $(".blue").hover(function() {
        $(this).attr("src","files/blue.png");
            }, function() {
        $(this).attr("src","files/bluebw.png");
    });
});
</script>

<a href="page-1.html">
<img src="files/bluebw.png" alt="dresses" class="blue" height="300" width="170" />

What I would like to do is the following:

  • add the option for fade in/out on mouseover of the 2 images (fast/slow/or none)

  • add display text on mouse over with fade in/out on mouseover (fast/slow/or none) after the image fade, format text (font/alignment/top bottom center/background/opacity)

I’m really flying in the dark here 🙂 Any help would be immensely appreciated.

Cheers

  • 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-31T15:40:35+00:00Added an answer on May 31, 2026 at 3:40 pm

    Try this:

    Suppose you have an HTML structure like this:

    <div id="element" style="position:relative;">
       <img src="image1.gif" id="img1" />
       <img src="image2.gif" id="img2" style="display:none" />
    </div>
    

    and css :

    img {
      position:absolute;
      top:0;
      left:0;
    }
    

    jQuery code:

    $("#element").hover(function() {
        //fadeout first image using jQuery fadeOut
        $("#img1").fadeOut(200);
        //fadein second image using jQuery fadeIn 
        $("#img2").fadeIn(200);
    }, function () {
        //fadeout second image using jQuery fadeOut
        $("#img1").fadeIn(200);
        //fadein first image using jQuery fadeIn
        $("#img2").fadeOut(200);
    });
    

    Here is a fiddle for demo

    Or you can use css3 transition:

    Here is a fiddle using css3 and jQuery.hover as fallback for ie

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

Sidebar

Related Questions

Firstly apologies if this is really simple but I have spent hours trying and
Firstly, I should say I'm completely new to Pylons, trying to learn web development
Let's say I have some email: some_email@yahoo.com . Firstly I would want to remove
Firstly I want to say I know little english. I have seeking about this
Firstly, I would like to say that I have tested if my link to
Evening guys. Firstly to say, I have read How do I parse XML containing
Two things: Firstly - I have version 2 of a website located in a
I have created firstly ASP.NET MVC 2 . and write more functionality. After I
Firstly, I do not have any malicious intent out of this question. I would
I have a modeling question related to profiles. Firstly, I have looked into using

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.