A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: cursor issue: div layering over flash with safari

  1. #1
    Senior Member
    Join Date
    Apr 2004
    Posts
    156

    cursor issue: div layering over flash with safari

    Hi

    I have a few javascript calls that hide/show divs over a flash movie and even a css/jquery drop down nav that overlaps over the flash movie.

    IE6, IE7, IE8, FF2 pc, FF3 pc, and even FF mac are fine, however with Safari the cursor remains an arrow even when rolling over a link if it is layered over the flash. The links and rollovers still work fine, I just cant get the cursor to change to the hand when rolling over a link even with css or js. Z-indexes are set correctly and everything is functional except the cursor. Anyone have a fix?

    Thanks

  2. #2
    Senior Member
    Join Date
    Aug 2009
    Location
    Scotland & England
    Posts
    117
    Have you tried throwing in a cursor: pointer; in the CSS?

  3. #3
    Senior Member
    Join Date
    Apr 2004
    Posts
    156
    Hi thanks for the reply, yes I have tried doing cursorointer with both css and in the javascript. Its weird, the links and rollovers work fine just an arrow cursor in safari, hope they fix this in an update because I cant find a fix for this.

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    1
    Having run into a similar issue, I believe I've come up with a workaround.

    Since Flash seems to steal control of the cursor, use flash to set the cursor.

    1. Create 2 functions in your flash movie. setHand() and unsetHand(). setHand() creates a clear layer over the whole flash movie with useHandCursor=true. unsetHand() removes the layer.

    2. Call setHand()/unsetHand() for all the elements that need the hand cursor using javascript. If you're using jQuery it might look something like this:
    $('a').hover(
    function(){ flashMovie().setHand(); },
    function(){ flashMovie().unsetHand(); }
    );

    And viola! The pointer cursor is back.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center