HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Frames in existing site.
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Sun Sep 07, 2008 3:11 am     Frames in existing site. Reply with quote

Hi. I have been working on a basic website for my company(1-person company). And i am now almost done. i am just not happy about the menu structure. you can see the page at www.cs-installation.dk

the thing i want to do is create a frame where the menu links opens in(the site is already designed to have a frame like that made). So when i should update texts etc. i only need to open a "blank" htm site, and not the whole site with top grapics and menu. And by the tutorials i have read, i cant seem to implement the frame properly...thats why i hope one of you guys can come with the wise words to a newbie.

Last thing...if there are a better alternative to frames, please let me know.

Looking forward to your reply's..

Thank you...
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Sun Sep 07, 2008 7:59 am     Reply with quote

Frames are not a good choice as they cannot be index by search engines plus other problems. An alternative is css and div's using a little javascript. Content can stay on one page and will display if javascript is turned off. Images you are using would need to be sliced differently to use with div's and not tables.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Sun Sep 07, 2008 10:50 am     Reply with quote

Where can i read something about that javascript and css code?

Thanks
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Sun Sep 07, 2008 12:08 pm     Reply with quote

I'll give you a design and some references later tonight, I am going out for awhile right now.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Sun Sep 07, 2008 12:14 pm     Reply with quote

Thanks alot Wink
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Mon Sep 08, 2008 6:39 am     Reply with quote

You can learn all about css using the tutorials on this site.
A good layout http://www.pmob.co.uk/temp/2columncentred_equalising.htm
and a good script to do what you want is http://www.dynamicdrive.com/dynamicindex3/dropdownview2.htm
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Mon Sep 08, 2008 9:48 am     Reply with quote

Yes, the java script worked!Super. And thanks alot.

A last things while I have your attention. The page looks fine on my pc with high res(1280x1024). Scrolless on the "main" page, and then "scroll-able" in the java script window. But on my laptop with 1280x768 the main page is not scrolless. How can this be fixed, so it will fit most resolutions?

Thanks

PS.
What about the borders in the java script window? can they be removed so that they are invisible? The updated site is ready at the url i posted...
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Mon Sep 08, 2008 11:06 am     Reply with quote

In this piece of code for the iframe
Code:
var iframecode='<iframe id="external" style="width:99%;height:650px" src="forside.html"></iframe>'

add
Code:
var iframecode='<iframe id="external" style="width:99%;height:650px; border:none" scrolling="no" src="forside.html"></iframe>'

This should work.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Mon Sep 08, 2008 11:46 am     Reply with quote

That doesn't seem to work here? the new page is uploadet, and you can see that your code is there....
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Mon Sep 08, 2008 12:12 pm     Reply with quote

It works in all browsers except IE. You might try border-color:#fff; or border:0; just for IE's sake.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Mon Sep 08, 2008 1:08 pm     Reply with quote

yeah, your right....firefox had no probs. Ok, but where should i add the: "border-color:#fff; or border:0;"??

thanks
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Mon Sep 08, 2008 1:44 pm     Reply with quote

I would try both. If neither work then there probably is no fix since the code is being rendered by javascript. Maybe stratstudio will have a javascript fix if he views this post. If none of these seem to work, you might pm him.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Mon Sep 08, 2008 1:55 pm     Reply with quote

Good idea...

but again....im not so fast, hehe. so could you show me where to add the code, like you did with the iframe?

thanks
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Mon Sep 08, 2008 2:22 pm     Reply with quote

In this piece of code
var iframecode='<iframe id="external" style="width:99%;height:650px; border:none" scrolling="no" src="forside.html"></iframe>'

edit the bold text by changing the word none to either a 0 (zero) or #fff (shorthand hexidecimal code for the color white)

You can also try it like this
Code:
var iframecode='<iframe id="external" style="width:99%;height:650px; border:none; display:block;" scrolling="no" src="forside.html"></iframe>'

I would think the height and width would be more than enough to hold your content.
casper1885



Joined: 07 Sep 2008
Posts: 9

PostPosted: Tue Sep 09, 2008 3:26 am     Reply with quote

Neither seems to work(with IE)....I guess a script fix is the only way.....

What about my resolution problem? Can i make the main site/template scrolless?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial