filters[0]
是指第一个过滤器:filter:glow(color=red,strength=2);

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <style>
    #glowtext{
    filter:glow(color=red,strength=2);
    width:100%;
    }
    </style>
    <script language="JavaScript1.2">
    var step=0;
    function glowit(which){
    document.all.glowtext[which].filters[0].color = (step==0)?"red":"green"
    if (document.all.glowtext[which].filters[0].strength==2)
    document.all.glowtext[which].filters[0].strength=1
    else
    document.all.glowtext[which].filters[0].strength=2
    step = (step+1)%2
    }

    function glowit2(which) {
    document.all.glowtext.filters[0].color = (step==0)?"red":"green"
    if (document.all.glowtext.filters[0].strength==2)
    document.all.glowtext.filters[0].strength=1
    else
    document.all.glowtext.filters[0].strength=2
    step = (step+1)%2
    }
    // ...
      

  2.   

    <HTML>
    <HEAD>
    <style>
    #glowtext{
    filter:glow(color=green,strength=2);
    width:100%;
    }
    </style>
    <script language="JavaScript1.2">
    function glowit(which){
    if (document.all.glowtext[which].filters[0].strength==2) {
    document.all.glowtext[which].filters[0].strength=1;
    document.all.glowtext[which].filters[0].color='red';
    }
    else {
    document.all.glowtext[which].filters[0].strength=2
    document.all.glowtext[which].filters[0].color='green';
    }
    }

    function glowit2(which) {
    if (document.all.glowtext.filters[0].strength==2) {
    document.all.glowtext.filters[0].strength=1;
    document.all.glowtext.filters[0].color='red';
    }
    else {
    document.all.glowtext.filters[0].strength=2
    document.all.glowtext.filters[0].color='green';
    }
    }
    function startglowing() {
    if (document.all.glowtext&&glowtext.length) {
    for (i=0;i<glowtext.length;i++)
    eval('setInterval("glowit('+i+')",150)')
    }
    else if (glowtext)
    setInterval("glowit2(0)",150)
    }

    if (document.all)
    window.onload=startglowing
    </script></HEAD><BODY>
    <DIV id="glowtext">yuxuemei.yeah.net1</DIV>
    <DIV id="glowtext">yuxuemei.yeah.net2</DIV>
    <DIV id="glowtext">yuxuemei.yeah.net3</DIV>
    </BODY>
    </HTML>
      

  3.   

    <HTML>
    <HEAD>
    <style>
    #glowtext{
    filter:glow(color=red,strength=2);
    width:100%;
    }
    </style>
    <script language="JavaScript1.2">
    var step=0;
    function glowit(which){
    if (document.all.glowtext[which].filters[0].strength==2)
    document.all.glowtext[which].filters[0].strength=1
    else
    document.all.glowtext[which].filters[0].strength=2

    document.all.glowtext[which].filters[0].color=step==1?"red":"green";
    step=(step+1) % 2;
    }

    function glowit2(which) {
    if (document.all.glowtext.filters[0].strength==2)
    document.all.glowtext.filters[0].strength=1
    else
    document.all.glowtext.filters[0].strength=2

    document.all.glowtext.filters[0].color=step==1?"reg":"green"
    step=(step+1) % 2
    }
    function startglowing() {
    if (document.all.glowtext&&glowtext.length) {
    for (i=0;i<glowtext.length;i++)
    eval('setInterval("glowit('+i+')",150)')
    }
    else if (glowtext)
    setInterval("glowit2(0)",150)
    }

    if (document.all)
    window.onload=startglowing
    </script></HEAD><BODY>
    <DIV id="glowtext">yuxuemei.yeah.net1</DIV>
    <DIV id="glowtext">yuxuemei.yeah.net2</DIV>
    <DIV id="glowtext">yuxuemei.yeah.net3</DIV>
    </BODY>
    </HTML>
      

  4.   

    #glowtext{
    filter:glow(color=red,strength=2);
    filter:glow(color=green,strength=2);
    width:100%;
    }
    里面的glow(color=red,strength=2);是什么意思???glow()是内部函数还是什么???
      

  5.   

    to  hazeline(砸死我) 、ssm1226(雨中人):
    怎么我把你们的代码全copy下来就不行呢?
      

  6.   

    <span id=blink style="color:green" onload="">aaaaa</span>
    <SCRIPT LANGUAGE="JavaScript">
      setInterval("blink.style.color=(blink.style.color=='green')?'red':'green'",200)
    </SCRIPT>
      

  7.   

    楼主,你不会吧?ssm1226(雨中人)和我的代码都可以正确运行,而你却说不能用?仔细点,不要少拷了
      

  8.   

    是吗?怎么我把你的拷下拉,运行 说 12类型不匹配,好像是说这句document.all.glowtext[which].filters[0].strength=1;
      

  9.   

    哎,没话说了,还是给你做个文件让你看吧
    ssm1226(雨中人)的
    http://hazeline.vip.sina.com/example03.htm
    我,hazeline(砸死我)的
    http://hazeline.vip.sina.com/example02.htm
      

  10.   

    <span id=java1 >信</span><span id=java2 >息</span><span id=java3 >总</span><span id=java4 >汇</span><script language=javascript>
    temp_i=1;
    function flash_sms()
    { for (i=1;i<=4;i++)
    {
    if (i==temp_i) temp_str="red"; else temp_str="black";
    eval("java"+i+".style.color='"+temp_str+"';");
    }
    temp_i++;
    if (temp_i>4) temp_i=1;
    }
    setInterval("flash_sms()",300);
    </script>