Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Having trouble in firefox...

    The following code has been checked using the w3c's validation tool and is valid. It's just the start of a webpage I'm beginning to build and works in IE, but in Firefox, the onmouseover events do not work (everything else does)! Can anyone help?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Welcome to Widcombe Baptist Church</title>
    </head>
    <body>
    <img src="banner\banner.png" alt="Navigation Bar" width="800" height="57" border="0" usemap="#banner" />
    <map name="banner" id="banner">
    <area shape="rect" coords="0,0,205,56" alt="Home" onmouseover="Home" href="http://www.widcombe.org" />
    <area shape="rect" coords="206,0,320,55" alt="Who we are" onmouseover="Who we are" href="http://www.widcombe.org/whoweare/whoweare_main.htm" />
    </map>
    </body>
    </html>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Are you looking for title attribute ?
    Code:
    <area shape="rect" coords="0,0,205,56" alt="Home" title="Home" href="http://www.widcombe.org" />
    <area shape="rect" coords="206,0,320,55" alt="Who we are" title="Who we are" href="http://www.widcombe.org/whoweare/whoweare_main.htm" />
    </map>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    al40k (07-10-2008)

  • #3
    Regular Coder
    Join Date
    Jun 2008
    Location
    SE Wisconsin, US
    Posts
    222
    Thanks
    1
    Thanked 20 Times in 20 Posts
    ALT only displays a tooltip in IE, not in FF. The previous poster is correct that TITLE will provide the tooltip for both browsers.
    Milwaukee Web Designer and SEO Milwaukee Firm specializing in ASP.Net, C#, VB.Net, SQL Server and Access.

  • Users who have thanked demtron for this post:

    al40k (07-10-2008)

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Actually alt is supposed to display some alternate content in the absence of an image (so as to see a link to click) and title is for displaying a tooltip. But stupid(?) IE displays a tooltip for alt attribute too.
    Last edited by abduraooft; 07-10-2008 at 03:05 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    al40k (07-10-2008)

  • #5
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts
    thank you for your help! It works now.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •