Solved

struts / image button /text

Posted on 2003-11-25
10
375 Views
Last Modified: 2010-04-01
I tried to put on text over an image button. For a easy localization I would not modify the picture directly.
My attempts with css magic and a image map failed becouse the text hides the image map. (i.e. the area on the button wich contains the text is not clickable)

Is the a taglib wich can render the picture at runtime (put text on the button image)?
0
Comment
Question by:Oliver_Dornauf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9822095
I would use a normal link with the image as background, you can always use css to style the link.
0
 
LVL 6

Accepted Solution

by:
jarasa earned 125 total points
ID: 9823697
Try this:
<head>

</head>
<body>
<div style='position: absolute; top: 0px; left: 0px; width: 111px; height: 18px; zindex=1;'>
      <img src='Yourimage.gif' border="0">
</div>
<div style='position: absolute; top: 0px; left: 30px; width: 111px; height: 18px; zindex=2;'>
<P>Push Me</P>
</div>
<div style='position: absolute; top: 0px; left: 0px; width: 111px; height: 18px; zindex=3;'>
      <a href='javascript:void(null)' onFocus="javascript:this.blur()" onClick="javascript:alert('Thank You');"><img src='empty_pixel_image_1x1.gif' width=111 height=18 border=0></a>
</div>
</body>
</html>

regards
Javier.
0
 
LVL 4

Author Comment

by:Oliver_Dornauf
ID: 9825734
Hello jarsa,

I did the css spree already. Is a _taglib_ wich renders a button form me?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:jarasa
ID: 9825798
Sorry I don't know.
But What I told you works as well I guess, anyway why are you putting the text over the image, why don't just make the image with the text on it and dispaly it as one?
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9826188
>> Is the a taglib wich can render the picture at runtime (put text on the button image)?
So the direct answer to your question is NO. there is no such taglib exist as far as I know.
0
 
LVL 4

Author Comment

by:Oliver_Dornauf
ID: 9826341
kennethxu, did you read my comment? The direct answer is yes.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9827367
I did read you comment and doesn't seem that you found the taglib, if you found it, I would appreciate if you can let me know.
0
 
LVL 4

Author Comment

by:Oliver_Dornauf
ID: 9835523
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9838183
thanks for sharing and nice to know such a new project started in sandbox.
0
 
LVL 6

Expert Comment

by:jarasa
ID: 9903199
Thank for the points Oliver and for the link too.

:c)

Javier
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question