HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Frames in existing site.
Post a Reply to this Topic Ask a New Question Goto page 1, 2  Next
Click here to go to the original topic
       HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
casper1885



Joined: 07 Sep 2008
Posts: 9

Posted: Sun Sep 07, 2008 3:11 am     Frames in existing site.  

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

Posted: Sun Sep 07, 2008 7:59 am      

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

Posted: Sun Sep 07, 2008 10:50 am      

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

Thanks
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Sun Sep 07, 2008 12:08 pm      

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

Posted: Sun Sep 07, 2008 12:14 pm      

Thanks alot :wink:
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Mon Sep 08, 2008 6:39 am      

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

Posted: Mon Sep 08, 2008 9:48 am      

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

Posted: Mon Sep 08, 2008 11:06 am      

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

Posted: Mon Sep 08, 2008 11:46 am      

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

Posted: Mon Sep 08, 2008 12:12 pm      

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

Posted: Mon Sep 08, 2008 1:08 pm      

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

Posted: Mon Sep 08, 2008 1:44 pm      

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

Posted: Mon Sep 08, 2008 1:55 pm      

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

Posted: Mon Sep 08, 2008 2:22 pm      

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

Posted: Tue Sep 09, 2008 3:26 am      

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?
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> HTML Frame Goto page 1, 2  Next
Page 1 of 2


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group