Thought I could insert some instructional popups in an e-book, but not sure how that can be done.
Posted on: 5:14 am on September 8, 2002
ebookpro
I haven't tried adding pop-ups to an ebook before, but ebook compilers do function the same way as a browser. Therefore, you should be able to add the javascript in your html page before compiling it. Once the user opens your ebook, they should be able to access the pop-ups.
Sunil may have more experience with pop-ups in case you need the exact code... but I definitely think it is possible.
Eva :-)
Posted on: 6:24 am on September 11, 2002
EBookCompiler
I think it should be the same as on a web site - use Javascripts
If it's an ebook page being popped, rather than a web link, if using Activ 4.22, you might need to set HTML Protection = Low in Advanced Security,
Here's the code I use for popups. Works great on internal pages or from a website. Never had to change any settings to use it:
In between your head tags:
<SCRIPT language="JavaScript"> <!-- hide javascript var parameters = 'resizable=no,top=0,left=0,scrollbars=no,menubar=no,status=no,width=290,height=230'; function popup(link) { win = window.open(link,'',parameters); } //--> </SCRIPT>
Change the var parameters= line to suit.
Then, to pop your window from elsewhere on your page, simply use this:
<a href="javascript:popup('pagetoopen.htm')">Click here for more info...</a>
If the page you're popping up is internal just use the page name (whateveritis.htm). If it's an external website then use the full URL.
And if you want the popup to appear without a link being clicked, ie. as soon as a particular page is opened, add this to your body tag instead of the link:
onload="popup();"
Or use onUnload="popup();" to popup the window when they leave a particular page.
Hope that helps.
M.
(Edited by MartinB at 4:39 am on Oct. 18, 2002)
Posted on: 4:28 am on October 18, 2002
MartinB
Blargh! I thought the < and > would ensure that the code displayed properly above. Just replace < with < and > with >
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
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
Our sites use cookies, some of which may already be set on your computer. Use of our site
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.