•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 455,992 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,796 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1399 | Replies: 2 | Solved
![]() |
•
•
Join Date: Nov 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
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
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
•
•
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 111
Reputation:
Rep Power: 2
Solved Threads: 8
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>
<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>
•
•
Join Date: Nov 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: GridView TemplateField empty cells
- Next Thread: GidView RowDataBound Problem...


Linear Mode