Forum Moderators: open

Message Too Old, No Replies

Better Alternative to iFrames?

         

lauranoel

4:20 pm on Jan 20, 2010 (gmt 0)

10+ Year Member



Hi. I have a page with an iFrame to feature the contents of the clicked tab. There are 3 tabs, and 1 iFrame. The sources of the contents relating to each tab clicked are formatted and coded in other html & css files. What is another alternative to using an iFrame, cause I noticed that when the tab is clicked, it still shows the white background, similar to when a new page is loading?

Here's my code:

<div id="tabs">
<div id="overview">
<a target="tabsa" class="imagelink lookA" href="toframe.html">Overviews</a>
</div>
<div id="gallery">
<a target="tabsa" class="imagelink lookA" href="tawagpinoygallery.html">Gallery</a>
</div>
<div id="reviews">
<a target="tabsa" class="imagelink lookA" href="trframe.html">Reviews</a>
</div>
</div>

<div id="tabs-1">
<iframe src="toframe.html" name= "tabsa" width="95%" height="100%" frameborder="0">
</iframe>
</div>

Thanks in advance for the help! :)

mack

5:47 pm on Jan 20, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You could do this using a scripting language such as php or Perl. Instead of using an iframe you would simply include the content as an incluede.

You may well have problems getting your content indeced correctly using your current setup.

Mack.