function mm_jumpmenu(targ,selobj,restore){ //v3.0 eval(targ+".location='"+selobj.options[selobj.selectedindex].value+"'"); if (restore) selobj.selectedindex=0; } function showpic(mod){ document.getelementbyid('spic').src=mod;} //onmouseover="this.style.filter='alpha(opacity=100)';high(this)" onmouseout="low(this)" onload="autoresizeimage(150,130,this)" //闪图效果 function trains(id,text){document.all[id].innerhtml=' '+text} function trainpic(id,text){document.all[id].innerhtml=''} function high(which2){ theobject=which2;theobject.filters.alpha.opacity=0 highlighting=setinterval("highlightit(theobject)",50)} function low(which2){ clearinterval(highlighting) which2.filters.alpha.opacity=100} function highlightit(cur2){ if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=15 else if(window.highting) clearinterval(highlighting)} //等比例缩放图片 function autoresizeimage(maxwidth,maxheight,objimg){ var img = new image(); img.src = objimg.src; var hratio; var wratio; var ratio = 1; var w = img.width; var h = img.height; wratio = maxwidth/w; hratio = maxheight/h; if (maxwidth ==0 && maxheight==0){ ratio = 1; }else if (maxwidth==0){// if (hratio<1) ratio = hratio; }else if (maxheight==0){ if (wratio<1) ratio = wratio; }else if (wratio<1 || hratio<1){ ratio = (wratio<=hratio?wratio:hratio); } if (ratio<1){ w = w * ratio; h = h * ratio; } objimg.height = h; objimg.width = w; }