framesrcのあるウインドウの幅を取得する(HTML/Javascript)
フレームの外側でJavascriptによって document.body.clientWidthを取得して内側に渡したいのですが document.body.clientWidthはbodyが無いと動作しないようです。 どうすればいいでしょうか? イメージ(うまくいかない) var width = document.body.clientWidth; document.write("<frameset rows='80,*' frameborder='0'>\n"); document.write(" <frame src='head.php?"+width+"' name='head'>\n"); document.write(" <frame src='body.php?"+width+"' name='body'>\n"); document.write("</frameset>\n");
Asked by :
ひみつ |
ホームページ制作・ウェブデザイン |
2006-09-08 14:19 |
お蔵入り
| 3 comments
Ads By Google
Ads By Google
