3 |
ポップアップで小窓を自動でセンタに表示
(サンプル:リサイズ可能を指定) |
</STYLE>の後、<BODY>の間に記述すればいい。
<script type="text/javascript"><!--
function m_win(url,windowname,width,height) {
var features="location=no, menubar=no, status=yes, scrollbars=yes,
resizable=yes, toolbar=no";
if (width) {
if (window.screen.width > width)
features+=", left="+(window.screen.width-width)/2;
else width=window.screen.width;
features+=", width="+width;
}
if (height) {
if (window.screen.height > height)
features+=", top="+(window.screen.height-height)/2;
else height=window.screen.height;
features+=", height="+height;
}
window.open(url,windowname,features);
}
// --></script>
<A href="https://iwasashougo.com/0811090017.JPG" onclick="m_win(this.href,null,754,576);
return false;">ポップアップで小窓を自動でセンタに表示</A> |