change content when mouse over the item

Posted on 2008-11-18
Last Modified: 2012-05-05
Hi, experts:
I look this web site []. I know that it embeds a Flash file.
I would like to implement the menu. When mouse over 'Review', the content below the menu will change. How could I do that by pure CSS or CSS + Javascript? Could you tell me ? Thank you.
Question by:TKD
    LVL 13

    Expert Comment

    I personally use QuickMenu from Opencube (, it's one of the best available and can create both CSS and CSS + Javascript menus.
    LVL 13

    Accepted Solution

    This would be fairly easy to create yourself.
    All it takes is a DIV and some javascript.

    For example (from the head so not tested!)

       function ChangeDesc(item) {
         if (item == 1) {
            document.getElementById("ShortDesc").innerHTML = "New description here";

        <span id='menuItem1'><a onclick='ChangeDesc(1)'>review</a></span>
        <span id='menuItem2'><a onclick='ChangeDesc(2)'>news</a></span>

    <div id='ShortDesc'>large block below the menu</div>

    Not perfect, but should give you a good idea on how to accomplish what you want..


    Author Closing Comment

    Thank you.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now