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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:27:16+00:00 2026-05-17T02:27:16+00:00

I have a idea, a way to give user feedback i like to hover

  • 0

I have a idea, a way to give user feedback
i like to hover on a menu, that will highlight an img correcponding to the menu
OR theinverse, hover over image will highlight the menu

I think it can be done with jquery, but can it be done in pure css or do you have a example or code i can base my idea on

thanks

  • 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-17T02:27:17+00:00Added an answer on May 17, 2026 at 2:27 am

    So in jQuery as far as I understand you have a menu and some images:

    <ul>
    <li><a href="#">item 1</a></li>
    <li><a href="#">item 2</a></li>
    </ul>
    
    ...
    
    <img src="/img1.jpg" />
    <img src="/img2.jpg" />
    

    First you need something to link the two, such as a class or rel reference

    <ul>
    <li><a href="#" rel="img1">item 1</a></li>
    <li><a href="#" rel="img2">item 2</a></li>
    </ul>
    
    ...
    
    <img src="/img1.jpg" id="img1" />
    <img src="/img2.jpg" id="img2" />
    

    Then using jQuery you could add a class to the elements on rollover

    $(function(){
        $('li a').bind('mouseenter mouseleave',function(e){
            $(this).toggleClass('highlight');
            $('#'+$(this).attr('rel')).toggleClass('highlight');
        });
        $('img[id^=img]').bind('mouseenter mouseleave',function(e){
            $(this).toggleClass('highlight');
            $('a[rel='+$(this).attr('id')+']').toggleClass('highlight');
        });
    });
    

    You could use anything really as an indentifyer using .text() or .atrr(‘src’)
    The highlight class would contain the styles for your rollover, which could obviously be different for the menu and image either with li .hightlight and img .highlight or using different classes.

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

Sidebar

Related Questions

I currently have functionality on a page to give a user suggestions based on
I have a product table with 100000 products and also I have a user
I have a PHP script that takes about 10 minutes to complete. I want
I need to make something like google-analytics, I mean that it has to be
does anyone have an idea or developed before windows authentication through flex application. I
So I have an app (tool) that uses .NET 3.0. When run on a
I have implemented a Splash Screen according to WiredPrairie unmanaged c++ splasher class. But
Currently my program allows the user to enter 5 integers which are used to
Is there a way to actively serve Apache's default, built-in 404 page for a
I'm looking for a solution to a recurring problem I have with form based

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.