473,409 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

display short message

hi, I want to show some message in a box when the mouse is over a
button (examples: undo, save, open, ecc ) like in some interface. I
don't want to display the mesage in an alert window. Someone can help
me please?
thanks

Dec 22 '05 #1
4 1318
stefano escreveu:
hi, I want to show some message in a box when the mouse is over a
button (examples: undo, save, open, ecc ) like in some interface.


There are thousands of tooltip codes over the web =]

Here is just another one...
http://jsfromhell.com/dhtml/tooltip

There are others where you just need to set the "title" attribute off
the element {<input title="Do..."} and it adds the tooltip
automatically for it, but the title isn't a kind of global attribute
and, it isn't right to create your own properties like <input
tooltip="Do bla bla bla"... />
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com

Dec 22 '05 #2
"stefano" <st**********@tiscali.it> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
hi, I want to show some message in a box when the mouse is over a
button (examples: undo, save, open, ecc ) like in some interface. I
don't want to display the mesage in an alert window. Someone can help
me please?
thanks


Try <type="button" value="Save" title="Click to Save">
Dec 22 '05 #3
Jonas Raoni wrote:
stefano escreveu:
hi, I want to show some message in a box when the mouse is over a
button (examples: undo, save, open, ecc ) like in some interface.


There are thousands of tooltip codes over the web =]

Here is just another one...
http://jsfromhell.com/dhtml/tooltip


| <script type="text/javascript">
| //<![CDATA[
|
| new ToolTip(document.getElementById("a"), "primeira linha<br /><b>segunda
| linha</b>", "RED", true);
| new ToolTip(document.getElementById("b"), "primeira linha<br /><b>segunda
| linha</b>", "GREEN" );
|
| //]]>
| </script>

That is nonsense.

In XHTML, the `script' element's content model is PCDATA, so the
"<![CDATA[" will never be passed to the script engine; no need
to comment out anything.

In HTML, the `script' element's content model already is CDATA, so the "
[CDATA[" is passed as-is to the script engine, which will ignore it
because of the single-line comment; however, before the markup parser
passes that code to the script engine, it will look for the first
occurrence of the End Tag Open (ETAGO) delimiter "</" to delimit that
CDATA content; it can be found at "</b>", so what is passed to the
script engine is

| //<![CDATA[
|
| new ToolTip(document.getElementById("a"), "primeira linha<br /><b>segunda
| linha

which contains an unclosed string literal for the script engine, a
SyntaxError.

A reasonable approach would be to serve either XHTML as
application/xhtml+xml (with the disadvantage that IE does
not understand it) and use

<script ...>
<![CDATA[
...
]]>
</script>

or serve HTML as text/html and use

<script type="text/html">
new ToolTip(
document.getElementById("a"),
"primeira linha<br><b>segunda linha<\/b>", "RED", true);
new ToolTip(
document.getElementById("b"),
"primeira linha<br><b>segunda | linha<\/b>", "GREEN");
</script>

while creating ToolTip() objects that are subject to garbage-collection
directly after creation is still questionable.
PointedEars
Dec 22 '05 #4

Jonas Raoni wrote:
stefano escreveu:
hi, I want to show some message in a box when the mouse is over a
button (examples: undo, save, open, ecc ) like in some interface.


There are thousands of tooltip codes over the web =]

Here is just another one...
http://jsfromhell.com/dhtml/tooltip

There are others where you just need to set the "title" attribute off
the element {<input title="Do..."} and it adds the tooltip
automatically for it, but the title isn't a kind of global attribute
and, it isn't right to create your own properties like <input
tooltip="Do bla bla bla"... />
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com


Dec 27 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Scott Vercuski | last post by:
Hello All, I'm having a problem saving/displaying multiple lanaguages on an ASP page. Here's the general problem I'm having. I have an admin area of a website that allows a user to enter items...
23
by: news.hku.hk | last post by:
suppose i have: int price1 = 35000; int price2 = 600; int price3 = 8765; int price4 = 120000; int price5 = 3800000; and i want to output to screen the following:
33
by: selowitch | last post by:
I've been searching in vain for a way to present typographically correct fractions (not resorting to <sup> and <sub> tags) but have been frustrated by the fact that the glyphs for one-half,...
1
by: Craig Banks | last post by:
If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over several datagrid rows so...
3
by: Marauderz | last post by:
Hello guys, got a little question regarding the regional language settings . Anyway I got a Windows 2003 Server machine that was installed with the date format "dd/MM/yyyy" and location still...
7
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
5
by: Hoss | last post by:
Hello all, Ill try and make this short and sweet. I have the following Javascript being executed when the user clicks a button function myFunc() { -- Get some values from elements on the...
6
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I use datagrid to store XML file information for selecting a XML from database, and a textbox, txtXML, for displaying a selected XML. When I dispaly a XML in the textbox at firstime, it OK. But...
3
by: =?Utf-8?B?Umljb2hEZXZlbG9wZXI=?= | last post by:
I have a class library project that uses unmanaged C dll to perform some image handling. This DLL requires me to pass in a structure containing image coordinates. In VB6, I could use a...
3
by: engteng | last post by:
How to display OS Name in short Name eg Win Vista SP1 Win XP 2003 SP2 Regards, Tee ET
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.