Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Member #
    31733
    Liked
    1 times
    HTML Code:
    <div class="wrapper">
            <div class="main">
                <a href="#" onmouseover="ShowBox('.hover_box')" onmouseout="TimeOut=setTimeout(function(){HideBox('.hover_box')},1000)">mouse</a>
                <div class="hover_box" onmouseover="clearTimeout(TimeOut);" onmouseout="HideBox('.hover_box');">
                    <input type="text" />
                    <span class="word">A,B,C,D</span>
                </div>
            </div>
        </div>
    HTML Code:
    .hover_box{
        width:200px;
        height:100px;
        border:1px solid #000;
        padding:20px;
        position:absolute;
        margin-top:-80px;
        margin-left:70px;
        display:none;
    }
    you know, i just want to achieve such an effect: when you put your mouse on <a>,you can see the "hover_box".Then,you can do someting on the "hover_box",but the problem is, when i put my mouse on <input> in the "hover_box",the box will be hidden,just like the event "onmouseout" of "hover_box" is triggered.so,who can tell me how to deal with the problem.

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Put the ShowBox function on both the mouseover and focus events of the input box and you should be good to go.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:53 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com