1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

when SHOW, 2 filters....when HIDDEN, only 1? anyone can make it 2

Discussion in 'CSS' started by totally beginner, Jun 13, 2005.

  1. #1
    anyone can modify this script so it can use 2 filters when HIDDEN process?



    <SCRIPT>

    function fnSetChecker() {

    oDiv.filters[0].Apply();
    oDiv.style.visibility='hidden'
    oDiv.filters[0].play();

    ooDiv.filters[0].Apply();
    ooDiv.style.visibility='hidden'
    ooDiv.filters[0].play();
    }
    function fnSetChecker2() {

    oDiv.filters[0].Apply();
    oDiv.style.visibility='visible'
    oDiv.filters[0].play();

    ooDiv.filters[0].Apply();
    ooDiv.style.visibility='visible'
    ooDiv.filters[0].play();
    }
    </SCRIPT>

    <BUTTON onclick="fnSetChecker(); ">Get Checked Display</BUTTON><BR/><BR/>
    <BUTTON onclick="fnSetChecker2(); ">Get Checked Display2</BUTTON><BR/><BR/>
    <DIV ID="oDiv" STYLE="height:250px; width:250px; background-color: black;
    filter:progid:DXImageTransform.Microsoft.checkerboard(duration=2) progid:DXImageTransform.Microsoft.Alpha(opacity=100);">
    <DIV ID="ooDiv" STYLE="height:150px; width:150px; background-color: yellow;
    filter:progid:DXImageTransform.Microsoft.fade(duration=2) progid:DXImageTransform.Microsoft.Alpha(opacity=100);">
    </DIV>
    </DIV>
     
    totally beginner, Jun 13, 2005 IP
  2. totally beginner

    totally beginner Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anybody understand my question?
    please run that script and look at the yellow box in black box.
    when we hide that boxes, the yellow box only have one filter (from black box filter).....
    why? how to make it two?
    but when we show them up, the yellow box have two filter (1 from black box filter, 1 from it self....FADING)....see?

    now....anybody know the answer?
     
    totally beginner, Jun 19, 2005 IP
  3. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #3
    I really tried the script and also tried to understand what you want, but please explain more. What are you trying to get from it?

    Also, this script is IE only, will not work in any other browser. Do you do think it really worth the work?. Maybe if you clearly explain what you need someone ends up helping you.
     
    tresman, Jun 20, 2005 IP
  4. totally beginner

    totally beginner Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    first of all....please run the script on IE.
    see a yellow box in a black box?
    then click the first button (top one) and watch the yellow box disappear.
    the yellow box (and black box too) will disappear using 1 filter (checker board).
    see? only 1 filter is running........
    now click the second button (bottom one) and watch the yellow box appear.
    this time...the yellow box using 2 filters (checker board and fade).....see?
    now the problem is......how to make the yellow box use 2 filters when it disappear?:confused:
     
    totally beginner, Jun 22, 2005 IP