Re: Titles for HotPictures in HTML

Return to index



Pieter E.

Posted: 10/26/2004 19:20:26

Dear Sergey,

I understand how it works. I use the following code:

void __fastcall TTekstFrame1::rveWriteHyperlink(TCustomRichView *Sender,

int id, TCustomRVData *RVData, int ItemNo, TRVSaveFormat SaveFormat, AnsiString

&Target, AnsiString &Extras)


Target = (char *)RVData->GetItemTag(ItemNo);

if(SaveFormat == rvsfHTML)

        Extras = "title=\"Click here!\"";



The result of the HTML source is:

<p class="rvps2"><a href="" title="Click here!"><img

border="0" width="262" height="154" alt="" hspace="1" vspace="1" src="images/myimage.jpg"></a></p>

When I move the mouse above the image in IE 6.0 nothing happens.

The html source is wrong. It should be:

<p class="rvps2"><a href=""><img border="0" width="262"

height="154" alt="" hspace="1" vspace="1" src="images/myimage.jpg" title="Click


The title tag must be in the '<img' tag and not in the '<a' tag.

Do you have a solution to change this?


Pieter E.

PS. I use trichview (registered), IE 6.0 & Win2K

"Sergey Tkachenko" <> wrote:

>You can set "title" properties for text and images, and "alt" properties



>They will be saved to HTML automatically.

>See the help file, the topic about TRVExtraItemStrProperty



>> I'd like to insert titles for HTML-files.



Powered by ABC Amber Outlook Express Converter