Quote:
Originally Posted by perfphysio
but i only post an image for the whole sponsor section and therefore include my text on the actual image. Therefore there is no sponsor title etc as i don't want anything to appear which would split the field into text and image. so i need the image link to open in a new window when the image is clicked on
|
Dude... :ninja:
PHP Code:
<tr>
<td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]" target="_blank"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
<td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]" target="_blank">$foruminfo[sponsorname]</a></strong></div></td>
</tr>
You see the
target="_blank" added?
Anytime you see <a href="whatever"> you can add target="_blank" before the closing > to make a link open in a new window. In this case You click the image and it will open a new window with the url you entered for the sponsor's link in the admincp.