September 19, 200817 yr ok, i have a HTML page with a normal menu of buttons which are linked to an iframe, when a button is clicked the page is displayed in the iframe. It all works perfectly, flicking through pages BUT when you use the browser back button THEN click a link it opens in a new window rather than the iframe. heres the code im using... <iframe scrolling="auto" width="792" height ="469" src="home.swf" FRAMEBORDER="0" id="frame1" name="frame1"> </iframe> <td width="144" height="435" rowspan="2" valign="top" bgcolor="#000000"><p align="right"><a href="weld_trial.htm" target="frame1"><img src="images/advert.gif" width="141" height="130" border="0"></a><a href="home.swf" target="frame1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','buttons/button_home_down.gif',1)"><img src="buttons/button_home_up.gif" name="Image14" width="140" height="39" border="0" align="top"><br> </a><a href="special_offers.htm" target="frame1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','buttons/button_offers_down.gif',1)"><img src="buttons/button_offers_up.gif" name="Image12" width="140" height="35" border="0"> any ideas? thanks in advance
September 19, 200817 yr Author ideally i wanted to use an iframe so theat the ad banner doesn't restart itself on every page. the site can be found here: FernEng.com
September 19, 200817 yr It is normal practice to have a banner ad restart/refresh it's self on every page. What if you have more than one banner? Then you would need to force the banner to change at some point. Look at any website with banners on and you will see that every page reloads the banner or pulls in a new one. A couple of things to note: Learn how to use divs to build your site not tables. Why are you using frames? Use an external style sheet. Your pointing to background images on a 'C' drive. This will not work as I don't have the image on my 'C' drive. You need the path to the image on your server. I'm not sure how to fix your problem with the iframe as I haven't had the pleasure of using them for a while. What I would say though is if you built the site without using frames then the problem wouldn't exist.
September 19, 200817 yr Author i will probably do that then, i just quite liked the idea of not refreshing the menu/background everytime a new page is loaded. which image is pointing at the c: drive?
September 19, 200817 yr This is the image that is pointing to the C drive - <table border="0" cellspacing="0" cellpadding="0" width="100%" height="21" background="file:///C|/Documents%20and%20Settings/All%20Users/Documents/150DreamweaverTemplates/corporate06/corporate06/images/bkgrnnav_pattern.jpg"> It's the 8th line down from the header. I would personally concentrate on using divs for the layout and loosing the frames instead of worrying about the iframe issue. But I'm sure there will be someone on here that will know more about iframes than me.
Create an account or sign in to comment