Results 1 to 3 of 3

Thread: Grayscale a background image?

  1. #1

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Grayscale a background image?

    hi. how do you put a dhtml effect that grayscales an image on the background image (<body background="Some%20Pic" bgproperties="fixed">)?
    thanks.
    If there is only one perfect person in the universe, does that make them imperfect?

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Grayscale a background image?

    Um, wouldn't you just have a greyscaled version and upload that?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Grayscale a background image?

    I would tend to agree with Ecniv, but here's how this page does it when you click on "Log Out"
    Code:
    document.getElementsByTagName("html").style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
    Maybe you can play with that.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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