Is it possible to insert newlines, or some other character,
into <title> or <alt> to get the effect of a tooltip,
where the page author controls the line breaks?
If yes, could somebody send an example of how to do it?
I'm interested in recent versions of IE and Netscape/Mozilla.
Thanks in advance. 7 20649
"mitch gart" <mg***@kronos.c om> wrote in message
news:5e******** *************** ***@posting.goo gle.com... Is it possible to insert newlines, or some other character, into <title> or <alt> to get the effect of a tooltip,
The <title> is what typically appears in your browser caption. There is no
such thing as <alt>.
If you're asking about the title and alt *attributes*, I don't know what IE
or Mozilla *do*, but the values are these attributes are supposed to be of
type CDATA, the legal characters from the document character set. Embedded
line feeds are supposed to be ignored, and carriage returns are supposed to
be converted to a single space.
If you want to experiment with what actually happens in a particular
browser, feel free to try any of the following and see if it produces a new
line in your tooltip. I'm skeptical, but you never know.
\0A
\r
\n
<br>
Also: the alt attribute is not intended to produce a tooltip. AFAIK only IE
among current browser versions does produce one; Netscape 6 and onward
don't.
"Jukka K. Korpela" <jk******@cs.tu t.fi> a écrit dans le message de
news:Xn******** *************** ******@193.229. 0.31 More on this (discussing specifically alt, but similar considerations apply to title attributes): http://www.cs.tut.fi/~jkorpela/html/alt.html#length
I was surprised erading this page, in particular wondering why a alt
attribute could contain a long text ?
As I undestand it, alt should contain a replacement string, as longdesc
should contain the picture's description. Am I wrong, did I miss somthing ?
"Harlan Messinger" <h.*********@co mcast.net> a écrit dans le message de
news:2i******** ****@uni-berlin.de Also: the alt attribute is not intended to produce a tooltip.
Yes, good to notice. The title attribute works really fine for that in
almost any browser (if you limit its use to tha A elements)
"Pierre Goiffon" <pg******@nowhe re.invalid> wrote: I was surprised erading this page, in particular wondering why a alt attribute could contain a long text ?
For the practical reasons I describe on my page, including the line break
problems. When the text is long, you run into problems whether you use
line breaks in the source or not.
As I undestand it, alt should contain a replacement string,
Correct. For example, if the image is an organization chart, the alt text
should be a textual description of the organization. It is possible to
write such a long alt text, and e.g. Lynx supports it pretty well, but it
won't work reasonably on typical graphic browsers with images off, for
example. Besides, you would probably want to use markup, such as <ul>, in
describing the organization, and you can't use markup inside an
attribute. Thus, it is best to refer to the description with a link.
Then the alt text can be short, perhaps alt="" (depending on how you
present other things).
as longdesc should contain the picture's description.
The longdesc attribute is vaguely defined that way. Its practical meaning
is very small. If a long description is needed (or deemed useful), use a
normal link to it near the image.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Pierre Goiffon wrote: Yes, good to notice. The title attribute works really fine for that in almost any browser (if you limit its use to tha A elements)
You do not need to limit to the <a> element. In my experience it
works just fine for most elements. AFAIK, the only elements IE refuses
to display the tool tip for is <abbr>, and <option>. For everything
else, it should work as expected.
--
Lachlan Hunt http://www.lachy.id.au/ la**********@la chy.id.au.updat e.virus.scanners
Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
"Lachlan Hunt" <la**********@l achy.id.au.upda te.virus.scanne rs> wrote in
message news:_B******** *******@news-server.bigpond. net.au... Pierre Goiffon wrote: Yes, good to notice. The title attribute works really fine for that in almost any browser (if you limit its use to tha A elements) You do not need to limit to the <a> element. In my experience it works just fine for most elements. AFAIK, the only elements IE refuses to display the tool tip for is <abbr>,
Not so: IE also refuses to display the tool tip for <xypn>, <sss>,
<oi3lso3nd>, and so forth. :-) OK, I'll let you in on the joke: IE refuses
to display a tool tip for <abbr> because <abbr> is absent from IE's HTML
repertoire. Therefore, IE treats it just like the genuinely bogus tags I
listed.
and <option>. For everything else, it should work as expected. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mark |
last post by:
IF I have something like this:
<title><?php print($pagetitle); ?></title>
<body>
<?php include("folders/my_include.php"); ?>
</body>
</html>
and my_include.php contains the value to the variable ($pagetitle). How do I
get the value before the code for the <title> is written. This is just a
|
by: Info 3000 |
last post by:
Hi there,
Simple question, but headache !
I have a PHP Page like :
<HTML>
<HEAD>
<TITLE>Sunny day !</TITLE>
</HEAD>
|
by: D. Alvarado |
last post by:
Hello,
I am trying to find the <TITLE> element of my document. Normally
alert(document.title);
works just fine, but when this statement is within a page that is a
frame in a larger document, the above call always returns the title of
the parent (container) page. Is it possible through JS to deduce the
<TITLE> element of the current page, even if that page is a frame?
|
by: Andreas Klemt |
last post by:
Hello,
I have in my strHtml a html page.
so what is the fastest way (with XML Read?) to get the "myValue" between
<title>myValue</title>
Thanks,
Andreas
|
by: Alex |
last post by:
Hi,
is it possible to set the title programatically from the code behind page.
I placed a literal in the head section of the form and set its text
property.
it seemed to work bu the literal is not in the <form> section of the page.
does this matter or is there a better way to programatically/dynamically set
the title of the page.
| |
by: DC |
last post by:
In HTML page, I put:
<html>
<head>
<title>Article: <asp:Label ID="lblHTMLTitle"></asp:Label> </title>
....
In the code behind:
....
|
by: Brad |
last post by:
I'm placing a runat=server attribute on the <title> tag in my pages, so I
can read/set the title text in code. The problem is that when I
subsequently change the page in design view VS is removing the runat=server
from the <title> tag. Unfortunately it does not do it all the time...maybe
50%.
Brad
|
by: Alan Silver |
last post by:
Hello,
I am just experimenting with master pages, and am trying to add a
content placeholder in the <head> section, so that individual pages can
set their own page title and meta tags. The master page looks like
this...
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
|
by: David Thielen |
last post by:
Hi;
If I am using master pages, how do I set the <title> and <meta
name='description' content='my title'> for each page. Obviously each page
will have a different title & description.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |