设一个类似于"switch"的默认值;

解决方案 »

  1.   

    出现没有图像的情况?是图片加载很慢吗?最好写个预加载函数preLoad(),把图片先下载到缓存里
      

  2.   

    不是预加载的问题,已经预加载了,还是不行,代码如下:<script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('images/tanchumenu1a.gif','images/tanchumenu2a.gif','images/tanchumenu3a.gif','images/tanchumenu1.gif','images/tanchumenu2.gif','images/tanchumenu3.gif')">