how to produce a tooltip ( like one we have in VB ) ?
am 17.11.2007 07:31:30 von dgsHow to produce a tooltip ?
Like one we have in VB as elements attribute.
Is there any function for it ?
How to produce a tooltip ?
Like one we have in VB as elements attribute.
Is there any function for it ?
"dgs"
news:4961c559-f577-4670-81a2-7789e9620205@a39g2000pre.google groups.com...
> How to produce a tooltip ?
> Like one we have in VB as elements attribute.
> Is there any function for it ?
In HTML, simply use a "title" attribute to just about any tag.
It'll operate in the browser just like a Windows tooltip.
dgs wrote:
> How to produce a tooltip ?
> Like one we have in VB as elements attribute.
> Is there any function for it ?
The truly simple way is to use the title attribute.
You can use javascript to generate fancy tooltips, but
title="xxxx" is just much easier and will display as a tooltip in
most browsers.
bill
bill wrote:
> dgs wrote:
>> How to produce a tooltip ?
>> Like one we have in VB as elements attribute.
>> Is there any function for it ?
>
> The truly simple way is to use the title attribute.
> You can use javascript to generate fancy tooltips, but title="xxxx" is
> just much easier and will display as a tooltip in most browsers.
>
> bill
>
Which works only in IE...
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
dgs wrote:
> How to produce a tooltip ?
> Like one we have in VB as elements attribute.
> Is there any function for it ?
>
You can't with PHP. PHP is server side, tool tips are client side.
You can do it in html for IE, or using CSS for others. Try alt.html
and/or comp.infosystems.www.authoring.stylesheets.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Interesting, I didn't know about title="xxx" working in IE,
which I use occasionally, for testing only.
......so, to make tooltips that work in all browsers, you could
use the css2 hidden span trick for Firefox, Safari, Opera, Konqueror
and IE7. For IEsicks you would add the title="xxx" attribute.
Then you'd have an ugly hack that would work in all browsers.
Did I get that right?
(None of that is php per-se, but if you dynamically generate
your pages, you still have to write all of the above
into your php at some point)
Jerry Stuckle:
[re title attribute rendered as tooltip]
> Which works only in IE...
Only IE counts, Shirley??
--
Jock
salmobytes wrote:
> Interesting, I didn't know about title="xxx" working in IE,
> which I use occasionally, for testing only.
>
> .....so, to make tooltips that work in all browsers, you could
> use the css2 hidden span trick for Firefox, Safari, Opera, Konqueror
> and IE7. For IEsicks you would add the title="xxx" attribute.
> Then you'd have an ugly hack that would work in all browsers.
> Did I get that right?
>
> (None of that is php per-se, but if you dynamically generate
> your pages, you still have to write all of the above
> into your php at some point)
>
>
You can ask in an appropriate newsgroup;... None of this is php related.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Jerry Stuckle wrote:
> bill wrote:
>> dgs wrote:
>>> How to produce a tooltip ?
>>> Like one we have in VB as elements attribute.
>>> Is there any function for it ?
>>
>> The truly simple way is to use the title attribute.
>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>> just much easier and will display as a tooltip in most browsers.
>>
>> bill
>>
>
> Which works only in IE...
>
not true, works just fine in Firfox.
bill
Jerry Stuckle wrote:
> bill wrote:
>> dgs wrote:
>>> How to produce a tooltip ?
>>> Like one we have in VB as elements attribute.
>>> Is there any function for it ?
>>
>> The truly simple way is to use the title attribute.
>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>> just much easier and will display as a tooltip in most browsers.
>>
>> bill
>>
>
> Which works only in IE...
>
I only have Internet Exploder and Firefox 2.x.
Can anyone test this in Opera and other browsers ?
bill
On 11/17/2007 3:52 PM, bill wrote:
> Jerry Stuckle wrote:
>> bill wrote:
>>> dgs wrote:
>>>> How to produce a tooltip ?
>>>> Like one we have in VB as elements attribute.
>>>> Is there any function for it ?
>>>
>>> The truly simple way is to use the title attribute.
>>> You can use javascript to generate fancy tooltips, but title="xxxx"
>>> is just much easier and will display as a tooltip in most browsers.
>>>
>>> bill
>>>
>>
>> Which works only in IE...
>>
>
> I only have Internet Exploder and Firefox 2.x.
> Can anyone test this in Opera and other browsers ?
>
> bill
It doesn't work on Opera.
Dave Pyles
"bill"
news:JPqdnScA5sOIyaLanZ2dnUVZ_g2dnZ2d@cablespeedmi.com...
> Jerry Stuckle wrote:
>> bill wrote:
>>> dgs wrote:
>>>> How to produce a tooltip ?
>>>> Like one we have in VB as elements attribute.
>>>> Is there any function for it ?
>>>
>>> The truly simple way is to use the title attribute.
>>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>>> just much easier and will display as a tooltip in most browsers.
>>>
>>> bill
>>>
>>
>> Which works only in IE...
>>
> not true, works just fine in Firfox.
>
> bill
Works ok in Opera too, but not in that slow, lumbering piece of junk called
'Safari' (on Windows anyway).
"David Pyles"
news:fhnlhu$1o7r$1@pyrite.mv.net...
> On 11/17/2007 3:52 PM, bill wrote:
>> Jerry Stuckle wrote:
>>> bill wrote:
>>>> dgs wrote:
>>>>> How to produce a tooltip ?
>>>>> Like one we have in VB as elements attribute.
>>>>> Is there any function for it ?
>>>>
>>>> The truly simple way is to use the title attribute.
>>>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>>>> just much easier and will display as a tooltip in most browsers.
>>>>
>>>> bill
>>>>
>>>
>>> Which works only in IE...
>>>
>>
>> I only have Internet Exploder and Firefox 2.x.
>> Can anyone test this in Opera and other browsers ?
>>
>> bill
> It doesn't work on Opera.
> Dave Pyles
Yes it does. I have Opera 9.24 and it works for me.
"Jerry Stuckle"
news:GZednRGMM96bZaPanZ2dnUVZ_rzinZ2d@comcast.com...
> bill wrote:
>> The truly simple way is to use the title attribute.
>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>> just much easier and will display as a tooltip in most browsers.
>>
>> bill
>
> Which works only in IE...
I use Mozilla - and it works in Mozilla.
http://www.kaufman.net
On 11/17/2007 5:46 PM, asdf wrote:
> "David Pyles"
> news:fhnlhu$1o7r$1@pyrite.mv.net...
>> On 11/17/2007 3:52 PM, bill wrote:
>>> Jerry Stuckle wrote:
>>>> bill wrote:
>>>>> dgs wrote:
>>>>>> How to produce a tooltip ?
>>>>>> Like one we have in VB as elements attribute.
>>>>>> Is there any function for it ?
>>>>> The truly simple way is to use the title attribute.
>>>>> You can use javascript to generate fancy tooltips, but title="xxxx" is
>>>>> just much easier and will display as a tooltip in most browsers.
>>>>>
>>>>> bill
>>>>>
>>>> Which works only in IE...
>>>>
>>> I only have Internet Exploder and Firefox 2.x.
>>> Can anyone test this in Opera and other browsers ?
>>>
>>> bill
>> It doesn't work on Opera.
>> Dave Pyles
>
> Yes it does. I have Opera 9.24 and it works for me.
>
>
You're right, it does work n Opera. I added a title tag to an image in
a file on my computer, but I had a typo in it. I typed "-" instead of
"=". Sorry about that.
Dave Pyles
"David Pyles"
news:fhns3u$1q54$1@pyrite.mv.net...
> On 11/17/2007 5:46 PM, asdf wrote:
>> "David Pyles"
>>> On 11/17/2007 3:52 PM, bill wrote:
>>>> Jerry Stuckle wrote:
>>>>> Which works only in IE...
>>>>>
>>>> I only have Internet Exploder and Firefox 2.x.
>>>> Can anyone test this in Opera and other browsers ?
>>>>
>>>> bill
>>> It doesn't work on Opera.
>>> Dave Pyles
>>
>> Yes it does. I have Opera 9.24 and it works for me.
Has anybody found an instance in which the TITLE attribute did NOT produce
an MS-style ToolTip?
I'm coming to think that this may be one of the FEW html features that
actually works exactly the same on every setup.
"Sanders Kaufman"
news:0dL%i.22230$lD6.4176@newssvr27.news.prodigy.net...
> "David Pyles"
> news:fhns3u$1q54$1@pyrite.mv.net...
>> On 11/17/2007 5:46 PM, asdf wrote:
>>> "David Pyles"
>>>> On 11/17/2007 3:52 PM, bill wrote:
>>>>> Jerry Stuckle wrote:
>
>>>>>> Which works only in IE...
>>>>>>
>>>>> I only have Internet Exploder and Firefox 2.x.
>>>>> Can anyone test this in Opera and other browsers ?
>>>>>
>>>>> bill
>>>> It doesn't work on Opera.
>>>> Dave Pyles
>>>
>>> Yes it does. I have Opera 9.24 and it works for me.
>
> Has anybody found an instance in which the TITLE attribute did NOT produce
> an MS-style ToolTip?
> I'm coming to think that this may be one of the FEW html features that
> actually works exactly the same on every setup.
>
It doesn't work on the Safari 3.0.3 Beta for Windows.
"asdf"
news:473f8448$0$29781$5a62ac22@per-qv1-newsreader-01.iinet.n et.au...
> "Sanders Kaufman"
>> Has anybody found an instance in which the TITLE attribute did NOT
>> produce an MS-style ToolTip?
>> I'm coming to think that this may be one of the FEW html features that
>> actually works exactly the same on every setup.
>
> It doesn't work on the Safari 3.0.3 Beta for Windows.
I'm thinking more along the lines of software that's actually been released.
:)
I don't care about obsolete releases, either.
"Sanders Kaufman"
news:0dL%i.22230$lD6.4176@newssvr27.news.prodigy.net...
> "David Pyles"
> news:fhns3u$1q54$1@pyrite.mv.net...
>> On 11/17/2007 5:46 PM, asdf wrote:
>>> "David Pyles"
>>>> On 11/17/2007 3:52 PM, bill wrote:
>>>>> Jerry Stuckle wrote:
>
>>>>>> Which works only in IE...
>>>>>>
>>>>> I only have Internet Exploder and Firefox 2.x.
>>>>> Can anyone test this in Opera and other browsers ?
>>>>>
>>>>> bill
>>>> It doesn't work on Opera.
>>>> Dave Pyles
>>>
>>> Yes it does. I have Opera 9.24 and it works for me.
>
> Has anybody found an instance in which the TITLE attribute did NOT produce
> an MS-style ToolTip?
why yes. firefox, for instance, won't treat \r\n as it should. it shows
unprintable chars in their place and fails to start a new line of text.
> I'm coming to think that this may be one of the FEW html features that
> actually works exactly the same on every setup.
you'd be wrong. however, title is required by most html elements according
from what i recall to the latest w3c standard...so, not surprising that most
browsers show at least some interaction with the tag.
"Jerry Stuckle"
news:HrCdnbsi2_sfs6LanZ2dnUVZ_jCdnZ2d@comcast.com...
> salmobytes wrote:
>> Interesting, I didn't know about title="xxx" working in IE,
>> which I use occasionally, for testing only.
>>
>> .....so, to make tooltips that work in all browsers, you could
>> use the css2 hidden span trick for Firefox, Safari, Opera, Konqueror
>> and IE7. For IEsicks you would add the title="xxx" attribute.
>> Then you'd have an ugly hack that would work in all browsers.
>> Did I get that right?
>>
>> (None of that is php per-se, but if you dynamically generate
>> your pages, you still have to write all of the above
>> into your php at some point)
>>
>>
>
> You can ask in an appropriate newsgroup;... None of this is php related.
i see your point now jerry...a jerry stuckle in an html or browser ng might
not say
just giving you a hard time, jer. have a good weekend.
"Sanders Kaufman"
news:umM%i.22244$lD6.307@newssvr27.news.prodigy.net...
> "asdf"
> news:473f8448$0$29781$5a62ac22@per-qv1-newsreader-01.iinet.n et.au...
>> "Sanders Kaufman"
>
>>> Has anybody found an instance in which the TITLE attribute did NOT
>>> produce an MS-style ToolTip?
>>> I'm coming to think that this may be one of the FEW html features that
>>> actually works exactly the same on every setup.
>>
>> It doesn't work on the Safari 3.0.3 Beta for Windows.
>
> I'm thinking more along the lines of software that's actually been
> released. :)
> I don't care about obsolete releases, either.
>
Maybe so, but the beta is the best we've got of Safari on a non-Mac platform
so far ;)
Steve:
> [Sanders Kaufman:]
>
> > Has anybody found an instance in which the TITLE attribute did NOT produce
> > an MS-style ToolTip?
If you mean out-of-the-box visual browsers, Lynx.
> why yes. firefox, for instance, won't treat \r\n as it should. it shows
> unprintable chars in their place and fails to start a new line of text.
Interpreting \r\n here as starting a new line would also be an error
because \r and \n are equivalent to space and sequences of spaces
should be collapsed into a single one. Indeed, _not_ collapsing
sequences of spaces is an error as well.
XHTML (How To Meet Ladies, X-Rated) is, ahem, different.
> > I'm coming to think that this may be one of the FEW html features that
> > actually works exactly the same on every setup.
Uniformity in _rendering_ was never an ideal.
> however, title is required by most html elements
No.
> according from what i recall to the latest w3c standard...
"W3C standard" is mildly misleading, given that the W3C is, in spite
of the image they project, a consortium, not a standards body. The
W3C publish technical reports called Recommendations, not to be
confused with bona fide standards such as those published by ISO or,
as close as we get to Internet standards, IETF.
> so, not surprising that most browsers show at least some interaction
> with the tag.
http://www.flightlab.com/~joe/sgml/faq-not.txt (see part 5)
--
Jock
Sanders Kaufman wrote:
> Has anybody found an instance in which the TITLE attribute did NOT produce
> an MS-style ToolTip?
Lynx.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 11 days, 19:26.]
[Now Playing: ./eric_clapton/complete_clapton/1_03_-_white_room.ogg.]
Belgium
http://tobyinkster.co.uk/blog/2007/11/17/belgium/
..oO(Steve)
>why yes. firefox, for instance, won't treat \r\n as it should. it shows
>unprintable chars in their place and fails to start a new line of text.
This is more or less correct behaviour (BTW: which browser shows line
breaks in a tool tip?) But the real problem in FF is the length limit of
the tool tip.
>> I'm coming to think that this may be one of the FEW html features that
>> actually works exactly the same on every setup.
>
>you'd be wrong. however, title is required by most html elements according
>from what i recall to the latest w3c standard
s/required/allowed/
Micha
..oO(salmobytes)
>Interesting, I didn't know about title="xxx" working in IE,
>which I use occasionally, for testing only.
>
>.....so, to make tooltips that work in all browsers, you could
>use the css2 hidden span trick for Firefox, Safari, Opera, Konqueror
>and IE7.
No need for CSS hacks here. The 'title' attribute works in all those
browsers. Safari/Win doesn't count.
>(None of that is php per-se, but if you dynamically generate
>your pages, you still have to write all of the above
>into your php at some point)
So I can also ask Eclipse questions here? Because that's what I use to
write my PHP code ...
Micha