あなたがそのようにタグ付けしたので、jqueryソリューションを提供します。
ソリューション コードはhttp://jsfiddle.net/nPWAp/1/にありますが、HTML は
<body>
<div>
<a href="#" id="testlink">TEST LINK</a>
</div>
<iframe id="frame"></iframe>
<div id="statement"></div>
</body>
そしてjQueryは
$(document).ready(function() {
$("#testlink").click(function() {
// --- set statement --
$("#statement").show(); // show the div in case it was hidden.
$("#statement").text("Loading content..."); // replace the text
$("#statement").hide(5000); // hide after 5 seconds
// --- Scrape content --- //
$("#frame").attr('src', "http://www.test.com");
});
});
CSS のダッシュを追加する
#frame{
wdith: 100%
height: 50em;
border: 1px solid #ccc;
}
そして、それはすべてゴロゴロするはずです。明らかに、いくつかのファンキーなオプションについて jquery をチェックしたくなるでしょう。
HTH