The enchanted broomstick Posted May 17, 2005 Report Share Posted May 17, 2005 right theres a screen shot, as you may be able to see i have sorted all my frames out and stuff now, at last !!!! But.... as you may notice on the main window frame it has a bar for scrolling left to right and the same again up and down. I really want to just keep the up and down one but get rid of the left to right one. Ive tried making it smaller etc loads of different ways but it doesnt seem to be happening. It seems as soon as the page becomes too long (up and down) so that the scrollbar appears then the left to right one automatically pops up as well but i really dont want it there my left to right as far as im aware fits perfectly. First off did you understand what the hell i meant ?! :"> and is there anyway to sort it out? cheers, stu :turned: Quote Link to comment Share on other sites More sharing options...
Max Quinn Posted May 17, 2005 Report Share Posted May 17, 2005 I'm not 100% sure on this but when looking through the code i was using the other day which had frames. There was a tag in each frame tag that said 'scrolling='on'' (or off). Do a control/f on the source code and search it. Like i said not 100% sure though. Thanks, Max. Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted May 17, 2005 Author Report Share Posted May 17, 2005 no it hasnt got any of that in there on mine :turned: but on a good note i never knew about that Ctrl + f does a search thats pretty cool. so cheers for that :S stu :) Quote Link to comment Share on other sites More sharing options...
Sameer Posted May 17, 2005 Report Share Posted May 17, 2005 Post the code for your iFrame. I remember having the exact problem and solving it... it's just a matter of remembering the answer. :turned:" Quote Link to comment Share on other sites More sharing options...
modx-lite Posted May 17, 2005 Report Share Posted May 17, 2005 I had the same problem aswell, but cant remeber exactly how I fixed it. I know the first thing was to check that the page displayed in the frame had no margins/borders or anything, so the <body> tag was like this: <body bgcolor="#000000" topmargin="0" leftmargin="0"> This might also help - the code for my iframe: <iframe width="375" height="291" scrolling="auto" marginheight="2" marginwidth="0" border="0" frameborder="0" src="gigscontent.htm"> Think the 'margin...' parts could be the importaint bits? I also seem to remeber that didn't actually work on its own: for some weird reason, it only made a difference if I removed the tag at the very start of the code, which Dreamweaver automatically puts in. So yeah check to see you dont have this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> and if you do, delete it! From the page which the ifram is on, and the page which the ifram has displayed in it. Hope some of that's of use to you :turned: Quote Link to comment Share on other sites More sharing options...
Max Quinn Posted May 17, 2005 Report Share Posted May 17, 2005 Hhhhmm that's odd :turned:. Using dreamweaver when i go into the source inside the frameset and stuff i have this: <frame name="leftFrame" scrolling="NO" noresize src="UntitledFrame-3.htm"> Maybe it's just me :). Max Quote Link to comment Share on other sites More sharing options...
modx-lite Posted May 17, 2005 Report Share Posted May 17, 2005 Yeah I set it to 'no' for when I didn't want it- but most ofthe time I did want vertical scrolling, just not horizontal - although having it as 'auto' should mean that, as long as the content is small enough, there would be no scrolling anyway. I think. Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted May 17, 2005 Author Report Share Posted May 17, 2005 right i shall be giving that a go when im at work tomorrow, if it doesnt work i shall be back looking for more answers, but i have a good idea whats going on now, just gotta give it some lovin' cheers guys, stu (Y) Quote Link to comment Share on other sites More sharing options...
tomturd Posted May 17, 2005 Report Share Posted May 17, 2005 <iframe style="active-scroll-bars {overflow-y:hidden};" > should do the job (Y) ← EDIT: actually that might be x:hidden.. try that if the first one doesnt work :deej: Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted May 18, 2005 Author Report Share Posted May 18, 2005 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Premier Homes Ltd.</title> </head> <frameset rows="*,15" cols="*" frameborder="yes" border="4" framespacing="4"> <frameset rows="*" cols="222,*" framespacing="0" frameborder="NO" border="0"> <frame src="UntitledFrame-4.htm" name="leftFrame" scrolling="NO" noresize> <frameset rows="80,*" framespacing="8" frameborder="yes" border="8" bordercolor="#7EB445"> <frame src="UntitledFrame-7.htm" name="topFrame" scrolling="NO" noresize> <frameset rows="*,9" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="UntitledFrame-5.htm" name="mainFrame"> <frame src="UntitledFrame-8.htm" name="bottomFrame1" scrolling="NO" noresize> </frameset> </frameset> </frameset> <frame src="UntitledFrame-6.htm" name="bottomFrame" scrolling="NO" noresize> </frameset> <noframes><body> </body></noframes> </html> that would be the code i have and its still not playing ball. (Y) stu :deej: Quote Link to comment Share on other sites More sharing options...
Dai the Socket Posted May 18, 2005 Report Share Posted May 18, 2005 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Premier Homes Ltd.</title> </head> <frameset rows="*,15" cols="*" frameborder="yes" border="4" framespacing="4"> <frameset rows="*" cols="222,*" framespacing="0" frameborder="NO" border="0"> <frame src="UntitledFrame-4.htm" name="leftFrame" scrolling="NO" noresize> <frameset rows="80,*" framespacing="8" frameborder="yes" border="8" bordercolor="#7EB445"> <frame src="UntitledFrame-7.htm" name="topFrame" scrolling="NO" noresize> <frameset rows="*,9" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="UntitledFrame-5.htm" name="mainFrame"> <frame src="UntitledFrame-8.htm" name="bottomFrame1" scrolling="NO" noresize> <iframe style="active-scroll-bars {overflow-x:hidden};" > </frameset> </frameset> </frameset> <frame src="UntitledFrame-6.htm" name="bottomFrame" scrolling="NO" noresize> </frameset> <noframes><body> </body></noframes> </html> Try that? (Y) Quote Link to comment Share on other sites More sharing options...
modx-lite Posted May 18, 2005 Report Share Posted May 18, 2005 also seem to remeber that didn't actually work on its own: for some weird reason, it only made a difference if I removed the tag at the very start of the code, which Dreamweaver automatically puts in. So yeah check to see you dont have this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> and if you do, delete it! From the page which the ifram is on, and the page which the ifram has displayed in it. Quote Link to comment Share on other sites More sharing options...
Danny Posted May 18, 2005 Report Share Posted May 18, 2005 Personally id scrap frames alltogether and do something like <? $section = $_GET['section']; if (empty($section)) { Â include ("news/news.php"); } else { Â Â include ("content/$section.php"); } ?>[/code] That way when you put the url index.php?section=blah (where blah is the name of the page you want to goto) the file blah.php is loaded inside the index where the php code is. But if you just goto index.php then the news page is loaded (Y) Not really complicated at all when you look at it. As for horizontal scrolling something like the following in the header of the right hand frame html. [code]<style type="text/css"> body { overflow-x: hidden; } </style> Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted May 19, 2005 Author Report Share Posted May 19, 2005 Not really complicated at all when you look at it. Danny you just forget sometimes that we are not all 'gifted' like your sexy self. :P from one who put much creation into this multi-functional forum. But us mere peasents havent got quite that gift and it becomes errrm hard to do. When i start then eventually finish my CIW course i will be able to show off :P oh back to the point nah it still hasnt worked im starting to think bugger it is it really that important?! cheers, stu ^_^ Quote Link to comment Share on other sites More sharing options...
delusional Posted May 19, 2005 Report Share Posted May 19, 2005 Get rid of the frames and everything will be ok. Frames are a pain in the neck, you're much better off using div tags and css to layout your page. Then, rather than using php get variables to discern what content to load, as Danny suggested, I would be inclined to instead create one file per page of content (so a page called news.html and one called contact.html etc) and use include() to include the parts that are constant across all pages (menu, header, etc). This way the URLs for individual pages make more sense to non-techies [htttp://www.foo.com/news.html as opposed to http://www.foo.com/page.php?section=news] and there's less chance of you opening some form of security hole by allowing get variables to be passed to your script. It's really quite easy to do and should save you a lot of headache. Getting rid of frames has all sorts of advantages: It allows people to directly link to content within your site; it prevents search engines indexing pages that were designed to only be seen within a frameset; it helps prevent unsightly layout issues like you're experiencing here; it makes it easier to provide content for browsers that don't support frames (although that may be a little redundant these days - it's always good to provide backwards compatability though). Generally a good thing really :) I'm not sure if that makes much sense... I haven't written a single line of code for about 6 weeks now, so I may be a little vague. Prod me if you need a bit of a clearer explanation. Quote Link to comment Share on other sites More sharing options...
The enchanted broomstick Posted May 19, 2005 Author Report Share Posted May 19, 2005 PROD ha ha ha, i dont think its worth the hassle at this moment in time, compared to what the site was originally like i have made it look much sexier so im happy with that. Im still learning a lot about web design and havent yet mastered html, im learning pieces of dhtml etc. but its all a long struggle. Hopefully when i take the CIW course i should learn a lot more but thats a 2 year thing, meh lets whistle the time by :P" If anybody wants to be my online tutor your more than welcome :P cheers, stu ^_^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.