Jump to content

iframe, help


l3lade

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?
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.