求助,如何让火狐游览器与IE浏览器能互相兼容

2016-07-07 15:04 来源:www.chinab4c.com 作者:ecshop专家


  1. <DIV id=oTransContainer
  2. style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 580px; HEIGHT: 260px"><a
  3. href="#"
  4. target=_blank><img id=oDIV1
  5. style="BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; BORDER-LEFT: #dddddd 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
  6. src="images/001.jpg"
  7. border=0 /></a><A
  8. href="#"
  9. target=_blank>
  10. <IMG id=oDIV2
  11. style="BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; DISPLAY: none; BORDER-LEFT: #dddddd 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
  12. src="images/002.jpg"
  13. border=0></A>
  14. <A href="#"
  15. target=_blank>
  16. <IMG id=oDIV3
  17. style="BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; DISPLAY: none; BORDER-LEFT: #dddddd 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
  18. src="images/003.jpg"
  19. border=0></A> <A href="#"
  20. target=_blank>
  21. <IMG id=oDIV4
  22. style="BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; DISPLAY: none; BORDER-LEFT: #dddddd 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
  23. src="images/004.jpg"
  24. border=0></A>
  25. </DIV>
  26. <DIV class=slider_span>
  27. <div align="center"><SPAN class=mouseon id=sp1 onmouseover=gonow(1)>1</SPAN>
  28. <SPAN class=mouseoff id=sp2 onmouseover=gonow(2)>2</SPAN> <SPAN class=mouseoff
  29. id=sp3 onmouseover=gonow(3)>3</SPAN> <SPAN class=mouseoff id=sp4
  30. onmouseover=gonow(4)>4</SPAN> </div>
  31. </DIV>
复制代码
  1. <SCRIPT>
  2. var NowFrame = 1;
  3. var MaxFrame = 4;
  4. var bStart = 0;
  5. var t;
  6. function fnToggle() {
  7. var next = NowFrame + 1;

  8. if(next == MaxFrame+1)
  9. {
  10. NowFrame = MaxFrame;
  11. next = 1;
  12. }

  13. if(bStart == 0)
  14. {
  15. bStart = 1;

  16. t= setTimeout('fnToggle()', 5000);

  17. return;
  18. }
  19. else
  20. {
  21. oTransContainer.filters[0].Apply();

  22. document.images['oDIV'+next].style.display = "";
  23. document.images['oDIV'+NowFrame].style.display = "none";

  24. oTransContainer.filters[0].Play(duration=3);

  25. setTimeout('gospan(NowFrame)', 2000)
  26. if(NowFrame == MaxFrame)
  27. NowFrame = 1;
  28. else
  29. NowFrame++;
  30. } t= setTimeout('fnToggle()', 5000);
  31. }

  32. function gonow(cur)
  33. {

  34. document.images['oDIV'+cur].style.display = "";
  35. gospan(cur);
  36. if(cur != NowFrame)
  37. {
  38. document.images['oDIV'+NowFrame].style.display = "none";

  39. NowFrame = cur;
  40. }
  41. clearTimeout(t);
  42. t= setTimeout('fnToggle()', 5000);

  43. }

  44. function gospan(cur)
  45. {
  46. for(i=1;i<=MaxFrame;i++)
  47. {
  48. document.getElementById("sp"+i).className = "mouseoff";
  49. }

  50. document.getElementById("sp"+cur).className = "mouseon";
  51. }

  52. fnToggle();

  53. </SCRIPT>
复制代码

求助,如何让火狐游览器与IE浏览器能互相兼容!

路过的大虾,帮忙看看!坐地等,谢谢 !这功能怎么样在IE里面可以,在火狐游览器就不行了????

回答:
版主帮忙啊!


帮顶。
www.5i5net.cn

我再顶!

应该是FF 不支持 document.images对象

应该是这句
oTransContainer.filters[0].Apply();
filters FF 不支持
FF 透明 是用-moz-opacity