function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&intheight>0) { window.resizeTo(intwidth,intheight); window.location.href=url; } } function copy_clip(meintext){ if (window.clipboardData) { // the IE-manier window.clipboardData.setData("Text", meintext); // waarschijnlijk niet de beste manier om Moz/NS te detecteren; // het is mij echter onbekend vanaf welke versie dit precies werkt: } else if (window.netscape) { // dit is belangrijk maar staat nergens duidelijk vermeld: // you have to sign the code to enable this, or see notes below netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); // maak een interface naar het clipboard var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); if (!clip) return; // maak een transferable var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); if (!trans) return; // specificeer wat voor soort data we op willen halen; text in dit geval trans.addDataFlavor('text/unicode'); // om de data uit de transferable te halen hebben we 2 nieuwe objecten nodig om het in op te slaan var str = new Object(); var len = new Object(); var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); var copytext=meintext; str.data=copytext; trans.setTransferData("text/unicode",str,copytext.length*2); var clipid=Components.interfaces.nsIClipboard; if (!clip) return false; clip.setData(trans,null,clipid.kGlobalClipboard); } alert("º¹»çµÇ¾ú½À´Ï´Ù.ºÙ¿©³Ö±â(Ctrl+v)¸¦ ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù."); return false; } function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) { toolbar_str = toolbar ? 'yes' : 'no'; menubar_str = menubar ? 'yes' : 'no'; statusbar_str = statusbar ? 'yes' : 'no'; scrollbar_str = scrollbar ? 'yes' : 'no'; resizable_str = resizable ? 'yes' : 'no'; cookie_str = document.cookie; cookie_str.toString(); pos_start = cookie_str.indexOf(name); pos_start = cookie_str.indexOf('=', pos_start); pos_end = cookie_str.indexOf(';', pos_start); if (pos_end <= 0) pos_end = cookie_str.length; cookie_val = cookie_str.substring(pos_start + 1, pos_end); if (cookie_val == "done") return; window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str); } function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } function calcHeight2() { //find the height of the internal page var the_height= document.getElementById('the_iframe2').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe2').height= the_height; } function calcHeight3() { //find the height of the internal page var the_height= document.getElementById('the_iframe3').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe3').height= the_height; } function calcHeight0() { //find the height of the internal page var the_height= document.getElementById('the_iframe0').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe0').height= the_height; } function calcHeight4() { //find the height of the internal page var the_height= document.getElementById('the_iframe4').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe4').height= the_height; }