06 April 2009, 17:47 UTC#1
ok I have eveything sliced and ready in dreamweaver, I havent done websites in a while! someone please help!
I want to make an iframe for each link on the site comes up in it.
this is the code for where it is going...
<tr>
<td colspan="4">
<img src="images/index_07.gif" width="800" height="425" alt=""></td>
and I know I have to put something like this into it but I cant figure it out.
<td height="317" width="249" colspan="2">
<iframe height="546" frameborder="0" width="100%" marginwidth="0" cellpadding="0px" src="demohome.html" name="icemaidenframe">
<html xmlns="http://www.w3.org/1999/xhtml">
</html>
</iframe>
</td>
SOMEONE HELP QUICK!
06 April 2009, 18:00 UTC#2
These sections of code go between the body tags of the page that you want the iframe in. Obviously you will need to position the containers and resize the iframe to suit your own requirements.
Code:
<iframe name="FRAME1" src="YourOpeningPage.html" width="350" height="320" frameborder="0" scrolling="auto"></iframe>
This is an example of a link to open a new page in your iframe. It will link to Google's search page, but you can make your own page/s to suit and add more links to them. Remember, you cannot link an iframe to a page that isn't your own without prior permission.
Code:
<a href="http://www.google.com" target="FRAME1">Google</a>
Your second link would look something along the lines of this.
Code:
<a href="MySecondLinkPage.html" target="FRAME1">My Second Link</a>
and so on, and so on...
Your iframe's 'name' "FRAME1" and your link's 'target' need to match precisely.
I hope this helps.
06 April 2009, 18:32 UTC#3
kinda, but now its all fuck up so I obviously did something wrong
this is what I have, but its not working
<tr>
<td colspan="4">
<img src="images/index_07.gif" width="800" height="425" alt=""iframe name="main" src="news.html" width="800" height="425" frameborder="0" scrolling="auto"></iframe>
</tr>
06 April 2009, 18:46 UTC#4
I'm actually real confused to whats actually wrong. MSN.
06 April 2009, 19:53 UTC#5
yeah, you're way out of wack. you can't embed the iframe into the image code. the iframe is a completely different code you insert and then you use a div layer to control where the iframe is placed.
this is what you need to have:
<tr>
<td colspan="4">
<img src="images/index_07.gif" width="800" height="425"</img>
<div style="position:relative; top:-50; left:5;"><iframe name="main" src="news.html" width="800" height="425" frameborder="0" scrolling="auto"></iframe></div>
</td>
</tr>
the bold parts need to be tweaked, start with the code. preview it and see where the iframe turns up, then keep changing those numbers until it is in place over the image. the end.
06 April 2009, 21:02 UTC#6
We sorted it.
