|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
<ffj### [at] club-internetfr> wrote:
>You will find the very beginning (it's just a sketch) of what I did.
>The doc is written in HTML.
Much obliged for your efforts Fabien. I've not had a chance to look at
it yet, though.
Any chance you could cancel this article and re-post the attached file
in p.binaries.tutorials and just post discussion of your media doc in
this group?
--
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
<ffj### [at] club-internetfr> wrote:
>The doc is written in HTML. I have one question for the webmaster : Is
>there a way to display a comment ( just like Excel or Word) in a HTML
>page when you move your mouse over either a word or a link.
Try this:
<A HREF="" ALT="A cute little tip popping up...">Point your mouse
here</A>
Of course, if you don't want it to look like a link you'll have to
fiddle with CSS or font settings (I will try the latter and see if it
works, haven't done it in years).
Peter Popov
pet### [at] usanet
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov wrote:
> Try this:
>
> <A HREF="" ALT="A cute little tip popping up...">Point your mouse
> here</A>
>
> Of course, if you don't want it to look like a link you'll have to
> fiddle with CSS or font settings (I will try the latter and see if it
> works, haven't done it in years).
Almost. ALT is a property of images, not HREFs. Originally to
specify an alternate text to display on non-graphical browsers,
some browsers will now display ALT text as a tooltip when you
hover over the images (whether or not they are links).
If you want tips to show up when you put the mouse over a link
though, there is a very easy trick with javascript that is
pretty commonly used on the web. It writes your tip to the status
line in place of the URL of the link. To invoke it, do something
like this:
<a href="./testpage.html"
onMouseOver="window.status='Jump to the test page'; return true;"
onMouseOut="window.status=''; return true;">
Test
</a>
window.status sets the status line of the browser to contain
the specified text on mouseover, then clears it when the mouse
moves on. This doesn't work with <SPAN> or <A name=...> tags,
unfortunately, but here's a roundabout but workable way to
use this trick with text in a non-link (well, sort of, but
it's actually faking it).
The style sheet declaration (unless you already use an external
CSS file for your styles, use this inside the <HEAD> of your
HTML file):
<STYLE type="text/css">
A.Tips { text-decoration: none; color: #0000FF; }
</STYLE>
This declares all "A" tags of the class "Tips" to be non-
underlined and blue. Now write your "links" like this...
<a name="#here"></a>
<a href="./thispage.html#here" class=Tips
onMouseOver="window.status='...Brings up this comment'; return
true;"
onMouseOut="window.status=''; return true;">
This text...
</a>
Example above assumes you are on a page called "thispage.html"
so if your visitor clicks your flagged text (which you didn't
mean to be a link) it'll just loop him back to the current point,
no harm done. The text will be blue, but not underlined, and will
still display the status line text onMouseOver and clear it
again on MouseOut.
Charles
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 30 Nov 1999 21:13:18 -0500, Charles Fusner <cfu### [at] enternet>
wrote:
>Almost. ALT is a property of images, not HREFs. Originally to
>specify an alternate text to display on non-graphical browsers,
>some browsers will now display ALT text as a tooltip when you
>hover over the images (whether or not they are links).
IE, NS and Opera do this. I've used no other graphical browser.
I don't know, isn't messing the status line considered bad taste? And
how about those browsers that do not support javascript or the user
has chosen to disable it?
>The style sheet declaration (unless you already use an external
>CSS file for your styles, use this inside the <HEAD> of your
>HTML file):
>
><STYLE type="text/css">
> A.Tips { text-decoration: none; color: #0000FF; }
></STYLE>
>
>This declares all "A" tags of the class "Tips" to be non-
>underlined and blue. Now write your "links" like this...
><a name="#here"></a>
><a href="./thispage.html#here" class=Tips
> onMouseOver="window.status='...Brings up this comment'; return
>true;"
> onMouseOut="window.status=''; return true;">
> This text...
></a>
>
>Example above assumes you are on a page called "thispage.html"
>so if your visitor clicks your flagged text (which you didn't
>mean to be a link) it'll just loop him back to the current point,
>no harm done. The text will be blue, but not underlined, and will
>still display the status line text onMouseOver and clear it
>again on MouseOut.
When navigating to an anchor, IE scrolls the page so that the anchor
is on the topmost line. So it won't just loop you back to the current
point. Can't one use an empty string for an href?
>Charles
Peter Popov
pet### [at] usanet
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov wrote:
> I don't know, isn't messing the status line considered bad taste? And
> how about those browsers that do not support javascript or the user
> has chosen to disable it?
Absolutely true. There are a small percentage of your visitors who
flat out won't be able to use javascript and some who just disable
it on purpose. Same goes for style sheets, so it isn't 100% portable
and if the information you are conveying in these "tips" is
absolutely necessary to understanding the page, it would be better
to forego it and just make some other provision (like a comment in
parentheses, or perhaps a link to a separate glossary section).
I'm just offering a suggestion for invoking some form of what the
original post asked about.
As for bad taste... eh, that's a matter of opinion, IMHO. The only
serious arguement I heard in favor of avoiding use of the status
line was that it made it hard to see where the link pointed, which
can annoy people if they are looking down at the status line to see
where your link goes. But in this case, we don't want it to point
anywhere anyway, and looking down at the status line out of reflex
would just encourage your viewer to notice the tip your were trying
to bring to his attention. Now, those scrolling marquee status line
scripts... ARG! THAT is bad taste! <vbg>
> When navigating to an anchor, IE scrolls the page so that the anchor
> is on the topmost line. So it won't just loop you back to the current
> point. Can't one use an empty string for an href?
Well, that's true also. It isn't really the same point exactly, so
I suppose this is a pretty questionable workaround, but, I'm not sure
about using an empty href, either, since when I attempted this just
now in Netscape, I found if there is a page "index.html" in the
directory with your page, you'll jump there by default, if not, it
tries to do a directory listing of your current directory (although
online, my webserver blocked access to the actual directory contents,
which is good from a security point of view), but either way, it
didn't just give up and go nowhere, as one would expect.
I'm thinking if it's not a true link, giving up the "fake tooltip"
trick and having a separate glossary listing is the best bet
afterall.
Charles
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In HTML 4, there's a better solution. They added the TITLE property to the
<A HREF> tag, it's there for graphical browsers that display those tooltip
things. So you can use <A HREF="blah" ALT="what you want non-graphical
browsers to see" TITLE="what you want graphical tooltips to be">
without any conflict between ALT and a tooltip.
Charles Fusner <cfu### [at] enternet> wrote in message
news:3844843E.16916E6B@enter.net...
> Peter Popov wrote:
> > Try this:
> >
> > <A HREF="" ALT="A cute little tip popping up...">Point your mouse
> > here</A>
> >
> > Of course, if you don't want it to look like a link you'll have to
> > fiddle with CSS or font settings (I will try the latter and see if it
> > works, haven't done it in years).
>
> Almost. ALT is a property of images, not HREFs. Originally to
> specify an alternate text to display on non-graphical browsers,
> some browsers will now display ALT text as a tooltip when you
> hover over the images (whether or not they are links).
>
> If you want tips to show up when you put the mouse over a link
> though, there is a very easy trick with javascript that is
> pretty commonly used on the web. It writes your tip to the status
> line in place of the URL of the link. To invoke it, do something
> like this:
>
> <a href="./testpage.html"
> onMouseOver="window.status='Jump to the test page'; return true;"
> onMouseOut="window.status=''; return true;">
> Test
> </a>
>
> window.status sets the status line of the browser to contain
> the specified text on mouseover, then clears it when the mouse
> moves on. This doesn't work with <SPAN> or <A name=...> tags,
> unfortunately, but here's a roundabout but workable way to
> use this trick with text in a non-link (well, sort of, but
> it's actually faking it).
>
> The style sheet declaration (unless you already use an external
> CSS file for your styles, use this inside the <HEAD> of your
> HTML file):
>
> <STYLE type="text/css">
> A.Tips { text-decoration: none; color: #0000FF; }
> </STYLE>
>
> This declares all "A" tags of the class "Tips" to be non-
> underlined and blue. Now write your "links" like this...
> <a name="#here"></a>
> <a href="./thispage.html#here" class=Tips
> onMouseOver="window.status='...Brings up this comment'; return
> true;"
> onMouseOut="window.status=''; return true;">
> This text...
> </a>
>
> Example above assumes you are on a page called "thispage.html"
> so if your visitor clicks your flagged text (which you didn't
> mean to be a link) it'll just loop him back to the current point,
> no harm done. The text will be blue, but not underlined, and will
> still display the status line text onMouseOver and clear it
> again on MouseOut.
>
>
> Charles
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Peter Popov wrote:
> > Try this:
> >
> > <A HREF="" ALT="A cute little tip popping up...">Point your mouse
> > here</A>
> >
> > Of course, if you don't want it to look like a link you'll have to
> > fiddle with CSS or font settings (I will try the latter and see if it
> > works, haven't done it in years).
>
> Almost. ALT is a property of images, not HREFs. Originally to
> specify an alternate text to display on non-graphical browsers,
> some browsers will now display ALT text as a tooltip when you
> hover over the images (whether or not they are links).
>
> If you want tips to show up when you put the mouse over a link
> though, there is a very easy trick with javascript that is
> pretty commonly used on the web. It writes your tip to the status
> line in place of the URL of the link. To invoke it, do something
> like this:
>
> <a href="./testpage.html"
> onMouseOver="window.status='Jump to the test page'; return true;"
> onMouseOut="window.status=''; return true;">
> Test
> </a>
>
> window.status sets the status line of the browser to contain
> the specified text on mouseover, then clears it when the mouse
> moves on. This doesn't work with <SPAN> or <A name=...> tags,
> unfortunately, but here's a roundabout but workable way to
> use this trick with text in a non-link (well, sort of, but
> it's actually faking it).
>
This may do the trick, but the comments I want to add will not fit in the
status status line (some of the POV keywords are explained with several
lines/ chapters). The only alternative with the comments added to the
windows status bar would be srolling lines. If someone has got an example
handy for me to give it a try and a look. (and vice versa)
Thanks
>
> The style sheet declaration (unless you already use an external
> CSS file for your styles, use this inside the <HEAD> of your
> HTML file):
>
> <STYLE type="text/css">
> A.Tips { text-decoration: none; color: #0000FF; }
> </STYLE>
>
> This declares all "A" tags of the class "Tips" to be non-
> underlined and blue. Now write your "links" like this...
> <a name="#here"></a>
> <a href="./thispage.html#here" class=Tips
> onMouseOver="window.status='...Brings up this comment'; return
> true;"
> onMouseOut="window.status=''; return true;">
> This text...
> </a>
>
> Example above assumes you are on a page called "thispage.html"
> so if your visitor clicks your flagged text (which you didn't
> mean to be a link) it'll just loop him back to the current point,
> no harm done. The text will be blue, but not underlined, and will
> still display the status line text onMouseOver and clear it
> again on MouseOut.
>
> Charles
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
<ffj### [at] club-internetfr> wrote:
>This may do the trick, but the comments I want to add will not fit in the
>status status line (some of the POV keywords are explained with several
>lines/ chapters). The only alternative with the comments added to the
>windows status bar would be srolling lines. If someone has got an example
>handy for me to give it a try and a look. (and vice versa)
>
>Thanks
Well, you *could* try to use layers to achieve the desired effect but
you'll have a lot of problems with compatibility.
Peter Popov
pet### [at] usanet
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> This may do the trick, but the comments I want to add will not fit in the
> status status line (some of the POV keywords are explained with several
> lines/ chapters). The only alternative with the comments added to the
> windows status bar would be srolling lines. If someone has got an example
> handy for me to give it a try and a look. (and vice versa)
Ah, in this case, perhaps you would be better off using frames.
Granted, there are some users who will not have frames, but I think
these days they are a minority, and a frames alternative will at
least let them read your page, while a correct use of a smaller
"footnote" frame will allow most visitors to cross reference
footnotes and glossary style entries in a separate frame without
having to lose their place in your main text. I have made a very
brief example for your to see, in case this will do what you want.
The actual text I use is very simple, I know, but it is only meant
to show off the technique. Have a look at:
http://www.enter.net/~cfusner/tutorial/footnotes/frameref.htm
Charles
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Check the IFRAME maybe. It has autoscrolling.
http://www.htmlhelp.com/reference/html40/special/iframe.html
Bob
Charles Fusner <cfu### [at] enternet> wrote in message
news:38472483.B39B7BD4@enter.net...
> > This may do the trick, but the comments I want to add will not fit in
the
> > status status line (some of the POV keywords are explained with several
> > lines/ chapters). The only alternative with the comments added to the
> > windows status bar would be srolling lines. If someone has got an
example
> > handy for me to give it a try and a look. (and vice versa)
>
> Ah, in this case, perhaps you would be better off using frames.
>
> Granted, there are some users who will not have frames, but I think
> these days they are a minority, and a frames alternative will at
> least let them read your page, while a correct use of a smaller
> "footnote" frame will allow most visitors to cross reference
> footnotes and glossary style entries in a separate frame without
> having to lose their place in your main text. I have made a very
> brief example for your to see, in case this will do what you want.
> The actual text I use is very simple, I know, but it is only meant
> to show off the technique. Have a look at:
>
> http://www.enter.net/~cfusner/tutorial/footnotes/frameref.htm
>
> Charles
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|