eBook Scripts
how to let the user click to set a bookmark, and later click to go back to it

 
Home Design Tips Scripts Templates/Translations


How to let the user click to set a bookmark, and later click to go back to it

Overview

This script saves the current position in an e-book when the user clicks a special link inside the e-book. When the user clicks a second special link, the e-book will automatically return to the saved position.


Requirements
Instructions
  1. This script saves the current location within the e-book. Copy and paste this code into a plain text file (created for example using Notepad) and save the file as setmark.as, then place setmark.as into your source folder.

    Please note: If using Notepad on a version of Windows prior to Windows XP, when you save in Notepad, be sure to place the file name in quotes on the Save As dialog box, i.e. "setmark.as" otherwise Notepad will add .txt to the end of the name (giving a file name of setmark.as.txt). If using Notepad on Windows XP, this workaround is not necessary.

  2. This script returns to a previously saved bookmark. Copy and paste this code into a plain text file (created for example using Notepad) and save the file as gomark.as, then place gomark.as into your source folder.

    Please note: If using Notepad on a version of Windows prior to Windows XP, when you save in Notepad, be sure to place the file name in quotes on the Save As dialog box, i.e. "gomark.as" otherwise Notepad will add .txt to the end of the name (giving a file name of gomark.as.txt). If using Notepad on Windows XP, this workaround is not necessary.

  3. To add a link to allow the user to set the bookmark, use this code in one of your HTML files:

  4. To add a link to allow the user to go back to bookmark, use this code in one of your HTML files:


Notes
  1. This script has been tested with Activ E-Book Compiler versions 4.00, 4.01, 4.20, 4.21 and 4.22 (4.22 is the latest version at the time of writing). It is possible that changes might be required for e-books made with subsequent versions.

  2. Limitation: The script has not work well with e-books that use frames. The reason is that the book will always be of the frameset rather than the contents of individual frame windows.

  3. Limitation: This script will not function correctly if you use spaces in HTML file names.






 

Home: eBook Code



Other Sites about eBooks

EBookApprentice.com
Learn about eBook publishing

EBookCompiler.com
Software to create your own eBooks

CoverFactory.com
Create eBook Covers with ease

EBookPower.com
Add multimedia to your eBooks

EBookFriends.com
Discuss eBooks

EBookInterviews.com
Read about other eBook authors' experiences

EBookSubmit.com
Learn about eBook marketing

EBookJungle.com
Searchable directory of eBooks



Related Links

Internet Marketing
 Learn Marketing
 Marketing Tactics

Promotion Links
 Email Marketing
 Increase Traffic
 Press Releases
 Search Engines
 SEO Downloads

Web Site Building
 Accept Credit Cards
 Affiliate Programs
 Domain Names
 Setup Internet Store
 Web Design Software
 Web Design Tutorial
 Web Hosting
 Webmaster Tools

 

 
Disclosure: Advertising Link(s): Our company may receive a payment if you purchase a product/service after following this link.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

About/Terms Of Use     Privacy     Site Map     Advertising/Endorsements Disclosures

Copyright © 2002-2009, Answers 2000 Limited