m2

2008-02-01から1ヶ月間の記事一覧

ページ中央にGoogleサイト内検索を表示

即興ですが。(position:fixedを理解しないブラウザ不可) (function(){ var d=document,l=location,f=document.createElement('form'); f.style.cssText='position:fixed;padding:5px;background-color:white;border:#1E90FF solid 1px;top:40%;left:40%;z-in…

相対パスから絶対パスに変換

(function(){ var fr = document.createElement('iframe'); fr.src = 'about:blank'; fr.style.display = 'none'; document.body.appendChild(fr); var d = fr.contentWindow.document; d.write('<html><head><base href="http://d.hatena.ne.jp/miya2000/20080120/p0"></head><body><a href="hoge.html"></a></body></html>