View Single Post
Old 02-02-2020, 05:04 PM   #21
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,734
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by increase View Post
I also want to create popup epub message as shown in my attachment.
If this book is intended for your Kindle, you don't need to embed Javascript code, because current Kindle models (6th Generation Kindle Paperwhite or better), will automatically display linked content as popup footnotes as long as the footnote has a valid backlink.

For more information on footnotes, see this post by Tex2002ans.

Some epub3 apps will also automatically display popup footnotes. Note that iBooks/Apple Books is rather picky when it comes to the popup footnote syntax in epub3 books.

BTW, KOReader will automatically display in page footnotes in epub2 books at the bottom of a page, if the footnote has a special class attribute (footnote, note or note1) and the in page footnotes option is enabled.

I.e., you might want to investigate the feasibility of using footnotes instead of Javascript code.
Doitsu is offline   Reply With Quote