Bookmark and Share

How to add hyperlink in image title?

Print

The text of title in Flash Slideshow Component is HTML formatted and supports hyperlinks.

If you are configuring the image files information in Component Inspector, you can directly enter standard HTML code as title, for example:

add<a href="http://www.mtoolcomponents.com"> link </a>in this title

If you are configuring the image files via XML file or XML string, since XML text can not contain special characters & < > " ', the hyperlink text will ruin the whole XML file.

To fix this problem, you can escape these characters, for example, replace the chars as following:

& &amp;
< &lt;
> &gt;
" &quot;
' &apos;

But the simplest way is to add CDATA tags <![CDATA[ andĀ  ]]> around the text, for example:

<title><![CDATA[add<a href="http://www.mtoolcomponents.com"> linkĀ  </a>in this title]]></title>

This line defines a title with hyperlink which includes special chars < > and ".

The downloaded package of Slideshow Component includes a demo project demo_ext_titlelinks.

 

Newsletter





Payment Method