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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS/ CSS cursor change for <a>

Status
Not open for further replies.

JohnandSwifty

Technical User
May 31, 2005
192
GB
Hi,

I use <a href etc in column headers to get a reliable hover effect. The only thing is, in my ajax app when you click a column the JS function changes the cursor to 'wait'. This works fine until the mouse is over an <a> tag (at which point it sticks at whatever cursor is set for a tags in the styles). Can i change the cursor dynamically when over an <a> tag?

Thanks
 
Hi

Correct, although abit strange. When not [tt]:hover[/tt] will not affect the [tt]cursor[/tt] anyway.
Code:
a[s][red]:hover[/red][/s] {cursor: whatever type you want}

Feherke.
 
Thanks for your input. This is not where i have the problem though. The problem i have is that if i use JS to change the cursor (say in a OnClick event), if the mouse is over an <a> tag, the cursor does not change. This only happens when the cursor is over an <a> tag, but i need to use an <a> tag to get the hover style change to work properly.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top