Click to See Complete Forum and Search --> : about links and box rectangle


role
07-06-2003, 04:46 AM
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

Charles
07-06-2003, 07:04 AM
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;
}

role
07-07-2003, 02:55 AM
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?

Charles
07-07-2003, 05:00 AM
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?

role
07-07-2003, 08:44 AM
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.