0

Setting Image alt tag [closed]

asked 2013-01-17 22:20:12 +0800

kkurt gravatar image kkurt
300 1 2

How can we set images alt tag?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-08 07:23:03

4 Answers

Sort by ยป oldest newest most voted
3

answered 2013-01-21 06:58:01 +0800

psingh gravatar image psingh flag of India
963 8

We donot have ALT attribute for Image tag.But image has attribute "tooltiptext" which is having same feature like ALT in html.

<image src="/resource/image/greenbar-bar.gif" tooltiptext="Open" onClick="@command('openWindow')"  />

link publish delete flag offensive edit
0

answered 2013-01-21 03:52:39 +0800

MontyPan gravatar image MontyPan
435 3
http://xitop.blogspot.com...

Hi all,

There is a workaround, you can use `tooltip` attribute to specify a element which will be shown when cusor is over it.
Here is a demo.
(Or maybe this is not a workaround, is ZK's real thought...... maybe)

On the other hand, you can write ZK client code to fire a event (to server), even it is native element.
Please refer to ZK Client side Reference.

Regards,
Monty Pan

link publish delete flag offensive edit
0

answered 2013-01-19 14:46:05 +0800

kkurt gravatar image kkurt
300 1 2

But also i want to use onXXX events... is it possible with native image? I think this attribute sould be added.
Note: i want it for seo.

link publish delete flag offensive edit
0

answered 2013-01-19 00:53:25 +0800

jj gravatar image jj
638 3

I do't think there is an equivalent in zul.Image. You may want to use h:img?

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2013-01-17 22:20:12 +0800

Seen: 82 times

Last updated: Jan 21 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More