Jump to content

Archived

This topic is now archived and is closed to further replies.

l3lade

iframe, help

Recommended Posts

well hears my website

[a href=\"http://www.rmmsclan.com\" target=\"_blank\"]http://www.rmmsclan.com[/a]

pretty rubbish eh?

anyway i was wondering to make my site a little better when you click the links instead of reloading the whole page it just changes the middle bit. is it possible?

also suggestions on how to make it better?

Share this post


Link to post
Share on other sites
Scrolls inside of scrolls...that has got to go. Either make the page fit into a single window or do away with the inner scroll. Secondly iframes?!?! Frames are bad. I don't linger on any frames page longer than it takes me to click the back button. Now if you insist on using these things then

[code]<a href="#" target="iframe">Link</a>
<iframe name="iframe" id="iframe" src="news.html"></iframe>[/code]

or

[code]<a href="#" onClick="top.iframe.location.href = 'http://www.google.com'; return null;">Google</a>
<iframe name="iframe" id="iframe" src="news.html"></iframe>[/code]

I would use a div instead of the iframe and user overflow: auto. In the second example you could replace the # with the address to the page and the address to use in the iframe so the link would work even if the user does not have javascript enabled in their browser.

[code]<?

if ( isset($_GET['iframesrc']) ) {
  $iframesrc = $_GET['iframesrc'];
} else {
  $iframesrc = "news.html";
}

?>
<iframe src="<? echo $iframesrc; ?>"></iframe>[/code]

Just some random thoughts on the matter.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.