dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: about links and box rectangle

  1. #1
    Join Date
    Jun 2003
    Location
    indonesia
    Posts
    30

    about links and box rectangle

    hello guys,
    i'm a newbie at developing web site
    so i don't know this question is belong to which forum
    i ask in javascript and html forum

    i want to make a bunch of links and when the mouse over a link, the
    link background color will change, and when mouse out, the link back to normal
    then can a link make a box next to it that contains several new links

    thanxx guys

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    One mistake that beginners with JavaScript is to assume that everybody is using the same browser and computer. JavaScript will fail a good 13% of the time and that 13% includes people who cannot use JavaScript because of some disability. It's very important to not rely upon JavaScript, especially for navigation. But here's the CSS for you links:

    a {
    background-color:#246daa;
    color:#fff8dc;
    display:block;
    font-family:'Copperplate Gothic Light', 'Felix Titling', 'Georgia', serif;
    font-size:17px;
    font-weight:bold;
    margin:1ex;
    width:135px;
    }

    a:link, a:visited {
    text-decoration:none;
    background-color:#246daa;
    color:#fff8dc;
    }

    a:hover {
    text-decoration:none;
    background-color:#fff8dc;
    color:#8b0000;
    }

    a:active {
    text-decoration:none;
    background-color:#00008b;
    color:#8b0000;
    }
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Jun 2003
    Location
    indonesia
    Posts
    30

    Smile

    wohoo thank you Charles! nice..
    umm.. how about the rectangle thing?
    when a mouse hovering on a link then pop up a box next to it contains several sub links, can javascript do this?

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    Originally posted by role
    wohoo thank you Charles! nice..
    umm.. how about the rectangle thing?
    when a mouse hovering on a link then pop up a box next to it contains several sub links, can javascript do this?
    On some browsers, but not all. And it will not work on Baille and audio browsers. How do you plan to keep the page working for those people?
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Jun 2003
    Location
    indonesia
    Posts
    30
    umm..i don't understand
    what do you mean?? is javascript can make it?
    the box i mean is like a select tag <select size="4"> with a bunch of links, pop next when mouse hover a link.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles