Help text on Hover Button


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help text on Hover Button

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

    >



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center