Results 1 to 4 of 4

Thread: Highlight Image Script

  1. #1
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Highlight Image Script

    Hi Everyone

    I'm attempting to use this script, but I can't get the dull effect to work the way I'd like; http://www.dynamicdrive.com/dynamicindex4/image5.htm

    The script works perfectly, but when image is in "dull" mode, well it's too dull for my background. If I could just make it a bit brighter, so it doesn't dissapear into my background. I've attempted to fiddle with the (opacity=20)
    changing it to a higher number, like 40, 60, 80, and that worked making the image brighter, but then when I run mouse over it, it shows fullcolor, then when moving mouse away again, it just goes back to the default dullness, which is too dull again
    Can anyone please tell me what I need to configure to change this please

    Thank you DD

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You also need to change this line:
    Code:
    strength=(which==0)? 1 : 0.2
    Edit the 0.2 to be the opacity as a decimal, where 0 is invisible and 1 is fully opaque.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    You also need to change this line:
    Code:
    strength=(which==0)? 1 : 0.2
    Edit the 0.2 to be the opacity as a decimal, where 0 is invisible and 1 is fully opaque.
    Uhhh, ya ok And is this in the code in the body? or the code in the head? or both?

    Sorry I stink with decimals, I played around alittle with the numbers, but I can't get it right.

    Thanks Twey,
    ___________________________________________________________________________________-
    Scratch this, I got it....Thanks Again Twey..
    Last edited by rcourt64; 02-28-2006 at 03:59 PM.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    In the head.
    There are only seventeen lines of code; how hard can it be to find? Anyway, it's on line eight.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •