473,396 Members | 1,998 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,396 software developers and data experts.

Simple Gallery stopped working

KeredDrahcir
426 256MB
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?
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="/my_path/js/simplegallery.js"></script>
Expand|Select|Wrap|Line Numbers
  1.             <script type="text/javascript">
  2.  
  3. var mygallery=new simpleGallery({
  4.     wrapperid: "simplegallery1", //ID of main gallery container,
  5.     dimensions: [960, 178], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
  6.     imagearray: [
  7. ["/my_path/images/my_image1.jpg","","",""],
  8. ["/my_path/images/my_image2.jpg","","",""],
  9. ["/my_path/images/my_image3.jpeg","", "",""],
  10. ["/my_path/images/my_image4.jpeg","", "",""],
  11. ["/my_path/images/my_image5.jpeg","", "",""],
  12. ["/my_path/images/my_image6.jpeg","", "",""]
  13. ],
  14.     autoplay: [true, 3000, -1], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
  15.     persist: false, //remember last viewed slide and recall within same session?
  16.     fadeduration: 1000, //transition duration (milliseconds)
  17.     oninit:function(){ //event that fires when gallery has initialized/ ready to run
  18.         //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
  19.     },
  20.     onslide:function(curslide, i){ //event that fires after each slide is shown
  21.         //Keyword "this": references current gallery instance
  22.         //curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
  23.         //i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
  24.     }
  25. })
  26. </script>
Expand|Select|Wrap|Line Numbers
  1. <div id="simplegallery1">&nbsp;</div>
Any help would be much appricated.
Apr 18 '12 #1
4 1536
johny10151981
1,059 1GB
first make sure there is no javascript error.

use google chrome. it will also tell you if any file is missing.
Apr 19 '12 #2
KeredDrahcir
426 256MB
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?
Apr 19 '12 #3
johny10151981
1,059 1GB
are you sure you didnt? check the last modified time of the concern file
Apr 19 '12 #4
KeredDrahcir
426 256MB
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.
Apr 19 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
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...
4
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...
2
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 =...
6
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...
29
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" ...
4
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...
4
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.
2
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...
1
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...
0
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
0
agi2029
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,...

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.