By jcguasp - Monday, July 10, 2006
|
Presently the tooltip text (alt=) when hovering above a gender icon MF (for family) cannot be translated. To do so, I changed the following code line in Util.vbs from: StrHtmlImgFamily = Util.FormatString("<img src='images/family_{}.gif' class='icon' alt='family'/> ", strGenders) | To: StrHtmlImgFamily = Util.FormatString("<img src='images/family_{}.gif' class='icon' alt='{}'/> ", strGenders, dic("Family")) | It works but to be checked.
|
By genome - Tuesday, July 11, 2006
|
Thanks for that, I'll make the change into my current revisions. Actually 'alt' should not generate a tooltip, and doesn't work with Firefox. Apparently 'title' should be used instead. I'll need to add both for compatibility.
|
By jcguasp - Tuesday, July 11, 2006
|
Ron,
Actually my comment was mainly to keep this Gender_MF family icon consistent with the other 2 Gender_M & F icons, i.e. actually translatable.
I didn’t realise that tooltips weren’t shown with Firefox. To tell you the truth, I personally rather prefer not to see any tooltips, in this case, because 1) there’s no link behind the icons, 2) the users can easily figure out what the icons stand for without the need for an explanatory tooltip text and 3) it will avoid possible translation problem in the future.
So, it’s up to you to add up or not the “Title” option.
But this “Title” tip was quite useful to me because I made up and inserted an Image Map (with “Alt=…), showing the guests names, from a wedding photo and, effectively with firefox, I couldn’t see any guests names. I changed “Alt” into “Title” and I can now see everybody’s name.
Thank you.
By the way, knowing that differences exist between browsers, do you also test other browsers like Opera, … as I noticed that, so far in this forum, only MSIE and Firefox have been mentioned? For info, with Opera, for example, I noticed that the panes border is only shown as a straight line!
JC
|
By genome - Saturday, July 15, 2006
|
jcguasp (7/11/2006) By the way, knowing that differences exist between browsers, do you also test other browsers like Opera, … as I noticed that, so far in this forum, only MSIE and Firefox have been mentioned? For info, with Opera, for example, I noticed that the panes border is only shown as a straight line!
I generally only test with IE & FF mainly because Opera's SVG rendering engine doesn't quite cut it at present and I don't have direct access to a Mac to check out Safari. The next revision of the report templates will generate XHTML that is fully compliant with the W3C XHTML 1.0 Transitional standard. This should hopefully reduce, but unfortunately not eliminate, the number of cross-browser issues.
|
|