TinyPortal

Development => Support => Topic started by: coldthunder on June 25, 2007, 02:15:37 PM

Title: making a image clickable to and open a site
Post by: coldthunder on June 25, 2007, 02:15:37 PM
If i have a image inside of a block. Is there a easy way to make that image also a hyperlink that if it is clicked it opens a web page?

thank you
Title: Re: making a image clickable to and open a site
Post by: Crip on June 25, 2007, 02:37:21 PM
Sure in a HTML block --


<a href="http://yourbigimage.com" title="My Big Image"><img src="http://yoursmallimage.com" width="120" height="120" alt="My Big Image" target=_"blank"></img></a>

Title: Re: making a image clickable to and open a site
Post by: Ken. on June 25, 2007, 02:37:44 PM
Try this:

[url=http://thepageyouwant.com][img]http://www.theimagelocation.jpg[/img][/url]


EDIT: You beat me Crip~!!!  :buck2:
Title: Re: making a image clickable to and open a site
Post by: Crip on June 25, 2007, 02:39:09 PM
bbcode will work too!!
Title: Re: making a image clickable to and open a site
Post by: Ken. on June 25, 2007, 02:43:44 PM
Actually the one from Crip~ and the one from me both work equally well, the one you need to use just depends on what your are trying to do... try 'em both!  ;)
Title: Re: making a image clickable to and open a site
Post by: coldthunder on June 25, 2007, 02:57:32 PM
thanks those both worked. appreciate it
Title: Re: making a image clickable to and open a site
Post by: Ken. on June 25, 2007, 03:01:57 PM
Your welcome.  :coolsmiley: