help me in iframe please

i have to develop a web site as a project for my studies, and i want to research on using iframes!! you see <iframe> i use to load another webpage inside a webpage. example, i have main.htm, inside main.htm i have an iframe, that opens one.htm. this loads fine, but im thinking, i have a menu thak links to two.htm like this '<a href=http://www.webdeveloper.com/forum/archive/index.php/"two.htm">click</a>'. if i click that, will the page reload with two.htm or reloads only the iframe with two.htm?<br />
<br />
i really need help plesae!!<!--content-->Well, Lesson #1 is that you don't use IFrames. Never. Ever. I'm serious. There's no reason to. But if this is ABSOLUTELY URGENT and since you will most likely ignore my previous advice, here goes.<br />
<br />
Let us say you have your page, main.html. <br />
<br />
<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"one.html" width="200px" height="400px" name="iframe"></iframe><br />
<br />
<br />
On page one.html, you have a link:<br />
<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"two.html">Next</a><br />
<br />
<br />
Well now, this will go to page two.html, inside of the IFrame. But since you are apparently using IFrames because you "assume" they are good for making a menu, you probably want to load it outside. Well, a simple target="_parent" attribute does the trick.<br />
<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"two.html" target="_parent">Next</a><br />
<br />
<br />
Don't forget that on each page you must include the IFrame tag. And please, come to your senses and DON'T use frames OR Iframes for God's sake.<!--content-->I know people say that the iframes are bad. But you can make some clean layout with them. Why do you hate them so? Also I use the iframe and never had to use the target=_parent before. Doesn't a link on a page automatically target its parent? I don't know.<br />
<br />
<br />
<br />
<br />
<br />
my site<br />
<!-- w --><a class="postlink" href="http://www.madddidley.com">www.madddidley.com</a><!-- w --><!--content-->Because there is NO NEED for iframes. What can IFrames accomplish that more accessible SSI cannot? Except for loading pages inside, but there is really no need for that. SSI allow you to make your site uniform and easy to update anyway. Plus SSI is way more cross-browser friendly, and search engines can actually access the page. If you are creating a website the proper way with CSS, than there is NO need for it. A scrolling effect is easily achieved with:<br />
<br />
<br />
<div style="width:80%; height:400px;overflow:auto;"><br />
...Scrolling Content Here. Will scroll when content is larger than set dimensions...<br />
</div><!--content-->
 
Back
Top