Go Back   Flash Flash Revolution: Community Forums > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 07-16-2006, 06:02 PM   #1
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default iframe issues...

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

Last edited by glone; 07-16-2006 at 06:12 PM..
glone is offline   Reply With Quote
Old 07-16-2006, 07:31 PM   #2
itmorr
Custom User Title
FFR Veteran
 
itmorr's Avatar
 
Join Date: Jun 2006
Age: 33
Posts: 1,498
Send a message via AIM to itmorr
Default Re: iframe issues...

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.
__________________




Quote:
Originally Posted by jwcgator
(12:31:27 AM) jwcgator2: I got it! I'll write an auto-procrastination program!
(12:31:33 AM) jwcgator2: meh, i'll make it later
itmorr is offline   Reply With Quote
Old 07-16-2006, 07:35 PM   #3
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: iframe issues...

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

Last edited by glone; 07-16-2006 at 09:03 PM..
glone is offline   Reply With Quote
Old 07-20-2006, 02:53 AM   #4
Jaywalker420
FFR Player
 
Join Date: May 2006
Location: Missouri
Posts: 7
Send a message via AIM to Jaywalker420 Send a message via MSN to Jaywalker420 Send a message via Yahoo to Jaywalker420
Default Re: iframe issues...

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>&nbsp;|&nbsp;<a target="framemain" href="page2.html">About</a></p>
<iframe src="page1.html" frameborder="0" name="framemain"></iframe>
</body>
</html>
Hope that helps you out
Jaywalker420 is offline   Reply With Quote
Old 10-3-2006, 07:33 PM   #5
Mystik3345
FFR Player
 
Join Date: May 2005
Posts: 27
Default Re: iframe issues...

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.
__________________
Mystik3345 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution