Click to See Complete Forum and Search --> : questions about document.


henryh
07-01-2004, 01:52 PM
How do you refer to a specific link in the document using document.
etc?

Where is a good place to learn about the possible document. commands to change other things in a web site?

Thanks for reading and please respond.

PeOfEo
07-01-2004, 03:28 PM
I do not quite understand the question, what are you trying to do exactly?

henryh
07-01-2004, 03:43 PM
Sorry, I guess I didn't phrase my questions well.

One of my questions was about document. commands in javascript, an example would be document.all[divObj].visibility = visible. I was wondering if anyone had a list of some common document. stuff commands.

The other question was about css and the anchor tag hover attribute that looks like this.

a.objItem:hover {background-color: 909090;}

It makes links with the class objItem change background colors if the cursor is hovering over it. Some of my links are shorter than others, but they are all on the same div tag menu. When hovering over links that are shorter, only part of the background of the line it's on changes color. I want it to change the background color of the whole line that the link is on.

Thnx for reading.

AdamGundry
07-01-2004, 04:24 PM
There's a handy reference to the document object on Netscape DevEdge (http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/document.html). Note that document.all isn't there - it is a proprietary IE-only property.

For the CSS issue, try something like this (before the :hover style):

a.objItem { display: block; width: 100%; }

Adam

fredmv
07-01-2004, 04:32 PM
Adam: shouldn't the display: block rule automatically imply 100% width since it will sit on its own line?