Search Engine Optimization > Web Development > Javascript?
Javascript?
Posted by frank on February 17th, 2006

Just attempting my first webpage, an absolute numpty, and am using an
allwebco template. On the index page, the navigation for the galleries
is six small thumbnails, but there is no way of seeing what the gallery
name is. I have seen a site, where on hover over the link it gives the
name of the gallery. Is this javascript? I have asked the company but
they say they do not supply this add on. Does anyone know how this is
done, and where I could possibly get a script to do this?
Many thanks

Frank

Posted by Philip Herlihy on February 17th, 2006

Yes: this is a combination of HTML, CSS and Javascript called (rather
grandly) DHTML. See www.w3scools.com for good tutorials on all of these
things, and great demos like:
http://www.w3schools.com/dhtml/tryit...nt_onmousedown

Some browsers also display any "Alt" text when you mouse over an image;
others display anything in a "title" tag. That's probably enough for what
you want. Be careful if you need to rely on the visitor getting such
information - browsers vary!

--
####################
## PH, London
####################
"frank" <omeyas@gmail.com> wrote in message
news:1140192205.611675.190870@g43g2000cwa.googlegr oups.com...


Posted by Max Demian on February 17th, 2006

"frank" <omeyas@gmail.com> wrote in message
news:1140192205.611675.190870@g43g2000cwa.googlegr oups.com...
Just add a title="" attribute to each link. Works on most browsers.

--
Max Demian



Posted by Alan J. Flavell on February 17th, 2006

On Fri, 17 Feb 2006, Philip Herlihy blurted out atop a fullquote (so
regular readers probably already discounted what you had to say):

In a WWW context, every JS-based technique needs to be evaluated
to understand how it will behave when JS is disabled. Not just as an
optional afterthought, but as an essential component of the design. I
don't see that kind of consideration happening here, and, as such, I'd
rate it under the principle "a little knowledge is a dangerous
thing".[2]

Unfortunately, some still do, but that isn't what "alt" text is for.
At least, the most widespread one (I mean MSIE) uses the "title"
attribute's text appropriately, overriding the unfortunate behaviour
w.r.to "alt" text which it exhibits when the title attribute is
omitted.

The title *tag* appears once[1] in an HTML page, in the <head> part.
You seem to be confusing it with the title *attribute*.

Certainly the title attribute can be useful - although it should not
be used for essential information, since some readers won't "see" it
(either because their browser doesn't show it or speak it, or because
it didn't occur to them to look for it e.g by waving their mouse
around).

Right! So stick to more-accessible techniques, unless and until you
understand better about the idea of "graceful fallback".

ttfn

[1] OK, one opening tag and one closing tag, to be precise.

[2] They might consider learning something simple like how to compose
alt text, before over-reaching themselves trying to teach elaborate JS
techniques. I quote from one of their pages:
___
/
Web Hosting
Web Quality
W3Schools Forum
pixels

DHTML Tutorial

previous next
__________________________________________________ _______________

DHTML Tutorial

picture

DHTML is the art of making HTML pages dynamic!
\___


Do I need to point out the inappropriateness of expostulating "pixels"
and "picture" in the middle of a text-mode web page display?

Funbolt.com - Entertainment portal, wallpapers, sexy celebs