I am using a script from Dynamic Drive which give you a fadeing slideshow. It worked fine and then I went to the site I was using today and it had just stopped working. I can't see why and I've tried recreating it locally and it doesn't work and although there are a number of questions about it on Google, none of them helpped me.
I've tested it on several browsers and computers in different locations and it makes no difference.
Could anybody shed any light onto what it going on? -
<script type="text/javascript" src="/my_path/js/simplegallery.js"></script>
- <script type="text/javascript">
-
-
var mygallery=new simpleGallery({
-
wrapperid: "simplegallery1", //ID of main gallery container,
-
dimensions: [960, 178], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
-
imagearray: [
-
["/my_path/images/my_image1.jpg","","",""],
-
["/my_path/images/my_image2.jpg","","",""],
-
["/my_path/images/my_image3.jpeg","", "",""],
-
["/my_path/images/my_image4.jpeg","", "",""],
-
["/my_path/images/my_image5.jpeg","", "",""],
-
["/my_path/images/my_image6.jpeg","", "",""]
-
],
-
autoplay: [true, 3000, -1], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
-
persist: false, //remember last viewed slide and recall within same session?
-
fadeduration: 1000, //transition duration (milliseconds)
-
oninit:function(){ //event that fires when gallery has initialized/ ready to run
-
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
-
},
-
onslide:function(curslide, i){ //event that fires after each slide is shown
-
//Keyword "this": references current gallery instance
-
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
-
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
-
}
-
})
-
</script>
- <div id="simplegallery1"> </div>
Any help would be much appricated.
4 1536
first make sure there is no javascript error.
use google chrome. it will also tell you if any file is missing.
Thanks. I got no JavaScript errors or at least not using the Error Console on Firefox. It turned out there was a reference of a JavaScript file that I'd missed out. That sorted it.
What worries me is how that reference disappeard since I hadn't changed the code, so who did and why?
are you sure you didnt? check the last modified time of the concern file
Positive. I've changed the file now to get it working so I doubt I can compare the last modified time. This is a third time in two weeks that something has been changed that I didn't do.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Bill |
last post by:
I used to be able to run the following ASP code on our corp machine (W2K
Server Edition and IIS-5)
and successfully send a net-msg to anyone on our intranet.
Last week it stopped working... and...
|
by: Dag Sunde |
last post by:
I've been working on a system that have been running
for the last couple of years, but stopped working
on my dev. machine after reinstalling WinXP yesterday.
To my knowledge, it have been set up...
|
by: Dag Sunde |
last post by:
I have the following code fragment in one of my pages:
if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined')
{
rowBuffer =...
|
by: Susan Bricker |
last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I
was working on the VB behind a form in MS/Access? I would swear that
the mouse wheel was working a short time ago. I've...
|
by: Patrick |
last post by:
I have the following code, which regardless which works fine and logs to the
EventViewer regardless of whether
<processModel/> section of machine.config is set to username="SYSTEM" or
"machine"
...
|
by: vzaffiro |
last post by:
Our Development Server (windows 2003, framework 1.1) was working great for
months, then one day all the client side validators stopped working. Only the
server side validation is working. Our code...
|
by: JohnB111 |
last post by:
Hi
Environment:
Windows XPPRO SP2
IIS 5.1
AVG Anti Virus (Not script Blocking)
The following code used to work perfectly on my local development machine
and still does on my web server.
|
by: Rico |
last post by:
Hello,
I have an ASP.net application, it's a third party forum software running on
an SQL Server back end. This application was working fine with no issues.
Then yesterday, without being...
|
by: rickcasey |
last post by:
I wonder if anyone has experienced something like this, as it seems
truly bizarre and is causing me to tear out my hair (what little there
is left of it)....
The exec() function just suddenly...
|
by: Robin Tucker |
last post by:
Hi,
Previously when I go to the head of an item and type ''', I got an XML
comment auto-complete in my source (most useful). Recently its stopped
working. Is there some simple setting I need...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |