How to Call a Javascript within HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Larry R Harrison Jr

    #1

    How to Call a Javascript within HTML

    I have a webpage for showing slideshows. I got the code from



    It's very simple, clean-looking, and small-sized.

    The only problem--it doesn't start the slideshow when you load it--and it
    tends to skip to slide #2. (I thus insert a "blank slide"--basically
    "nothing.jp g"--to make up for this.) The person has to click "start" once
    the page loads. I'd rather it start automatically.

    Seems easy enough--the function that the start button calls--and it calls it
    within HTML (not Java)--is a Java function called ap(text). The button calls
    it by saying "ap(this.value) ; I figure I would start it with something like
    ap.("name_of_1s t_slide"). Problem is, I don't know what code will call it
    flat-out once the code loads--without the user having to click any buttons.
    That is what I need--the whatever that would go in front of ap.("nameof1st
    slide") to flat-out execute it upon loading of the webpage.

    Tips?

    LRH


  • Kien

    #2
    Re: How to Call a Javascript within HTML

    Hi,
    After looking at the (rather tidious) script,I suggest you try

    <body onload="rotate( )">

    Kien


    "Larry R Harrison Jr" <noone@noone.co m> wrote in message news:<g1jSc.559 3$yh.1392@fed1r ead05>...[color=blue]
    > I have a webpage for showing slideshows. I got the code from
    >
    > http://javascript.internet.com/misce...slideshow.html
    >
    > It's very simple, clean-looking, and small-sized.
    >
    > The only problem--it doesn't start the slideshow when you load it--and it
    > tends to skip to slide #2. (I thus insert a "blank slide"--basically
    > "nothing.jp g"--to make up for this.) The person has to click "start" once
    > the page loads. I'd rather it start automatically.
    >
    > Seems easy enough--the function that the start button calls--and it calls it
    > within HTML (not Java)--is a Java function called ap(text). The button calls
    > it by saying "ap(this.value) ; I figure I would start it with something like
    > ap.("name_of_1s t_slide"). Problem is, I don't know what code will call it
    > flat-out once the code loads--without the user having to click any buttons.
    > That is what I need--the whatever that would go in front of ap.("nameof1st
    > slide") to flat-out execute it upon loading of the webpage.
    >
    > Tips?
    >
    > LRH[/color]

    Comment

    Working...