Unwanted Blank Spaces in Banner

Reply

Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Unwanted Blank Spaces in Banner

 
0
  #1
Jan 27th, 2008
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

HTML and CSS Syntax (Toggle Plain Text)
  1. <BODY>
  2. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  3. codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
  4. id="BanFlash">
  5. <PARAM NAME=movie VALUE=".\Flash\Banner.swf">
  6. <PARAM NAME=quality VALUE=high>
  7. <PARAM NAME=bgcolor VALUE=#FFFFFF>
  8. <EMBED src=".\Flash\Banner.swf" quality=high bgcolor=#FFFFFF
  9. NAME="BanFlash" ALIGN="" TYPE="application/x-shockwave-flash"
  10. PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
  11. </OBJECT>
  12. </BODY>

------------------------------------------------

Frameset Page

HTML and CSS Syntax (Toggle Plain Text)
  1. <FRAMESET ROWS="36%, 63%" BORDER=0 SCROLLBARS="None">
  2.  
  3. <FRAME SRC="Banner.htm" NAME="Banner">
  4. <FRAME SRC="Main.htm" NAME="MainBody">
  5.  
  6. </FRAMESET>
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: Unwanted Blank Spaces in Banner

 
0
  #2
Jan 28th, 2008
try measuring the exact size of the flash file and giving the height and width values in the frame the values from the flash picture... that way it is imperfection proof...
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 18
Reputation: txwebdesign is an unknown quantity at this point 
Solved Threads: 0
txwebdesign txwebdesign is offline Offline
Newbie Poster

Re: Unwanted Blank Spaces in Banner

 
0
  #3
Jan 28th, 2008
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.
Last edited by txwebdesign; Jan 28th, 2008 at 11:09 am. Reason: typo
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: Unwanted Blank Spaces in Banner

 
0
  #4
Jan 28th, 2008
you should consider switching from frames to tables... are much more efficient and appealing...
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Unwanted Blank Spaces in Banner

 
0
  #5
Jan 28th, 2008
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) ?
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: Unwanted Blank Spaces in Banner

 
0
  #6
Jan 28th, 2008
i don't think it is an incorrect policy... though it causes more chances to have something wrong... those small mistakes than are a pain in the *** and you don't know how to get rid of them...
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 18
Reputation: txwebdesign is an unknown quantity at this point 
Solved Threads: 0
txwebdesign txwebdesign is offline Offline
Newbie Poster

Re: Unwanted Blank Spaces in Banner

 
0
  #7
Jan 28th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: Unwanted Blank Spaces in Banner

 
0
  #8
Jan 28th, 2008
you could find some basic instruction in css here, though i prefer a good book...

combine tables and css and you should have a powerful tool even if you like WYSIWYG editors, or you don't write your own code often...
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Unwanted Blank Spaces in Banner

 
0
  #9
Jan 29th, 2008
I know some CSS, though not as much as I would love to. Some sites I found used CSS dazzlingly and I hope someday I can get somewhere near that. As for WYSIWIGS, I actually use Notepad for writing html
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Unwanted Blank Spaces in Banner

 
0
  #10
Jan 29th, 2008
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..
Last edited by MattEvans; Jan 29th, 2008 at 7:38 am.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC