Development Hey Linear, trash my site plz!

Discussion in 'Software' started by Phire, 5 Apr 2002.

  1. linear

    linear Minimodder

    Joined:
    5 Oct 2001
    Posts:
    4,393
    Likes Received:
    1
    Ah, the joy of being table free....

    The stuff that's inline style now just goes into a proper selector in your stylesheet.

    Code:
     
    .faded {
      filter:alpha(opacity=50);
      -moz-opacity:50%;
    }
    
    And then you use ordinary onMouseover event handling in the element to call the Javascript functions that fade it in or out. The mr.maX examples I posted just toggle the opacity to 100%; you can use a timeout to fade them smoothly for some serious fun. Kinda like your original fader code attempted but failed to do.

    Get that selector thing worked out, and it will work for any element you apply that class to, not just images. ;)

    check it out. I'll remove it from my site once you've seen it because I think its kinda goofy but it's fun.
     
  2. Phire

    Phire Performance-PCs.com

    Joined:
    11 Jan 2002
    Posts:
    1,441
    Likes Received:
    0
    great! still having problems with the left div not stretching to the bottom of the page! :(
     
  3. linear

    linear Minimodder

    Joined:
    5 Oct 2001
    Posts:
    4,393
    Likes Received:
    1
    It's rendering correctly for me in IE6/Win2k.

    [​IMG]

    Browsers are really random. Some of them deal with CSS really poorly. IE6 is the most compliant mainstream browser I've found to date.
     
  4. Phire

    Phire Performance-PCs.com

    Joined:
    11 Jan 2002
    Posts:
    1,441
    Likes Received:
    0
    good. what resolution are you at? at 1024x768 and 800x600 it wouldnt do it in IE6 for me, but I will try again.
    Still havent figured those filters out :rolleyes:
    Explain it to me like im a 7 year old............
     
  5. Phire

    Phire Performance-PCs.com

    Joined:
    11 Jan 2002
    Posts:
    1,441
    Likes Received:
    0
    seems to not be rendering in anything below 1024....hmmmm
     

Share This Page