trichview.support
Re: Titles for HotPictures in HTML |
Author |
Message |
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="http://www.mydomain.com" 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="http://www.mydomain.com"><img border="0" width="262" height="154" alt="" hspace="1" vspace="1" src="images/myimage.jpg" title="Click here!"></a></p> The title tag must be in the '<img' tag and not in the '<a' tag. Do you have a solution to change this? Thanks. Pieter E. PS. I use trichview 1.9.0.4 (registered), IE 6.0 & Win2K "Sergey Tkachenko" <svt@trichview.com> wrote: >You can set "title" properties for text and images, and "alt" properties for >images. >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