自分のメモとして
参考にさせて頂いたサイト様を只々と紹介していく記事です
・JavaScriptにて別窓でサイズ指定のウインドウを開く
http://amenti.usamimi.info/windowopen.html
<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=”http://www.rakuten.ne.jp/gold/pajamakobo-lovely/shop/manual.html” onclick=”m_win(this.href,’mywindow7′,400,300); return false;”>クリック1</a><br>
<a href=”../../2014/商品ページ/example.html” onclick=”m_win(this.href,null,600,400); return false;”>クリック2</a><br>
・フォントファミリーの話
http://hayashikejinan.com/webwork/116/
・上記の指定されたウインドウで開く際に、ウィンドウが2つ開いてしまう問題
(何故か、Yahoo!ジオシティーズだけ 楽天、ショップサーブは問題なし)
http://did2memo.net/2013/02/18/return-false-href-2-windows/
以下、変更した内容
<a href=”” onclick=”m_win(encodeURI(decodeURI(‘リンク’)),’mywindow7′,750,700); return false;”><img src=”spec-bn2.png” width=”220″ height=”85″ border=”0″ /></a>
スポンサードリンク