Hi all,
i need to do like ,when i place the mouse pointer on a textbox(i think its onmouseover event.not sure)
it should display or popup a small message which provides information about the format of values need to be entered in that textbox.please provide me like how can i do, is that in javascript.

Thanks in advance

Naresh

Recommended Answers

All 2 Replies

Please try this one.

<script language="javascript">
    var p=window.createPopup();
    var pbody=p.document.body;
    function show_popup()    
    {       
        pbody.style.backgroundColor="lime"
        pbody.style.border="solid black 1px"
        pbody.innerHTML="Enter value from 01 to 10."
        p.show(150,150,200,50,document.body)
    }

    function hide_popup()
    {
        p.hide();
    }
    </script>

<form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server" onmouseover="show_popup()" onmouseout="hide_popup()"></asp:TextBox>
    </div>
    </form>

wow.....,
i was been searching for last one day and i was not able to find easy solution &what ever i found were some third party,complicated code.
finally i adjusted to use textbox properties "ToolTip" which is not that much effective...........

but the solution wat you gave is pretty easy thanks a lot..........

Naresh

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.