Quote:
Originally Posted by Doitsu
The CSS code that the OP linked to contains many pseudo selectors (:hover, :active, :target) that QtWebkit apparently simply ignores.
...
QTWebkit does support some pseudo selectors, though, as you can see in this simple pseudo selector test file.
I.e., there are no error messages. Also, if I'm not mistaken, :hover wouldn't work with most eInk readers anyway.
|
Indeed, there are no error messages. With the numerous code snippets I tried (in both Sigil and Calibre), I received one of two general responses: either the popup box appears side by side with the button which is supposed to trigger it on click, or the box just does not show up after clicking the "click me" button. It's also interesting to note that in the latter case (where the "click me" button does not respond to the click), it usually does respond to the "
:hover" events (such as changes in background color, cursor shape, etc.)
Quote:
Originally Posted by Doitsu
@JackTrade: If you just want to display a modal message box, you could simply use the alert() JavaScript command.
|
Of course, with JavaScript this (and other methods) work, but the whole idea originally was (and I apologize for not making it clear) to create a pure CSS solution for presenting incidental information right over the main text, in case the reader is interested in it.