iFrameの高さ取得

2010年10月22日(金) 9時34分
■iFrame内のコンテンツに応じて、iFrameの高さを取得してくれる。
★Auto iFrame Height
・説明ページ(英語)
http://www.lost-in-code.com/programming/jquery-auto-iframe-height/

【手順】
1.jQueryファイルを落としてきます。
http://jquery.com/

2.jQueryプラグインのautoHeightを落としてきます。
http://lib.mobius.tw/jquery/myplugin/iframe_autoHeight/api.htm

3.JSファイルをリンク
script type="text/javascript" src="jquery.js">
script type="text/javascript" src="jquery.autoheight.js">

4.iFrameにクラス名を記述
iframe class="autoHeight" scrolling="auto" frameborder="0" src="読み込み先URL">

※上記ソースの前カッコ(<)は取ってますのでお気をつけて。
P R
http://yaplog.jp/mwninja/index1_0.rdf
プロフィール
  • ニックネーム:MW属 忍者
  • 現住所:大阪府
読者になる
大阪で忍びをやっています、Webデザイナーです。どうぞよろしくお願いいたします。

follow liphi at http://twitter.com
はてなに追加
MyYahoo!に追加
del.icio.usに追加
livedoorClipに追加

ブックマークプラス by SEO対策

QRコード