Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opera 7.54 and td backgroundColor

Status
Not open for further replies.

cjburkha

Programmer
Jul 30, 2004
76
US
Hi, I have 2 questions.

1. Does anyone know a good resource for Opera specific html questions?

2. If you look at each of these pages and hover over the right most collum, you will see different behaviors in Opera.

[url[/url]
http://www.cjburkha.50megs.com/menu_test_no_pointer.html

The only difference between the two pages is this line:

tdMenuObj.style.cursor="hand";

is removed. Does anyone know why setting the cursor style in script rather than CSS will affect the way the bagkgroundColor is painted?

Also, in Opera, the onmouseout event is fired when you move off the top of the text on the big cells. This does not happen when you move off the bottom of the text, only off the top. Any ideas about this behaviour?

Thanks for looking at my pages, and for any help you can give me.

CJB
 
A cursor value of "hand" is IE-only. The proper value should be "pointer":

Code:
tdMenuObj.style.cursor = 'pointer';

Although I cannot say for sure (I don't have Opera installed at the moment), it may well be that it's baulking at the invalid property value, and screwing up other CSS as a result. Try fixing that and see what happens.

Hope this helps,
Dan
 
Gah! It was originally pointer, but I changed to hand to see if that made a difference.

Sorry about that, the behavior is still undexpected with

tdMenuObj.style.cursor = 'pointer'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top