View Full Version : IFrames Linking Problem!


rnsaturn
07-29-2004, 06:02 PM
ok, Im using IFRAMES and Eveything else is fine except for the linking! For my Starting off page, (when people enter the site) I type in "news.htm" blah blah blah and all that, then when I save and upload it to my site, the bix says page cannot be found and all of that. The link is right. Before, I used to llink "aboutme.htm" Just to test, and now its stuck on there. Its all confusing. If you want to take a look.. here is the page.

http://www.rachel.andrewsbasement.com/test.htm

Here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[_____R_a_E_s_S_i_T_e_____] v.. SuMmA PaRaDiSe </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<script src="fade.js" language="Javascript"></script>


<style type="text/css">
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}
}

#header {
margin: 0px;
padding: 0px;
height: 0px;
}
#left {
position: absolute;
left: 260px;
top: 70px;
width: 100px;
}

#right {
position: absolute;
right: 360px;
top: 160px;
width: 200px;
}

</style>
</head>

<div id="header">
<div align="center"><img src="pics/lindsay.jpg"> </div>
</div>

<div id="left">
<iframe src="news.htm" width="820%" height="400"></iframe>
</div>
<div id="right">blah </div>
</style>
</body>
</html>
<body bgcolor="#CCCCFF">

Would the CSS Layout Coding have anything to do with it? Thanks.

rnsaturn
07-29-2004, 06:06 PM
It works when I click on it.. But it doesnt on the other page? Hold on, this is very confusing.

pb&j
07-29-2004, 07:24 PM
the coding you show and your page coding are a bit different.
plus you have a bit of coding errors.
try this...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[_____R_a_E_s_S_i_T_e_____] v.. SuMmA PaRaDiSe </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="fade.js" language="Javascript"></script>

<style type="text/css">
body { margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}

#header {
margin: 0px;
padding: 0px;
}

#left {
position: absolute;
left: 245px;
top: 59px;
width: 100px;
}

#right {
position: absolute;
right: 360px;
top: 160px;
width: 200px;
}

</style>
</head>

<body>

<div id="header">
<div align="center"><img src="pics/lindsay.jpg"> </div>
</div>

<div id="left">
<IFRAME name="inlineframe" src="news.htm" width="288" height="485" frameborder="0"></iframe>
</div>

<div id="right">
<p><font face="Verdana, Arial, Helvetica, sans-serif"> <a href="aboutme.html" target="inlineframe">Me</a></font>
<a href="you.htm" target="inlineframe"><br>
<font face="Verdana, Arial, Helvetica, sans-serif">you</font></a> <br>

<a href="pic.htm" target="_parent"><font face="Verdana, Arial, Helvetica, sans-serif">Photos</font></a>
<br>
<a href="http://pub27.bravenet.com/guestbook/2286814502" target="_parent"><font face="Verdana, Arial, Helvetica, sans-serif">Guestbook<br>
</font></a><a href="news.htm" target="inlineframe"><font face="Verdana, Arial, Helvetica, sans-serif">Clear</font></a>
<br>
</p>
</div>

</body>
</html>

the _parent links will open into the window instead of the iframe.

fahad
07-29-2004, 08:42 PM
I guess you have fixed the problem.. cuz the links wokr for me... its just they are not correctly placed.. you need to postion them correctly now :P