Menu

#2 Add hyperlink to image

open
nobody
None
5
2002-09-15
2002-09-15
Anonymous
No

My first instinct is to click the image. So I went and
added this piece of code to index.php in the modules
directory.

echo "<tr valign=\"top\"><td valign=\"top\" rowspan=\"4
\"><a href=\"$book_url\"><img src=\"modules/
$module_name/images/$img\" border=\"0
\"></a></tr></td></table>";

<a href=\"$book_url\"> was added.

The user can now click the image to go to Amazon and
purchase or whereever the webmaster wants to redirect.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.