/*------------------------------------- portfolio -------------------------------------*/ // changeImage function portfolioImg(imgNum) { var pics="sys_images/main/"+imgNum+".jpg"; document.images["illust"].src=pics; } function portfolioImgLog(imgNum) { var now = new Date(); count = new Image(); count.src = "./count.php?portfolio_id=" + imgNum + "&" + now.toLocaleString(); var pics="sys_images/main/"+imgNum+".jpg"; document.images["illust"].src=pics; } // changeImageAndCaption function workImg(imgNum) { var pics=picDir+imgNum+".jpg"; // getImgWidth var TgtImg=new Image(); //イメージオブジェクトを作成 TgtImg.src=pics; //イメージオブジェクトに画像を定義 imgWidth=TgtImg.width; //画像の幅を取得 imgHeight=TgtImg.height; //画像の高さを取得 if(document.getElementById){ //N6,Moz,IE5,IE6用 imgNumを表示させる場合 document.getElementById("illustBox").style.width=imgWidth+"px"; document.getElementById("illust").style.width=imgWidth+"px"; //safari用 document.getElementById("illust").style.height=imgHeight+"px"; //safari用 document.getElementById("caption").innerHTML=caption[imgNum]; } else if(document.all){ //IE4用 imgNumを表示させる場合 document.all("illustBox").style.width=imgWidth+"px"; document.all("illust").style.width=imgWidth+"px"; document.all("illust").style.height=imgHeight+"px"; document.all("caption").innerText=caption[imgNum]; } document.images["illust"].src=pics; } // changeImageAndCaption function exhibitionImg(imgNum) { var pics=picDir+imgNum+".jpg"; // getImgWidth var TgtImg=new Image(); //イメージオブジェクトを作成 TgtImg.src=pics; //イメージオブジェクトに画像を定義 imgWidth=TgtImg.width; //画像の幅を取得 imgHeight=TgtImg.height; //画像の高さを取得 if(document.getElementById){ //N6,Moz,IE5,IE6用 imgNumを表示させる場合 document.getElementById("illustBox").style.width=imgWidth+"px"; document.getElementById("illust").style.width=imgWidth+"px"; //safari用 document.getElementById("illust").style.height=imgHeight+"px"; //safari用 document.getElementById("caption").innerHTML=caption[imgNum]; } else if(document.all){ //IE4用 imgNumを表示させる場合 document.all("illustBox").style.width=imgWidth+"px"; document.all("illust").style.width=imgWidth+"px"; document.all("illust").style.height=imgHeight+"px"; document.all("caption").innerText=caption[imgNum]; } document.images["illust"].src=pics; } /*------------------------------------- work -------------------------------------*/ // changeImageAndCaption function workImgLog(imgNum) { var now = new Date(); //アクセスカウントを入れる count = new Image(); count.src = "./count.php?work_id=" + imgNum + "&" + now.toLocaleString(); var pics=picDir+imgNum+".jpg"; // getImgWidth var TgtImg=new Image(); //イメージオブジェクトを作成 TgtImg.src=pics; //イメージオブジェクトに画像を定義 imgWidth=TgtImg.width; //画像の幅を取得 imgHeight=TgtImg.height; //画像の高さを取得 if(document.getElementById){ //N6,Moz,IE5,IE6用 imgNumを表示させる場合 document.getElementById("illustBox").style.width=imgWidth+"px"; document.getElementById("illust").style.width=imgWidth+"px"; //safari用 document.getElementById("illust").style.height=imgHeight+"px"; //safari用 document.getElementById("caption").innerHTML=caption[imgNum]; } else if(document.all){ //IE4用 imgNumを表示させる場合 document.all("illustBox").style.width=imgWidth+"px"; document.all("illust").style.width=imgWidth+"px"; document.all("illust").style.height=imgHeight+"px"; document.all("caption").innerText=caption[imgNum]; } document.images["illust"].src=pics; } /*------------------------------------- exhibition -------------------------------------*/ // changeImageAndCaption function exhibitionImgLog(imgNum) { var now = new Date(); //アクセスカウントを入れる count = new Image(); count.src = "./count.php?exhibition_id=" + imgNum + "&" + now.toLocaleString(); var pics=picDir+imgNum+".jpg"; // getImgWidth var TgtImg=new Image(); //イメージオブジェクトを作成 TgtImg.src=pics; //イメージオブジェクトに画像を定義 imgWidth=TgtImg.width; //画像の幅を取得 imgHeight=TgtImg.height; //画像の高さを取得 if(document.getElementById){ //N6,Moz,IE5,IE6用 imgNumを表示させる場合 document.getElementById("illustBox").style.width=imgWidth+"px"; document.getElementById("illust").style.width=imgWidth+"px"; //safari用 document.getElementById("illust").style.height=imgHeight+"px"; //safari用 document.getElementById("caption").innerHTML=caption[imgNum]; } else if(document.all){ //IE4用 imgNumを表示させる場合 document.all("illustBox").style.width=imgWidth+"px"; document.all("illust").style.width=imgWidth+"px"; document.all("illust").style.height=imgHeight+"px"; document.all("caption").innerText=caption[imgNum]; } document.images["illust"].src=pics; }