On Wed, Jul 30, 2008 at 8:12 PM, Manfred Bergmann <[EMAIL PROTECTED]> wrote: > > Am 30.07.2008 um 11:17 schrieb Troy A. Griffitts: > >>>> What don't you like about how HTMLHREF display? Is it the >>>> superscripted >>>> 'x'? Could we put it in a <span class="footnote_marker"> allowing >>>> you >>>> to write a CSS rule to display or hide as you would like? >>> >>> What I have in mind is that all additional information in the HTML is >>> hidden. It actually could be plain text then. >>> Some information should be shown while moving the mouse over the >>> words >>> in the HTML view or somewhere in another floating information window. >>> That would mean making the word a link that has normal display >>> attributes. But the data of the link might be something individual. >>> I don't kknow at the moment if this can be done by adding a marker >>> and >>> using CSS. Actually I didn't thought about using CSS. >> >> Have a look at SWORDWeb (click on any word in the text): >> >> http://crosswire.org/study/passagestudy.jsp >> >> This is done by hiding the looking information into >> getEntryAttributes(). If you change lookup.cpp back to WEBIF output, >> you can see how it is done. It obviously doesn't have to operate with >> onclick, but could be on a hover over action. I think most of the >> other >> frontends do the similar things while moving the mouse over words. > > JavaScript, hmm... > I think we mean something different. > With 'word' I meant that the word itself should be the link. > I.e. in Gen 1:1: the whole term 'In the beginning' is tagged with > lemma. So I want to be this whole term a link that doesn't look like a > link and while moving the mouse over the link showing a tooltip. > This requires creating my own HTMLHREF filter subclass I guess. But no > problem as long as I can do it. > Do I need to create a filter subclass for all raw types then?
If you are using a reasonably competent HTML viewer you can add tooltips to any element with the title attribute (you don't need to use hyperlinks). However, you won't get formatted tooltips, as can be seen from a sample page with lots of title elements (http://www.cs.mu.oz.au/~jmmorgan/test_title.htm). Doesn't answer your other question, but I think you will be better without using hyperlinks for things that aren't hyperlinks. Jon _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page