I need to know what code to use on the link to open the iframe and what code to put into the body of the iframe. im trying to do multiple frames In the same body, but i want them to open ONLY when i hit the link for em. This is what i have right now and it obviously isnt working for me. <a href="/game.html" target="GAME" </a> and <a href="/music.html" target="MUSIC" </a> for the links and <iframe name="GAME" src ="game.html" height="100%" width="100%"> <iframe name="MUSIC" src ="music.html" height="100%" width="100%"> </iframe> for the body. What am I doing wrong?
did you close the first iframe ? >>> <iframe name="GAME" src ="game.html" height="100%" width="100%">
I have tried <iframe name="GAME" src ="game.html" height="100%" width="100%"> </iframe> <iframe name="MUSIC" src ="music.html" height="100%" width="100%"> </iframe> and <iframe name="GAME" src ="game.html" height="100%" width="100%" iframe name="MUSIC" src ="music.html" height="100%" width="100%" </iframe> I just cant figure it out.. I want the game one to show up on the main page and then when i click a link on the navigation bar have it open up the other iframe and close the game one. As for the link, I dont have a clue on that. =/
So basically what you want to do is have the newly clicked link content open in the same place as GAME content?
Yeah, one main body.. You go to the site.. lets say my site is astrocreep.ac.com. I want the main page just to have regular html content in the middle. Then my links to the left open up the iframes in the body.
Code: <iframe src="whateveryouwantittostarton.html" name="main" width="600" marginwidth="0" height="430" marginheight="0" align="middle" scrolling="auto"> <a href="whateverthepersonhasclickedon.html" target="main">[img]images/index_17.gif[/img] Right I'm just using this as an example from a template I made. Basically, you have to make one iFrame and name it (in this example it's called main) then for every "link" to something new for the iFrane you have to set the target as the iFrame's name. Hope that helps
so in the source space that will be my website addy? or the .html file that i want loaded into the iframe? i tried kinda what you are showing right here, I named both but the frames loaded one on top of the other.. Im at school right now so the second i get home ill punch it in. hopegull it works
The thing you've got to do is only make one frame Then just set everything else so their target is in the iFrame instead of in a new window/same window. The iFrame source is whatever page you want to be loaded first.
.... still cant get it, is this the right iframe dealio you were talking about? <iframe name="MAIN" src="main.html" width="100%" height="100%" frameborder="0" scrolling="auto" allowautotransparency=true><name="GAME" src="game.html></iframe>
I don't think you seem to be getting the concept/idea of which he is explaining. I can try to help you out tomorrow if it has not yet been done.