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

hyperlink cursor hand not visible in IFrame 1

Status
Not open for further replies.

riley3

Programmer
Apr 29, 2004
79
US
Hello,
I've been looking for several days for a solution to my hyperlink cursor hand not visible inside of an Iframe on an ASP page when hovering over the link. The link is on an include page inside of the IFrame and works fine if you know that the link is hot but I would like the end user to be able to see the hand when the cursor hovers over the link. Does anyone know if there is an IFrame parameter that I missed? Thanks for any help you may be able to give me. Riley
 
You talk about "cursor hand" - if you are referring to the style "cursor" with the value "hand", then you should not be using that... you should be using "cursor: pointer" instead. Using "hand" in any browser other than IE would cause the cursor not to change, as "hand" is an IE-only setting for that property.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks Dan for the response. Yes I'm using IE and have tried different styles with no luck. The large "I" displays when you hover over a hyperlink inside the IFrame. The link works but unless you know it's a link you wouldn't know to click. At first I thought it was a CSS error since the non-hover blue shows up on the link but the hover styles don’t execute. The same CSS class is used in other places and work fine.
Riley
 
There is a CSS link in both pages referencing back to a CSS file. I was sort of guessing the same thing but it didn't seem to help. I'm certain it can be solved with CSS; I just need to study a little harder. Thanks again. Riley
 
What happens if you click elsewhere in the IFRAME (thus ensuring the IFRAME has focus) and THEN hover over the link? Do you get the hand then?

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
The window that opens is returning SQL 2K database inventory items for the user to select and place on a Purchase Order (the parent page). The "I" displays over all text/number entries in all columns. The "Arrow" displays in all other places such as open areas with no data in the field. There seems to be no distinction whether or not the field is a hyperlink other than the linked field works. I hope this makes sense?
Riley
 
Well, it sort of indirectly answers my question, but I think I know what your issue is.

Anchors defined in this fashion:

Code:
<a onclick='doThis();'>Click here</a>
will work as you expect them to, but the cursor will remain that 'I' shape when you hover over them.

HOWEVER, anchors defined like this:
Code:
<a [!]href='javascript:void(0);'[/!] onclick='doThis();'>Click here</a>
will have the finger-cursor.

It's the missing HREF-attribute that's throwing you off (I suspect).

'hope that helps.

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Just like magic, Dave. Actually I have two different include pages inside the IFrame and they work perfect after the addition of - href="javascript:void();" - in the anchor tags. Riley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top