Click to See Complete Forum and Search --> : Is there a way to load iframes first?
redpop
06-04-2006, 09:13 PM
I am developing a site that uses an iframe for the navbar. The main page may be image laden at times, therefore; causing a blank iframe slot unil they (the images) download. Is there a way to force the loading of the iframe prior to the images being downloaded onto the main page?
Thanx,
ray326
06-04-2006, 09:47 PM
No.
toicontien
06-04-2006, 09:49 PM
The iframe needs to come before the images in the HTML source. If that doesn't work, then don't use an iframe for your navigation, which you shouldn't in the first place. Search engines like complete pages, nav + content. What you've got is content or nav. It breaks a lot of the link-following processes that search engines use to index your site.
If you want the nav to remain a certain width and height and generate scroll bars when needed, use a DIV or list element, set the width and height in CSS and set the overflow of that element to auto:
#nav {
height: 400px;
overflow: auto;
width: 150px;
}
<ul id="nav">
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6</a></li>
</ul>
See CSS Design: Taming Lists (http://www.alistapart.com/articles/taminglists) at A List Apart for a how-to on styling HTML lists to make them look like a web site menu.
redpop
06-04-2006, 09:56 PM
The iframe does come before the images. I've been leary about iframes, but it was the next best thing than the current frames setup I have. I will check out your lead and see where it takes me.
thanx.