-
Help text on Hover Button
I have created a hover button using an applet, but the text is too wide for
the button and I wish to split it into two lines.
<applet code="fphover.class" codebase="./" width="120" height="40">
<param name="textcolor" value="#FFFFFF">
<param name="text" value="This line is too long">
<param name="effect" value="glow">
<param name="url" valuetype="ref" value="LookUpMenuTest.htm">
<param name="color" value="#FF0000">
<param name="hovercolor" value="#FFFF00">
</applet>
The following does not work:
<param name="text" value="This line is"+<br>+"too long">
-
Re: Help text on Hover Button
Hi,
Try this:
<param name="text" value="This line is\n too long">
because you are passing this as parameter to Java Applet, I hope this should
work.
"Barca" <java.@127.0.0.1> wrote:
>
>I have created a hover button using an applet, but the text is too wide
for
>the button and I wish to split it into two lines.
>
> <applet code="fphover.class" codebase="./" width="120" height="40">
> <param name="textcolor" value="#FFFFFF">
> <param name="text" value="This line is too long">
> <param name="effect" value="glow">
> <param name="url" valuetype="ref" value="LookUpMenuTest.htm">
> <param name="color" value="#FF0000">
> <param name="hovercolor" value="#FFFF00">
> </applet>
>
>The following does not work:
> <param name="text" value="This line is"+<br>+"too long">
-
Re: Help text on Hover Button
Thanks, but that unfortunately doesn't work either.
>Hi,
>
>Try this:
> <param name="text" value="This line is\n too long">
>
>because you are passing this as parameter to Java Applet, I hope this should
>work.
>>
>>I have created a hover button using an applet, but the text is too wide
>for
>>the button and I wish to split it into two lines.
>>
>> <applet code="fphover.class" codebase="./" width="120" height="40">
>> <param name="textcolor" value="#FFFFFF">
>> <param name="text" value="This line is too long">
>> <param name="effect" value="glow">
>> <param name="url" valuetype="ref" value="LookUpMenuTest.htm">
>> <param name="color" value="#FF0000">
>> <param name="hovercolor" value="#FFFF00">
>> </applet>
>>
>>The following does not work:
>> <param name="text" value="This line is"+<br>+"too long">
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks