閉じる ― 2008年12月24日
<A HREF="JavaScript:window.close()">閉じる</A>
ポップアップ画像 ― 2008年12月13日
↓リンク
<a href="javascript:openImage('画像のURL');">
<img src="画像のURL" alt="画像のタイトル" /></a>
↓javascript本体
function openImage(src){
var i = new Image(); i.src = src;
var pop_win = window.open(
"",
"_blank",
"width="+i.width+",height="+i.height+",scrollbars=no,resizable=yes"
);
pop_win.window.document.open();
pop_win.window.document.write(
'<html>'
+'<head><title>'+i.alt+'</title></head>'
+'<body style="margin:0;padding:0;border:0;">'
+'<img src="'+i.src+'" width="100%" alt="" />'
+'</body>'
+'</html>'
);
pop_win.window.document.close();
}
<a href="javascript:openImage('画像のURL');">
<img src="画像のURL" alt="画像のタイトル" /></a>
↓javascript本体
function openImage(src){
var i = new Image(); i.src = src;
var pop_win = window.open(
"",
"_blank",
"width="+i.width+",height="+i.height+",scrollbars=no,resizable=yes"
);
pop_win.window.document.open();
pop_win.window.document.write(
'<html>'
+'<head><title>'+i.alt+'</title></head>'
+'<body style="margin:0;padding:0;border:0;">'
+'<img src="'+i.src+'" width="100%" alt="" />'
+'</body>'
+'</html>'
);
pop_win.window.document.close();
}
softbank 822SH 動画 ― 2008年12月12日
PRIVATE→MYFOLDER→MyItems→Videos→[video001.3gp]
フレーム ― 2008年12月11日
そうか、疑似フレームって手があったか!
css フレーム 疑似フレーム インラインフレーム
などでぐぐる。
css フレーム 疑似フレーム インラインフレーム
などでぐぐる。
サブウインド、<A>タグに直接書く ― 2008年12月10日
サブウインドを出すためのタグを<A>タグに直接書く
<A href="#" onclick="window.open
('../リンク先.html','','width=600,height=600,scrollbars=yes');return(false)">
リンク
</a>
<A href="#" onclick="window.open
('../リンク先.html','','width=600,height=600,scrollbars=yes');return(false)">
リンク
</a>
最近のコメント