|
|
#1 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Ok, here's the deal. I don't have any books on writing code and am now working for a friend of mine as a sub-contractor in web site development. The problem is that I hardly know enough code to get a web site up let alone do more advanced things. I can look at source code all day long and understand what it all does, I just don't know it enough to program from scratch. I'll be learning the more advanced kinds of programming a little later, but right now I need some help on a current issue atm. I have resources for coding and design and all that, but I still need some help (hence the post).
The page I'm working on has a banner/nav bar, which I've created and done mouseover effects for, but what I want to do is beyond my abilities and understanding right now. Below the nav bar/banner is supposed to be an iframe which takes up the rest of the page with the links on the nav bar loading pages in the iframe (need to know how to do this). This makes it so someone only has to load the nav bar/banner once and not on every page. Also, when I do create the iframe, it loads to the left of the nav bar, pushing it off the screen. I don't really understand how to fix this. I've looked at other tutorials on this suject (or close to it) and didn't really understand where to place the code or what needs to go in some of the variable's spots. Any help on this would be great, Thanks -glone
__________________
Post on Net Neutrality: Quote:
Quote:
Last edited by glone; 07-16-2006 at 06:12 PM.. |
||
|
|
|
|
|
#2 |
|
Custom User Title
|
If the server supports php, you could try this:
Use php to include() pages Put span tags around the includes Define where the spans are positioned in your stylesheet Inside your main page content span, use php to figure out what content should be displayed (if $_GET['content'] == news, include this page.) Supply arguments to send to $_GET from the menu. To do this, make the buttons point to urls such as http://www.asdf.com?content=news There are some minor problems that can occur in the way IE handles multple positioning arguments in the stylesheet, but those problems are probably going to be a thing of the past when Vista comes out since it'll most likely deploy with IE 7. Also, if you want to see an example, click the link in my forum siggy. I'd be happy to share the stylesheet and page code with you if that would be of any further assistance. Whatever technique you use to solve the problem will get easier as you use it enough. Hope that helps.
__________________
|
|
|
|
|
|
#3 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Thanks a bunch. I'll edit this post again once I test it and I'll write if I have any problems.
EDIT: Ok, well I got it to load the page to an iframe the way I wanted it to. It was so simple that once I had figured it out, I didn't feel satisfied that I had accomplished anything. I was like "Wtf? That's it? Wow. I r dum." Now I just need to get it to sit under the header and not to the left of it. EDIT: Got it to fit underneath the header. All I had to do was put the code after the </html> tag at the bottom of the page. Now I just need to have the banner expand with the iframe.
__________________
Post on Net Neutrality: Quote:
Quote:
Last edited by glone; 07-16-2006 at 09:03 PM.. |
||
|
|
|
|
|
#4 |
|
FFR Player
|
PHP would work... but that seems a little above your level as of now... You want to use the target= tag in your links. An example of a simple frame page with links would be this:
Code:
<html> <body> <p><a target="framemain" href="page1.html">Home</a> | <a target="framemain" href="page2.html">About</a></p> <iframe src="page1.html" frameborder="0" name="framemain"></iframe> </body> </html> ![]() |
|
|
|
|
|
#5 |
|
FFR Player
Join Date: May 2005
Posts: 27
|
if the iframe is showing up off the page then you can just mess with the numbers until it moves to the correct position. not sure why, but sometimes iframes dont like to go where they are supposed to. i've had the problem several times but it is a simple thing to fix. hope that helps.
__________________
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|