<IMG SRC="¹Ï¤ù¸ô®|" WIDTH="¹Ï¤ù¼e«×" HEIGHT="¹Ï¤ù°ª«×" ...>
<!-- ºô¶ÁôÂð϶ô¡A°µ¬°I´º¸ü¤J¹Ï¤ù¡A¥H¨Ñ«pºâ¤§¥Î¡C // --> <DIV ID="layer2" STYLE="position:absolute;visibility:hidden;"> <IMG NAME="spic1" SRC="scale01.gif" ALT="¹ÏÀÉ:scale01.gif"> <IMG NAME="spic2" SRC="scale02.gif" ALT="¹ÏÀÉ:scale02.gif"> <IMG NAME="spic3" SRC="scale03.gif" ALT="¹ÏÀÉ:scale03.gif"> <IMG NAME="spic4" SRC="scale04.gif" ALT="¹ÏÀÉ:scale04.gif"> <IMG NAME="spic5" SRC="scale05.gif" ALT="¹ÏÀÉ:scale05.gif"> </DIV>
<!-- ºô¶Åã¥Ü°Ï¶ô¡A°µ¬°ºô¶§ï¼g¤¸¥ó¨Ï¥Î¡A z-index:1 ¬O¤£nÅýÅã¥Ü°Ï¶ô³QÁôÂð϶ô»\¦í¡C // --> <DIV ID="layer1" STYLE="position:absolute;z-index:1;"> <!-- ...... ¹Ï¤ù¥¼§¹¥þ¸ü¤J«eªºÅã¥Ü°T®§ ...... // --> </DIV>
/* «Å§i¹Ï¤ùÅã¥Ü°Ïªºªø¼e¤Î³»ÂI®y¼Ð */ var SCALE_WIDTH=160; var SCALE_HEIGHT=240; var H_BORDER=24; var V_BORDER=24; /* ¹º¥X¹Ï¤ùÅã¥Ü°Ï¨ç¦¡ */ function AddPictureArea() { var result=""; /* space8.gif ¬°¤@§¹¥þ³q³z¹Ï¤ù¡A¥Øªº¬O¾B¦í¥¼¸ü¤J¹Ï§Î®Éªº¨t²Îĵ§i¹Ï¥Ü¡C */ result+='<IMG SRC="space8.gif" WIDTH='+SCALE_WIDTH; result+=' HEIGHT='+SCALE_HEIGHT; result+=' BORDER=1 ALIGN=LEFT ALT="¹Ï¤ù¸ü¤J²°"'; result+=' HSPACE='+H_BORDER+' VSPACE='+V_BORDER+'>'; return result; }
/* ¨ú±o¹Ï¤ù¸ê°Tªº¦Ûq¨ç¦¡ °Ñ¼Æ idx ªí¥Ü¿ï¥Î¹Ï¤ùªº½s¸¹ */ function GetPictureSource(idx) { var picobj,pass=false; /* ¨Ì½s¸¹ÁÙ즨 IMG ½sÅÒ¦WºÙ¡AÚ«K°µª«¥ó¦WºÙ©I¥s¡C */ var picname="spic"+(idx+1); if (document.all) {picobj=document.images[picname];pass=true;} if (document.layers) {picobj=document.layers.layer2.document.images[picname]; pass=true;} if (pass) { /* n¥H°}¦C¬°¦^¶ÇÈ¡A¶Ç¦^¿ï¨ú¹Ï¤ùªº¼e¡B°ª¤ÎÀɮ׸ô®|¡C */ var result=new Array(); result[0]=picobj.width; result[1]=picobj.height; result[2]=picobj.src; return result; } }
/* ¹Ï¤ùÅã¥Ü³]©w¨ç¦¡ */ function ReScalePictureSize(idx) { /* ¶Ç»¼½s¸¹µ¹¨ú±o¹Ï¤ù¸ê°T¦Ûq¨ç¦¡¡A¨Ã¥Î picset ÅܼƱµ¦¬¤@²Õ°}¦C¦^¶ÇÈ¡C */ var picset=GetPictureSource(idx); /* ¹Ï¤ù¼e«×¦b¦^¶Ç°}¦Cªº²Ä¤@Ó¤¸¯ÀùØ */ var picwidth=picset[0]; /* ¹Ï¤ùªø«×¦b¦^¶Ç°}¦Cªº²Ä¤GÓ¤¸¯ÀùØ */ var picheight=picset[1]; /* ¹Ï¤ùªº¨Ó·½¸ô®|¦b¦^¶Ç°}¦Cªº²Ä¤TÓ¤¸¯ÀùØ */ var picsrc=picset[2]; /* ¥H¤U¨Ì¹Ï¤ùÅã¥Ü°Ï¤j¤p«ºâ¹Ï¤ù¤j¤p¤ÎÅã¥Ü³»ÂI */ var xrate=SCALE_WIDTH/picwidth; var yrate=SCALE_HEIGHT/picheight; var newrate=(yrate<xrate)?yrate:xrate; picwidth*=newrate; picwidth=parseInt(picwidth); picheight*=newrate; picheight=parseInt(picheight); newleft=parseInt((SCALE_WIDTH-picwidth)/2)+H_BORDER+1; newtop=parseInt((SCALE_HEIGHT-picheight)/2)+V_BORDER+1; /* ±Npºâµ²ªGÂର HTML ªº¼ÐÅÒ³]©w¦r¦ê */ var result=""; result+='<DIV STYLE="position:absolute;' result+=' left:'+newleft+'px;top:'+newtop+'px;">' result+='<IMG SRC="'+picsrc+'"'; result+=' WIDTH='+picwidth+' HEIGHT='+picheight+'></DIV>'; return result; }
/* §â§ó·s«áªººô¶¤º®eÅã¥Ü¨ìºô¶¤W¨ç¦¡ °Ñ¼Æ idx ªí¥ÜnÅã¥Üªº¹Ï¤ù½s¸¹ */ function PushShowString(idx) { var showstring=""; /* ¹º¥X¹Ï¤ùÅã¥Ü°Ï */ showstring+=AddPictureArea(); /* ¥[¤W»¡©ú¤å¥ó¼ÐÃD */ showstring+=AddTextTitle(); /* ¥[¤W»¡©ú¤º¤å */ showstring+=AddTextContent(); /* ¥[¤W¹Ï¤ù¿ï¾Ü¾¹ */ showstring+=AddPictureSelecter(); /* ¥[¤W¹Ï¤ùÅã¥Ü³]©w */ showstring+=ReScalePictureSize(idx); /* ¨ÌÂsÄý¾¹¤£¦P§âºô¶¤º®e¿é¥X¨ìºô¶³¡¥÷°Ï¶ô */ if (document.all) {layer1.innerHTML=showstring; /* ¨Ì¶Ç¤J¤§¹Ï¤ù½s¸¹³]©w¿ï¨ú¶µ */ document.forms.form1.elements.sel1.selectedIndex=idx;} if (document.layers) { var doc=document.layers.layer1.document; doc.open(); doc.write(showstring); doc.close(); doc.forms.form1.elements.sel1.selectedIndex=idx; } }³o¨ç¦¡¤¤»¡©ú¤å¥ó¼ÐÃD¡B»¡©ú¤º¤å©M¹Ï¤ù¿ï¾Ü¾¹¤TÓ³¡¥÷¨ç¦¡ÁöµM¨S¦³¦b ¥»¶»¡©ú¡A¦ý°ò¥»ì²z³£¤@¼Ë¡A´N¬O¶Ç¦^¬ÛÃö³]©w¦r¦ê¡A¥Ñ©ó»P¹Ï¤ù®æ¦¡³]©w¨S¦³¤Ó¤j ªºÃö«Y¡A©Ò¥H´N¤£¦b¦¹³B®ö¶O½g´T¡A¦³¿³½ì§A¥i¥H¦Û¦æÀ˵ø½d¨Ò¤¤ªºì©lÀɮסA ¤W±ÁÙ¬O¦³¬ÛÃö¸Ñ»¡ªº¡C