How do i set the tool tip while the mouseover?

css Israel
  • 18 years ago

    Meaning: When the mouse is over a defined text are i want the use this little tip that  u can see.
    What's the property?


  • 18 years ago

    It is the ALT property.


    For example, in an image tag:



    Code:

    <img src="/images/my_image.gif" border=0 width=145 height=44 alt="Click me for fun">

  • 18 years ago

    Thanks that's for the IMG but i can't get it working for anything else.
    i would like The ALT thing to appear when a mouse over event occuers over my defined  text.
    It doesn't work for <Input> nor for <A>
    any ideas?
    I.

  • 18 years ago

    No, don't think the other things you describe support the ALT property.  Check out this site for a nice tool that lists all HTML properties:  Visibone


    The only other idea is try DHTML.  You may can simulate what you are looking for using it.


    Good luck!




  • 18 years ago

    You can always se t the tooltip for the input box using the title attribute as
    <input type ="text" title = "The tooltip text">
    </input>
    see if it works out at your browser Same works out for the <A> also




  • 18 years ago

    Here are some syntaxes :


    -- Hyperlink
       <a href="..." title="the tooltipttext">


    -- Image
       <img src="..." alt="the tooltipttext">


    -- Input
       <input type="..." title="the tooltipttext">


    It may not work with all inputs ...


    Regards,


        HervĂ©

  • 18 years ago

    The TITLE property works thanks..

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An expert is a man who has made all the mistakes that can be made in a very narrow field” - Niels Bohr