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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:29:41+00:00 2026-05-27T15:29:41+00:00

I am working with a banner, which have some buttons that I control with

  • 0

I am working with a banner, which have some buttons that I control with the events onmouseover() and onmouseout() with the tag as follow:

<img src="image_1.png" 
     onmouseover="this.src='image_2.png'"
     onmouseout="this.src='image_1.png'" />

This is working perfectly, but I want to know if there is some kind of event of holding an image when it has been clicked, in order to know on which zone I am working on.

I hope I made myself clear.

Supose I have SECTION 1, SECTION 2, SECTION 3. So, when I select SECTION 1, the image SECTION 1, appears to be selected the hole time I am working on that SECTION. If I change to SECTION 2, only the image of SECTION 2 appears to be selected, and so on!

  • 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-27T15:29:42+00:00Added an answer on May 27, 2026 at 3:29 pm

    You can try jquery hover to keep the current actions.

    fiddle example:

    <img src="image_1.png" />
    
    <script>
    $('img').hover(
     function(){
       $(this).attr('src','image_2.png');
     },
     function(){
       $(this).attr('src','image_1.png');
     },
    );
    </script>
    

    Maybe, other option could be a css :hover and :active filters, using background propertie.
    See this css example

    .Myimg{
     display:block;
        width: 100px;
        height:100px;
        background-image:url('img1.jpg');
    }
    
    .Myimg:hover{
       background-image:url('img2.jpg');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iAd banner and fullscreen ad, that both were working just last
I have this banner rotator which is working fine except for one problem... This
Working on a project that parses a log of events, and then updates a
Working with python interactively, it's sometimes necessary to display a result which is some
I am working on some JS to display a Twitter-eque error/success banner. I would
I am working on app in which I have to parse below JSON. Anyone
Ok, I have this thing working. Rollover the links and it changes the banner/pic.
I'm working on an Ad SDK for iOS and I have a narrow banner-size
I'm working on a website which has advert banners which link to external pages.
Working with a SqlCommand in C# I've created a query that contains a IN

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.