image/hyperlink/frame problem

liunx

Guest
I have a left frame with three images with a hyperlink for each image. When I click the image the page comes up, BUT the page is only displayed in the left frame. IS there a way to get the page (hyperlink) to just display as it should i.e. not in the left frame only? Should I use the frame or maybe try to use a table instead? I'm fairly new to this so I'm not sure on what route to go.<!--content-->If I understand you correctly, you have 3 images in the left frame and you want webpages to open up in the right frame when the images are clicked on ?<br />
<br />
Let say your frameset looks like this:<br />
<br />
<html><br />
<frameset cols="30%,*"><br />
<frame name="navigation" src=http://www.htmlforums.com/archive/index.php/"navpage.html" scrolling=no><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"index.html"><br />
</frameset><br />
</html><br />
<br />
Note that I assigned NAMES to the frames in the frameset ?<br />
<br />
Here is how your link should look like:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"pagename.html" target="main"><img src="pic1.gif" height=100 width=100></a><br />
<br />
e.g. place a target attribute in your links. The name should match the target frame's name.<br />
<br />
Hope that was clear.<!--content-->Hi Ken,<br />
Thanks a bunch for your reply. I want the page to open up not in a frame. I just want it to open up on it's own, like maybe in a seperate browser. Not sure if I make sense. So when I click the image, a new browser opens up with the page.<br />
<br />
Here is my code:<br />
<html><br />
<br />
<Title>Left Frame</Title><br />
<br />
<body bgcolor = 006699 text=FFCC00><br />
<br />
<br />
Click on our sponsors image<br />
to go to their Home Page.<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.titleist.com"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="ball.jpg" width=416 >&nbsp;&nbsp;</A></H1><br />
<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.carbitegolf.com"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="short.jpg" width=416 >&nbsp;&nbsp;</H1><br />
<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.clevelandgolf.com"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="cleve.jpg" width=416 >&nbsp;&nbsp;</H1><br />
<br />
</BODY><br />
</html><br />
<br />
<br />
I also tried the following for one of my links for the image.<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:window.open('page.html','newwin','fullscreen=yes');">Click link</a><br />
<br />
I got an error on page error.<br />
<br />
Hope this info clarifies what I'm trying to do.<!--content--><html><br />
<br />
<Title>Left Frame</Title><br />
<br />
<body bgcolor = 006699 text=FFCC00><br />
<br />
<br />
Click on our sponsors image<br />
to go to their Home Page.<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.titleist.com"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="ball.jpg" width=416 > </A></H1><br />
<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.carbitegolf.com" target="_top"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="short.jpg" width=416 > </H1><br />
<br />
<H1 align=center><a href=http://www.htmlforums.com/archive/index.php/"http://www.clevelandgolf.com" target="_blank"><IMG style="WIDTH: 120px; HEIGHT: 100px" height=100 src="cleve.jpg" width=416 > </H1><br />
<br />
</BODY><br />
</html><br />
<br />
Try both the above, target="_top" or target="_blank" Target="_top" will open it in the same window, while "_blank" opens it in a new window.<br />
<br />
Neil<!--content-->Hi Neil,<br />
<br />
Thanks a bunch!!!!! The target="_blank" worked fine. It doesn't cover the whole page but that's what I wanted. Thanks buddy!!! The target="_top" just redirected my page to the other site and I wanted my page to stay open and another browser opened when i clicked the image. SO the target="_blank" was what worked best for me.<br />
<br />
Just an opinion, should I have done this in a table instead of using frames. I heard to stay away from frames. Any comments<!--content-->You're welcome.<br />
<br />
Personally, I prefer tables and now days the majority of sites are done either in tables or in CSS positioned boxes (the coming thing - uses no tables at all), but some hotshot designers still use frames to design brilliant, functional sites. It boils down to whatever works for you, despite the usual prejudices you get in this sort of stuff from people who will nail their flag to one particular style over another.<br />
<br />
Neil<!--content-->
 
Back
Top