| Home Beta programs |
Welcome to Mobipocket Developer Center |

Creating ContentGetting StartedWhat is the Mobipocket file formatHow do I create a Mobipocket eBookStandard eBooksAdvanced eBooks eBook features Cross-platform feature supportImage supportTable supportCover PageParagraph rendering and hyphenationHyperlinksGuide itemsFramesIndexes and DictionariesSectionsAuthoring tips Extended eBook features DatabasesSQL queriesJavascriptHTML forms Reference Open-eBook HTML tagsSupported HTML entitiesHTML form tagsMobipocket custom tagsOPF x-metadata tagsMobipocket URLsMobipocket Document Object Model (DOM)Mobipocket Active Server Pages (ASP)Mobipocket Active Data Objects (ADO)Mobipocket Javascript Objects Medical Drug interaction module Advanced topics Setting margins |
Hyperlinks in an eBook fileYou can use normal hyperlinks and anchors to define hyperlinks between HTML files part of a Open eBook Publication. Scripting anchors using JavascriptIn order to dynamically jump to a given anchor inside an eBook, using a Javascript call, you need to add a external="yes" attribute in the anchor tag. <a name="part1" external="yes"/> Note : external anchors need to have unique names among the entire eBook publication. You can then access this anchor in Javascript
<form name="frm1"> Hyperlinks between different ebook filesLinking to another ebookYou use the oeb:redirect special URL to link to a different ebook. The syntax is: <a href="oeb:redirect?title=DatabaseName">External Link</a>Where DatabaseName is the database name of the target ebook file to
open. Using oeb:redirect, you do not have to know the exact location of
the taget ebook on the device provided it is accessible from the
library of the Mobipocket Reader. WARNING: the database name is not the title of the document! Linking to a specific location of another ebookYou can also link to an external anchor through the usual #anchor URL suffix as in HTML. Make sure the anchor has been defined with the external="yes" attribute in the source HTML otherwise this syntax will not work. <a href="oeb:redirect?title=DatabaseName#myanchor">External Link to myanchor in DatabaseName book </a> Opening the index search in another ebookYou can call additional JavaScript functions after opening another ebook, for example, you can launch the index search view: <a onclick="open('oeb:library?title=URLencodedDatabaseName');index_search()">Open index in book</a> Remarks
|
© Copyright 2000-2007 Mobipocket.com