Printable Version of Topic
HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ frames help pls
Posted by: edward Sep 7 2006, 07:10 AM
my webpage is here : http://theadventureseekers.110mb.com/
the frames !! argh! i want to make the frame auto resize to the size of the loading page itself, so there is no scroll bar, any help?
i placed the frames in a table and this is the html code:
<table width="900" border="0" align="center">
<tr>
<td><iFRAME name="mainmenu" SRC="home.htm"></td>
</tr>
</table>
Posted by: pandy Sep 7 2006, 08:40 AM
If you want the page (or part of it) to resize with the browser window, don't use fixed widths. You have made the TD 900 pixels wide and that it is.
Posted by: Christian J Sep 7 2006, 09:55 AM
I think the OP wants something like this: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
But note that the example uses
CODE
<iframe
...
scrolling="no"
...
style="overflow:visible; width:100%; display:none"></iframe>
Which might cause problems. If javascript is unsupported or disabled, scrolling="no" disables scrollbars and "display:none" removes the iframe completely. It would be better to set these properties from the script instead (but only after checking that the browser supports the rest). Also there's no alternative content if iframes are unsupported.
A better solution than iframes is to use server-side includes, but the OP's webhost probably doesn't allow that. Another idea is to use a text editor that supports multiple file search & replace (e.g. TextPad or NoteTab), then you can easily change say a menu on all your pages.
Posted by: edward Sep 7 2006, 12:00 PM
thanks for the replies..
anyway thats the frame i want!
thanks alot!
i still have a problem though, the frame works properly under IE but not firefox, why?
Posted by: Christian J Sep 7 2006, 12:12 PM
Can you post a link to a sample page?
And does the demo at http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm work in your Firefox?
Posted by: edward Sep 8 2006, 02:05 AM
my webpage is here : http://theadventureseekers.110mb.com/
erm, internet explorer works well, but not firefox
click the "about" button, and the frame is scrollable
Posted by: Christian J Sep 8 2006, 04:56 AM
QUOTE(edward @ Sep 8 2006, 09:05 AM)
my webpage is here : http://theadventureseekers.110mb.com/
Sorry!
QUOTE
erm, internet explorer works well, but not firefox
click the "about" button, and the frame is scrollable
Seems it works on the other pages, just not when you load the http://theadventureseekers.110mb.com/aboutus.htm page. Could it be because that page (incorrectly) uses a Frameset Doctype?
----
Also you need ALT text for the images (especially the links).
And rather than javascript-dependent links like
<a href="java script:loadintoIframe('myframe', 'home.htm')">you should use real ones, like
<a href="home.htm" onclick="loadintoIframe('myframe', 'home.htm'); return false">
Posted by: Darin McGrew Sep 8 2006, 09:25 AM
QUOTE(Christian J @ Sep 8 2006, 02:56 AM)
And rather than javascript-dependent links like
<a href="java script:loadintoIframe('myframe', 'home.htm')">
you should use real ones, like
<a href="home.htm" onclick="loadintoIframe('myframe', 'home.htm'); return false">
My guess is that the JavaScript isn't needed at all. See the FAQ: http://www.htmlhelp.com/faq/html/frames.html#frame-target
Posted by: edward Sep 8 2006, 11:09 AM
hey, really thanks for the help!!
i make a new html document and paste my content over there and it works now, thanks
Posted by: monclee Sep 18 2006, 05:00 PM
i follow every step in this topic
but i cant solve the firefox problem.
please check my page
http://www.promoclubmexico.com/mexico/queretaro/tests3.php
thanks
Bye the way the only link whit the correction its "restaurantes" (ashamed) thnks for the help
Posted by: Christian J Sep 18 2006, 05:50 PM
QUOTE(monclee @ Sep 19 2006, 12:00 AM)
i follow every step in this topic
but i cant solve the firefox problem.
please check my page
http://www.promoclubmexico.com/mexico/queretaro/tests3.php
thanks
Bye the way the only link whit the correction its "restaurantes" (ashamed) thnks for the help
See http://forums.htmlhelp.com/index.php?showtopic=332
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)