Results 1 to 6 of 6

Thread: Highlight Image Script - doesn't work in SAFARI?

  1. #1
    Join Date
    Jun 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Highlight Image Script - doesn't work in SAFARI?

    I really like the Highlight Image Script and am using it on a nav bar that's made up of images (https://www.sittercafe.com/index.asp) . The affect is great on a PC but it doesn't work in SAFARI...

    Anyone know of a script that will do the same thing (dim an image until onmouseover) but that is compatible with ALL browsers?

    (http://www.dynamicdrive.com/dynamicindex4/image5.htm)

    Thanks,

    Michael
    Last edited by slsmag; 06-25-2006 at 10:28 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't know if the opacity style is available in safari, and, yes, it doesn't work.
    Not sure about another script... you could just do rollovers, with the "before" image looking like the desired effect... would immitate it well enough, anyway.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Using standard rollovers is an option - just trying to avoid it because it's double the overhead (twice as many images have to load into memory) and in general, this affect is faster than a rollover. But that's my fallback plan! Thanks.

    - michael

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You could possibly do a browser detect, and then do rollovers if it's safari, but that's not the best way, because browser detects don't always work, etc.

    Since the opacity thing may not exist in safari, there may be no way of doing that in it, without coming up with a totally different approach.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default sigh - ce la vie

    With no opacity option in Safari I've been forced to use rollover for compatibility. I chose the CSS 'style' rollover from Chris Poole (chrisdomroll.js) which allows the addition of a rollover by just adding a class call in the IMG tag. It works ok - but still has just a bit of 'lag' the first time the script is called.

    I am pleased that I have been able to acheive the same "look". I don't think most site visitors will even notice the difference (except the MAC users of course, who will now see the nav buttons 'light up'. https://www.sittercafe.com/index.asp

    Thanks for the encouragement.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Safari has generic opacity:

    HTML Code:
    <img src="test.jpg" style="opacity:0.05;">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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