PDA

View Full Version : [HTML] Image link problem



Lubricant
17-02-2007, 04:26 PM
Ok, so I have an image that I want to act as a link which opens in an iFrame on the page. But when I click the link, it is displayed in a new window.

Code for link:


<a href="about.html"><img src="images/template_6_21.gif" width="43" height="34" class="foo" target="content"></a>Class foo is declared in the header and gets rid of the blue round the image link.

iFrame code:



<IFRAME
SRC="home.html"
NAME="content"
WIDTH="579"
HEIGHT="376"
FRAMEBORDER=0;
MARGINWIDTH=0;
MARGINHEIGHT=0;
SCROLLING="YES">
</IFRAME>
+REP for any help.

ZAG
17-02-2007, 04:30 PM
<a href="about.html" target="content"><img src="images/template_6_21.gif" width="43" height="34" class="foo"></a>

Want to hide these adverts? Register an account for free!