•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 428,632 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,965 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1184 | Replies: 13
![]() |
I am developing a page based on frames that has 2 frames, horizontally. The top frame displays a banner (a small Flash File) while the bottom frame contains the main body. The top frame (banner.htm) contains just the Flash File, nothing else. In spite of that, there are blank spaces appearing above and below the Flash. A vertical scrollbar is also appearing, in spite of specifying ScrollBars=None in the Frameset Page.
What am I doing wrong ? How can I remove the blank spaces and the scrollbar ?
I am giving the code of the body portion of both the frame and banner pages.
Banner.htm
------------------------------------------------
Frameset Page
What am I doing wrong ? How can I remove the blank spaces and the scrollbar ?
I am giving the code of the body portion of both the frame and banner pages.
Banner.htm
<BODY> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="BanFlash"> <PARAM NAME=movie VALUE=".\Flash\Banner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=".\Flash\Banner.swf" quality=high bgcolor=#FFFFFF NAME="BanFlash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </BODY>
------------------------------------------------
Frameset Page
<FRAMESET ROWS="36%, 63%" BORDER=0 SCROLLBARS="None"> <FRAME SRC="Banner.htm" NAME="Banner"> <FRAME SRC="Main.htm" NAME="MainBody"> </FRAMESET>
•
•
Join Date: Jan 2008
Posts: 16
Reputation:
Rep Power: 1
Solved Threads: 0
Wow, why would you ever still want to use frames? It's such an archaic design tool with both fundamental and implementation problems, having said this though, if you insist on using them try reading up on your coding:
www.w3.org/TR/html401/present/frames.html
Just a bit of help though, the extra space is caused by your frameset not equal to 100%, the difference is divided equally between the frames, additionally there is no "scrollbars" code, the code is "scrolling" and should be set to yes, no or auto. Lastly, the scrolling does not go in the frameset tag but in the same tag as the frame src.
www.w3.org/TR/html401/present/frames.html
Just a bit of help though, the extra space is caused by your frameset not equal to 100%, the difference is divided equally between the frames, additionally there is no "scrollbars" code, the code is "scrolling" and should be set to yes, no or auto. Lastly, the scrolling does not go in the frameset tag but in the same tag as the frame src.
Last edited by txwebdesign : Jan 28th, 2008 at 10:09 am. Reason: typo
Thanks TXWebDesign for the help. It solved the scrolling problem and blank spaces problem. There is a little bit of blank space at the left, but that is probably due to incorrect width specification. Have to check out.
Both of you have suggested not using Frames. My original idea was that since banner is always present at the top for every page, it would be more convenient to keep it in a frame at the top. That way I wouldn't have to put it the top of every page. Is that a incorrect policy ? What would be a better way of implementing that (short of putting it at the top of every page) ?
Both of you have suggested not using Frames. My original idea was that since banner is always present at the top for every page, it would be more convenient to keep it in a frame at the top. That way I wouldn't have to put it the top of every page. Is that a incorrect policy ? What would be a better way of implementing that (short of putting it at the top of every page) ?
•
•
Join Date: Jan 2008
Posts: 16
Reputation:
Rep Power: 1
Solved Threads: 0
Agreed. It's not about being incorrect, browsers just don't handle frames very well anymore. There are some issues with frames that have just become obsolete in the varying browsers. Search engines have problems unless you direct them to the particular frame.
I personally would use tables, as Nichito, expressed. If you create one page and then use it as a template, you don't really need to change it other than the content portion of the page. CSS would be another viable option but I'm unsure how familiar you are with it.
I personally would use tables, as Nichito, expressed. If you create one page and then use it as a template, you don't really need to change it other than the content portion of the page. CSS would be another viable option but I'm unsure how familiar you are with it.
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 964
Reputation:
Rep Power: 5
Solved Threads: 48
For getting the same header on every page...
- Configure your server for SSI ( server side includes: http://en.wikipedia.org/wiki/Server_Side_Includes ), or Perl / PHP, or anything else that can glue pages together on the fly.
- Or come up with your own search/replace policy. For example, if you write <!--!!$$$HEADER$$$!!--> where you want your header to be in every file, then do a search and replace in all files before uploading them -- its better than maintaining multiple versions of the same code in different files, and you could even automate it. I'm sure Windows must have some kind of search-replace across files, certain editing environments do for sure.
- You could also use Javascript to append a header to each page, although, that's not a great way to do it since its a post-process, and its offloading trivial work onto client machines..
- Configure your server for SSI ( server side includes: http://en.wikipedia.org/wiki/Server_Side_Includes ), or Perl / PHP, or anything else that can glue pages together on the fly.
- Or come up with your own search/replace policy. For example, if you write <!--!!$$$HEADER$$$!!--> where you want your header to be in every file, then do a search and replace in all files before uploading them -- its better than maintaining multiple versions of the same code in different files, and you could even automate it. I'm sure Windows must have some kind of search-replace across files, certain editing environments do for sure.
- You could also use Javascript to append a header to each page, although, that's not a great way to do it since its a post-process, and its offloading trivial work onto client machines..
Last edited by MattEvans : Jan 29th, 2008 at 6:38 am.
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Div menu over embedded media players
- Next Thread: browserhawk



Linear Mode