How do I get this code into iBook Author?

I would like to add an accordion menu to my iBook that will reveal a list of web links when clicked. Here is a link to an example with example code. I'm just not sure how to get this code and it's required external javascript file into iBook author.
http://www.dynamicdrive.com/dynamici...m?expandable=3
Any help would be appreciated

Oops. Thanks. Here is a new link:
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

Similar Messages

  • How can i rewrite this code into java?

    How can i rewrite this code into a java that has a return value?
    this code is written in vb6
    Private Function IsOdd(pintNumberIn) As Boolean
        If (pintNumberIn Mod 2) = 0 Then
            IsOdd = False
        Else
            IsOdd = True
        End If
    End Function   
    Private Sub cmdTryIt_Click()
              Dim intNumIn  As Integer
              Dim blnNumIsOdd     As Boolean
              intNumIn = Val(InputBox("Enter a number:", "IsOdd Test"))
              blnNumIsOdd = IsOdd(intNumIn)
              If blnNumIsOdd Then
           Print "The number that you entered is odd."
        Else
           Print "The number that you entered is not odd."
        End If
    End Sub

    873221 wrote:
    I'm sorry I'am New to Java.Are you new to communication? You don't have to know anything at all about Java to know that "I have an error," doesn't say anything useful.
    I'm just trying to get you to think about what your post actually says, and what others will take from it.
    what does this error mean? what code should i replace and add? thanks for all response
    C:\EvenOdd.java:31: isOdd(int) in EvenOdd cannot be applied to ()
    isOdd()=true;
    ^
    C:\EvenOdd.java:35: isOdd(int) in EvenOdd cannot be applied to ()
    isOdd()=false;
    ^
    2 errors
    Telling you "what code to change it to" will not help you at all. You need to learn Java, read the error message, and think about what it says.
    It's telling you exactly what is wrong. At line 31 of EvenOdd.java, you're calling isOdd(), with no arguments, but the isOdd() method requires an int argument. If you stop ant think about it, that should make perfect sense. How can you ask "is it odd?" without specifying what "it" is?
    So what is this all about? Is this homework? You googled for even odd, found a solution in some other language, and now you're just trying to translate it to Java rather than actually learning Java well enough to simply write this trivial code yourself?

  • How can i know how to redeem the code? how can i get this code?

    how can i know how to redeem the code? how can i get this code? please i need you help
    <Email Edited by Host>

    You are trying to create a new Apple ID? You don't have one yet? Is that correct?
    If so, then see this article on how to creat your Apple ID - and make up a password for it. Remember to write it down immediately.
    http://support.apple.com/en-us/HT203993

  • I have written an ebook that has been created for kindle. How can I export the book into iBooks author?

    I have written an ebook that has been created for kindle. How can I export the book into iBooks Author?
    I have tried converting the book to different files like, mobi, epub, pdf. By using an app on my iphone.
    I still cannot add it to iBooks Author.
    I'm stuck, Please help me!

    Either use copy/paste and then format/style as desired, or take it to Pages or WORD and insert chapters - which may still require resettling.
    If you're looking for a 1:1 port, with all styles and layout intact, you may be dissapointed, tho.

  • How can I get this code to display 20 lines

    I need to get this code I have written to display 20 lines at a time, then the 20 using the Enter key.
    How would I approach this?
    I thought of making a RandomAcessFile object, but that seems like overthinking the problem, and I'm not sure that I could get that to work anyway.
    import java.io.*;
    public class ReadIt
    public static void main(String[] args)
         throws IOException
              System.out.println ("Enter The Desired .java Filename.");
              System.out.println ("Do not add the .java extention.");
              String fname;
              EasyIn type = new EasyIn();
              fname = type.readString();
              String fndotjava = new String(fname + ".java");
              //System.out.println (fndotjava);
              File inFile = new File(fndotjava);
              InputStream istream;
              OutputStream ostream;
              istream = new FileInputStream(inFile);
              ostream = System.out;
              int c;
              try
                     while((c = istream.read()) != -1)
                           ostream.write(c);
              catch(IOException e)
                     System.out.println("Error: " + e.getMessage());      
              finally
                    istream.close();
                    ostream.close();                 
    }Thanks
    Brad

    Well, a RandomAccessFile together with a counter should work. However, you can also achieve this by buffering the input rather than writing it directly out
    java.util.Vector vect = new java.util.Vector();
    try{
         while((c = istream.read()) != -1){
             vect.append(c);
    catch(IOException e){
         System.out.println("Error: " + e.getMessage());      
    finally{
         istream.close();                 
    }     with the help of
    java.util.Vector.size() and
    java.util.Vector.elementAt(int index)
    you are able to display only 20 lines at a time, you just need the additional code for reading System.in
    public static void prompt(String s){
        System.out.print(s + " ");
        System.out.flush();
      public static String readData ( BufferedReader in)  {
        boolean verfuegbar = true;
        while ( verfuegbar){
          try{
            S = in.readLine();
            if ( S != null)verfuegbar = false ;
          catch (IOException e){System.out.print (e);}
        return S;
      }now it should work with
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    prompt("return for continuing");
    int twentscount = 0;
    int count = 0;
    do{
       while( count < 20 && twentscount+count < vect.size() ){
           outstream.write(vect.elementAt(twentscount + count).toString() );
           count++;
    prompt("return");
    readData(in);
    twentscount += 20;
    count = 0;
    while(twentscount + count < vect.size());sure, this is code from head, and you can make many changes (e.g. instead of using twentscount use the modulo (%) operator saving one variable (while count % 20 != 0 ).
    I'm also not sure if it will definitly run , since i haven't tested it (especialy for index borders).
    I hope this will give you enough hints for this possible solution.
    Adrian

  • How can I add an ePub into iBook author?

    I am trying to insert an ePub file created on the App "My Story" into iBook author, any suggestions?

    Copy/paste
    Open in Pages - use iBA's 'Insert Chapters from Pages' menu.
    Either of those should work, basically. You'll need to check font substitution, etc.

  • How do I get this query into Discoverer Plus

    Hi all,
    I have the following query:
    SELECT h.hrs, NVL(Quantity, 0) Quantity
    FROM (SELECT TRIM(to_char(LEVEL - 1, '00')) hrs
    FROM dual
    CONNECT BY LEVEL < 25) h
    LEFT JOIN (SELECT TO_CHAR(event_date, 'HH24') AS during_hour,
    COUNT(*) Quantity
    FROM user_activity u
    WHERE event_date BETWEEN
    to_date('15-JUN-2010 14:00:00', 'DD-MON-YYYY HH24:MI:SS') AND
    to_date('16-JUN-2010 13:59:59', 'DD-MON-YYYY HH24:MI:SS')
    AND event = 'user.login'
    GROUP BY TO_CHAR(event_date, 'HH24')) t
    ON (h.hrs = t.during_hour)
    ORDER BY h.hrs;
    Which produces the number of actions performed (from an event table, user_activity) grouped by the hour of the day they occurred (including displaying hours that have zero records - this bit is important!). I want to be able to put this into Discoverer plus as a worksheet, but I'm having trouble trying to figure out how.
    I was able to create a custom folder in Administrator for the select from DUAL, but I cannot link it to the user_activity table because there's no relationship between to two tables to create a join.
    The user_activity table is:
    USER_ID - VARCHAR2(8 CHAR)
    EVENT_DATE - DATE
    EVENT - VARCHAR2(100 CHAR)
    The custom folder is this part of the SQL:
    SELECT TRIM(to_char(LEVEL - 1, '00')) hrs FROM dual CONNECT BY LEVEL < 25
    Any suggestions would be greatly appreciated.
    Thanks.
    Edited by: Cyntech on Aug 12, 2010 10:41 AM

    KK wrote:
    hi,
    In the custom folder we can join tables,but the thing is you said ther is no join between them.
    I would suggest you to built this query into a view and use this view in the DUAL table by writing inline query or subquery what ever way.
    This is the only possibility i can think off.
    Hope it helps you.
    By,
    KKHi,
    Thanks for the reply, though I'm not sure that I understand what you are suggesting.
    Which query would you turn into a view? If you are referring to the select from dual, then how would the view be any different from the custom folder? You still would not be able to join it to user_activity as there are no common columns.
    Edited by: Cyntech on Aug 12, 2010 2:49 PM

  • Okay, so I have a font that works in photoshop, but It's not working in Muse. How do I get this font into muse?

    I recently turned my handwriting into a font that I want to use on my artist website. The font works just fine in photoshop but it is the ONLY font that isn't coming up in Muse. All of my other downloaded fonts are there, just not the one I want. How do I get it into muse?

    Which font format?

  • How to licence the Lightroom CC. They asked for redemption code. How do I get this code ? I am a paid member.

    How to I obtain my redemption code.
    I am a paid member and I would like to licence the lightroom CC.

    You would get the redemption code, or perhaps even the serial number, from whomever you purchased the software from, apparently Amazon, so talk to them.  This wouldn’t be the first time they’ve sold something that didn’t have all the numbers needed to license it.
    A redemption code is something that is usually on the inner disc packaging if you purchase the media in a box, and there is a barcode on the outside of the packaging that must be scanned at the checkout register to activate the hidden inner code so you can redeem it at home on that website.  This is what happens if you buy PSE from a brick-and-mortar store like Best Buy.  I don’t’ know what happens if you purchase the downloaded version as I have never done that.
    A redemption code is 24-digits of letters and numbers that you enter into a website to get a serial number, once and only once.  The serial number of only 24-digits, no letters, is what you enter into the software during the install or when you run it and it asks if you want to register or run in a trial mode—whatever the exact phrasing is.
    In any case it sounds like you don’t have either a redemption code or serial number—although perhaps something is listed on the purchase confirmation or your account online at Amazon or even in an e-mail from Amazon.

  • Reinstalled Win 7 Home Pre. have an icon on desk top titled Old Firefox Data, how can I get this info into my new version of Firefox, FAQ's not clear on this.

    Read FAQ's but did not see how I was to proceed to restore the data in the Old FireFox Data folder on my desktop. It should hold all of my bookmarks, passwords and other data that I would like to recover into this new install of FireFox.

    Look on your desktop. Do you see a folder called; '''Old Firefox?'''
    '''https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile'''
    '''https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles'''

  • Hello, how can i get this code working?

    public class TrivialApplication
    public static void main(String args[]){
    class HelloObject
    String greeting="String Test";
    void speak()
    System.out.println(greeting);
    ?

    At a guess I'd say it wouldn't like that because you've defined the class HelloObject inside main.
    Try like so (formatting is done with [ code ] and [ /code ] tags):
    public class TrivialApplication
        private String greeting;
        public static void main(String[] args)
            TrivialApplication ta = new TrivialApplication();
            ta.speak();
        public TrivialApplication()
            greeting = "String Test";
        public void speak()
            System.out.println(greeting);
    }This is a bit of overkill, I certainly could have done it with less code, but it shows the standard format. How you declare variables, and initialise them in the constructor. How to create an object and call methods of the object.
    Or, if you really wanted the HelloObject class...
    public class TrivialApplication
        public static void main(String[] args)
            HelloObject ho = new HelloObject();
            ho.speak();
        class HelloObject()
            private String greeting;
            public HelloObject()
                greeting = "String Test";
            public void speak()
                System.out.println(greeting);
    }HTH,
    Radish21

  • HT1918 I had to change my Apple ID and had a credit in iTunes stores of about $100 - with the new e-mail address this amount is n longer available - any ideas how I can get this amount into my new Address? Tks

    I had to change my e-mail address and therefore also my Apple ID & Password - I had about $100 in Credits from Apple Vouchers which I redeemed - with the new ID this amount is gone - is it possible to regain it?
    Tks
    gerhard Rudolf

    Not on your own. Click here and ask the iTunes Store staff to put it back onto the cards; they'll only do this for completely unspent ones.
    (93896)

  • How can I automatically import images into iBook Author?

    I'd like to make a photo book with a couple hundred photos.
    Aside from manually inserting each page, inserting each image, placing/resizing it on the page, is there an easier way to insert many images, and flow them one per page?
    thanks in advance

    There is no built-in support for automatic inserts, sorry.
    I can imagine whipping up an Autormator/AppleScript to do that job, however - in which case success lies in your abilities to put that together, of course.

  • Acrobat Pro for Mac bought on Amazon;how can I register it?. registration code they give me, it doesn't work. (It has letters and the registration boxes won't accept letters.)  How do I get this to work?

    I purchased Acrobat Pro for Mac on Amazon. When I try to register with the registration code they give me, it doesn't work. (It has letters and the registration boxes won't accept letters.) How do I get this to work?

    If you don't have original install disks for your Mac, you can order replacements disks directly from Apple at a nominal cost. The original install DVDs are required to reset the password.
    If you have no data on your drive that you want to keep, you can boot up from the OSX Snow Leopard disk and install OSX SL.
    Insert the Snow Leopard DVD and hold the C key during startup. The Mac should boot from the CD/DVD drive into the installer.
    Follow the prompts, erase the disk and install OSX Snow Leopard.

  • I have alot of loose photos at home (old) and I would love to make a bunch of iphoto books and make the pages like whole page collages?  How do I get my photos into iphoto in order to do this?  Can I make a DVD at the drugstore and add them to iphoto?

    I have alot of loose photos at home (old) and I would love to make a bunch of iphoto books and make the pages like whole page collages?  How do I get my photos into iphoto in order to do this?  Can I make a DVD at the drugstore and add them to iphoto?

    You can make the collages easily if you have iWork.  Just open a letter sized page in landscape mode and drag the photos onto the page, rotate and postiion as necessary.  Then do a Print ➙ PDF ➙ Save PDF to iPhoto to get a 200 dpi jpeg version of the Pages page into iPhoto.  From there you can add it to your book and use a blank page with the option to have an image as the backbround. 
    If you have a 3rd party image editor that supports layers you can create the collage with it. 
    OT

Maybe you are looking for

  • Organizing the BI content in Solution manager - preproject activities

    I am looking for suggestions on how to organize the BI content in Solution Manager, this as one of the pre-project activities. How should this be organized to create the BBP. For example: organize creating folder according to the source module Report

  • How can I fix my Superdrive slot on my MacBook Pro 2012?

    I installed a brand new SSD in my MacBook Pro 2012 yesterday. To do this, I cloned my [then] existing HDD to it using SuperDuper!. Now, my DVD slot won't accept discs. I tried opening DVD player and it said that "a valid DVD drive could not be found"

  • New driver install + programs from the

    HiMight sound dumb but.... Im about to do a new fresh install of my X-Fi Xtreme Music and i want all the extra goodies that comes along with the CD, the consoles and such, but i want the newest drivers installed also. How to go about this?Should I in

  • Bank and company code

    hi all, Can someone please tell me how to find out which bank from table bnka belongs to which company code, Regards, Tarun Bahal

  • An odd problem when error handling

    hi experts I encountered a very odd problem when trying to show up an error message... and hope someone can help me out. I defined a standard action in the view, and wrote some lines of code to check the input data in the predefined methodWDDOBEFOREA