PDA

View Full Version : HELP!! Frames problem


trublu
01-09-2004, 08:39 PM
I have tried something new,I tried to use frames. But I am having a problem. My index page is showing up fine. But when you click the picture to go to the vehicle description,I have 2 top banners(where there should be only one) and on more than one page,the main part of the page is loading in a very small scroll(only about 60 pixel width). What have I done wrong and how can I fix it?

Roy Sinclair
01-09-2004, 09:46 PM
Without a link or some source it's really difficult to provide anything more than a educated guess like "Check the target properties of your links to make sure they address the proper frame or are _top to replace the whole frameset".

oracleguy
01-09-2004, 09:46 PM
Maybe a link would be good? So we can see what is going on.

<edit>Roy, you beat me to it. :)</edit>

Vladdy
01-09-2004, 09:49 PM
Originally posted by trublu
I have tried something new,I tried to use frames.
That is an oximoron :D :D :D :D
If you want to try something new, how about HTML Strict and CSS.

trublu
01-09-2004, 09:53 PM
the link is C&R Auto Sales (http://lynnhickmanent.com) .Well this is new to me. I am just learning and want to try out differnt things. I am one of those people who has to learn the hard way.

Roy Sinclair
01-09-2004, 10:05 PM
My educated guess seems to be pretty close. The basic problem here is that you don't even have a target property defined on your links which is something you definitely need when using frames.

To be honest though, you should totally avoid using frames which are quite problematic in many ways unless you're absolutely forced into using them.


For something that's going to be new to you and will also be useful to learn check out http://www.csszengarden.com/ where you'll see techniques you can use to eliminate those frames without having to replicate code to every page.

Vladdy
01-09-2004, 10:08 PM
Then I guess robbing banks is part of learning how to make a leaving....

If you are new and learning, learn what is current and do not waste your time on outdated things which have been superseeded by newer technology.

trublu
01-10-2004, 02:29 AM
Thank you all for the helpful info. And not to be a **tch,but if you want to help me,please help,if not,don't knock on me. I am just learning to do the web pages and want to learn all diff. types of ways to build. I am doing this on my own and learning as I go. And coming in here and getting help from people who have experience and knowledge, I don't have, is a great help.So again,thanks to all who have given suggestions that are useful.

Nightfire
01-10-2004, 03:48 PM
The problem you're having is that you've got a frameset on every page. You don't need this :) Kinda defeats the object of having frames. Just have the frameset on the index page and then on all your other pages, just have your page content

eg: toyota.htm
delete:

<HTML>
<HEAD>
<TITLE>1995 Toyota T-100</TITLE>
</HEAD>
<FRAMESET BORDER="false" frameborder="0" rows="20%,80%" SCROLLING="no">
<FRAME NAME="top.htm" src="top.htm" target="top">
<FRAME NAME="image1.html" src="image1.html" target="main">
</FRAMESET>
<NOFRAMES>
<H1>Your browser doesn't support frames</H1>
</NOFRAMES>
<BODY>

</BODY>
</HTML>

Change to

<html><head>
<title>Toyota T-100</title>
<meta name="Thumbnail-Generator" content="12345 Good Photo Gallery Wizard ( http://12345-wizard.com )">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#70B0FF" alink="#00E040">
<table class="navigtable" clacellpadding="0" cellspacing="0" border="0" width="100%"><tr> <td align="right"><font face="Verdana, sans-serif"><b><font color="#859D94"><font size="-1">&lt;</font>&nbsp;&nbsp;Prev</font>&nbsp;&nbsp;&nbsp;<a href="image2.html">Next&nbsp;&nbsp;<font size="-1">&gt;</font></a></b></font></td></tr></table>

<br><br>

<table border="0" width="100%" height="100%"><tr><td align="center" valign="middle">
<table align="center" cellpadding="0" border="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><a href="page1.html"><img width="512" height="355" src="IMAG0001.JPG" border="0" alt="IMAG0001.JPG (27.1 Kb)"></a><font face="Verdana, sans-serif" size="3"><br>1995 Toyota T-100,X-Cab<br>ONE OWNER<br>4X4,Automatic,PW,PDL,<br>Cruise,Tilt,CD Player<br>Hard to Find<br>Was -$10,995<br>Now - $9995</br></font></td>
</tr>
<tr>
<td align="center" valign="top"></td>
</tr>
</table>

</td></tr></table>

<br><br>

<table class="navigtable" clacellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="center"><font face="Arial" size="3" color="#000000"><a href="c-rauto.htm">HOME</a></font></td><td align="right"><font face="Verdana, sans-serif"><b><font color="#859D94"><font size="-1"> </font>&nbsp;&nbsp;Prev</font>&nbsp;&nbsp;&nbsp;<a href="image2.html">Next&nbsp;&nbsp;<font size="-1">&gt;</font></a></b></font></td></tr></table>
</body>
</html>


And that'll work as expected. Just do the same on all the other pages and you'll only get the one header :)

Or if you really want to keep the site as you've got it now, add target="_top" into all of your links,

<a href="toyota.htm" target="toyota.htm"><img src.... etc... etc...

trublu
01-10-2004, 09:30 PM
Once again Thank You. NightFire, that has worked out the problem. I appreciate all the help ,from everyone.