DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Barca Guest

    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">

  2. #2
    Fakhar Guest

    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">



  3. #3
    Guest

    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">

    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links