473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to Call a Javascript within HTML

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.jpg"--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_1st_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
Jul 23 '05 #1
1 4365
Hi,
After looking at the (rather tidious) script,I suggest you try

<body onload="rotate()">

Kien
http://users.bigpond.net.au/drkien/s...iberty_GT.html

"Larry R Harrison Jr" <no***@noone.com> wrote in message news:<g1jSc.5593$yh.1392@fed1read05>...
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.jpg"--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_1st_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

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Shorthouse | last post by:
Hey folks, Not an off-topic posting.....since I was shot-down in an earlier post...this one's legit. How do I go about calling a server-side vbscript within a client-side javascript function?...
3
by: Samantha | last post by:
Hello, I create a function in dotnet. How can I call it in a Html page ?
7
by: priya.tweety | last post by:
How to call a js file from another js file?
2
by: mhust6 | last post by:
I am trying to call a java method from within my Javascript, but cannot seem to get it to work. All the examples I have found online and in the forums are using Java applets. I have a method that...
3
by: Marshall | last post by:
Hello, I am wondering if it is possible to call a remote web service using ATLAS and if so, how. I have read several docs which show how to call a web service that is within the same project as...
1
by: vocalise | last post by:
The title probably isn't very clear, but I haven't been able to find this problem (or I must be having problems figuring out which search strings to use) so I apologize if this has been addressed...
4
by: verci | last post by:
Hi guys, I'm running asp.net 2.0. Does anyone know how to fire or call a javascript function from inside my (VB.aspx) code without assigning it to a control attribute? thank you
6
by: Bob M | last post by:
Fellow php'ers; I am trying to make a call to a js function from within a php function based on the selected value of an HTML select statement (whew!). While the server side php program is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.