/****************************************************************************** Object Properties ****************************************************************************** [Ver1.0] 09.18.2006 sYoshioka ============================================================================== (X)HTMLで利用するオブジェクトの属性(値)を定義する。 ポップアップ・ウインドウや、Flash(swf)、その他マルチメディアファイルが対象。 設定した属性とその値を、外部から参照する場合は、以下のように行う。 1.getProperties関数をコールして、属性と値を設定したオブジェクトを取得する。 2.取得したオブジェクトの属性を参照することで、設定した値を取得する。 ******************************************************************************/ /* ポップアップ・ウインドウの設定 *******************************************************************************/ var popup_window = Array(); popup_window.push({ file_name : "post_comment.cfm", pattern : /post\_comment\.cfm/i, window_name : "bio_popup_comment", width : 520, height : 690, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }); popup_window.push({ file_name : "post_question.cfm", pattern : /post\_question\.cfm/i, window_name : "bio_popup_question", width : 520, height : 760, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }); popup_window.push({ file_name : "post_answer.cfm", pattern : /post\_answer\.cfm/i, window_name : "bio_popup_answer", width : 520, height : 600, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }); popup_window.push({ file_name : "post_comment_general.cfm", pattern : /post\_comment\_general\.cfm/i, window_name : "bio_popup_all", width : 520, height : 700, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }); var approve = { file_name : "post_approve.cfm", pattern : /post\_approve\.cfm/i, window_name : "bio_popup_approve", width : 520, height : 750, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }; var close_question = { file_name : "close_question.cfm", pattern : /close\_question\.cfm/i, window_name : "bio_popup_close", width : 520, height : 235, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }; var enlarge_question = { file_name : "enlarge_question.cfm", pattern : /enlarge\_question\.cfm/i, window_name : "bio_popup_enlarge", width : 520, height : 290, channelmode : "no", fullscreen : "no", location : "no", directories : "no", menubar : "no", scrollbars : "yes", status : "no", toolbar : "no", resizable : "yes", top : -1, left : -1 }; /* Flash *******************************************************************************/ var swf = { promotion : { path : "/shared/swf/sample.swf", width : "611", height : "309", requiredVer: 6, bgcolor : "#000000", lang : "ja", objectId : "flash", elementId : "flash", flashClass : "swf", alternativeClass : "alternativeImage", base : ".", quality : "high" } }; /* Properties Objectを返す *******************************************************************************/ function getProperties(type){ switch(type){ case "popup": return popup_window; break; case "approve": return approve; break; case "close_question": return close_question; break; case "enlarge_question": return enlarge_question; break; } return ""; }