473,407 Members | 2,676 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,407 software developers and data experts.

Javascript Slideshow + MS Acess

I have a very simple javascript slideshow.

It is extremely basic (see small sample below):

<script language="JavaScript1.1">
<!--

//specify interval between slide (in mili seconds)
var slidespeed=100

//specify images
var slideimages=new Array("images/slideshow/dog_logo.gif", "images/
slideshow/cat.gif")
//specify corresponding links
var slidelinks=new Array("http://www.dog.com", "http://www.cat.com/
index.htm)

var newwindow=1 //open links in new window? 1=yes, 0=no
The problem I am having is that I am constantly having to add and
remove the images(and links). This is becoming a burden because the
script I use have over 30 images. Is there any way to have the
slideshow work of the access database our office uses. That way I
could run the script off a query.

Thanks in advance for the help.
Gabriel
Jul 3 '08 #1
3 1555

Gaby Sandoval schreef:
I have a very simple javascript slideshow.

It is extremely basic (see small sample below):

<script language="JavaScript1.1">
<!--
Hi,

First: I think you better specify type="text/javascript" instead of the
language tag.
Also get rid of the ancient HTML commenttag <--
You don't need that anymore in 2008.

>
//specify interval between slide (in mili seconds)
var slidespeed=100

//specify images
var slideimages=new Array("images/slideshow/dog_logo.gif", "images/
slideshow/cat.gif")
//specify corresponding links
var slidelinks=new Array("http://www.dog.com", "http://www.cat.com/
index.htm)

var newwindow=1 //open links in new window? 1=yes, 0=no
The problem I am having is that I am constantly having to add and
remove the images(and links). This is becoming a burden because the
script I use have over 30 images. Is there any way to have the
slideshow work of the access database our office uses. That way I
could run the script off a query.
Yes, It might make sense to use a database for this.
Allthough I don't know any of any serious programmer that would call MS
Access a database. ;-)
Anyway, for a simple table holding these values, MS Access is enough of
course.

You need serverside help for this.
(Unless you want to use Javascript serverside of course.)

Since you are into MS Access, maybe you are running IIS too? (Also
Microsoft)
If so, you can use VBscript/ASP to do this.
You can easily access Access from IIS, it is a breeze. Google around a bit.

Bottomline: This is the wrong newsgroup to ask this question (unless you
want to use Javascript serverside, which I seldom see.)

Try a microsoft newsgroup if you want an IIS/MsAccess solution.

Good luck!

Regards,
Erwin Moller
>
Thanks in advance for the help.
Gabriel
Jul 4 '08 #2
Using Access, create an Access report that writes the JavaScript. Run
it whenever you update the database. Why code when your coding can be
done by a program?
Jul 4 '08 #3
You have to set up a Servlert/JSP or ASP that reads the BLOB from
Access and renders it using an gif/image context type.

- that way you can swap out links such as:

http://www.dog.com/images/slideshow/dog_logo.gif with
http://www.dog.com/mywebserver/myser...e=dog_logo.gif
Jul 6 '08 #4

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

Similar topics

6
by: Terry | last post by:
Hi, I hope this problem I ran into has an easy fix. I created a menu bar for my page using Sothink DHTML Menu 4.1 which created javascript file. I also add a small slide show on the page...
2
by: Jeannie | last post by:
I have a popup window which is a slideshow of about 7 images. When the popup window loads, the first image is present and then the viewer can select next or previous to scroll through the rest of...
6
by: Dan Webb | last post by:
Hi All, Im currently working on ways of pacakaging javascript functions/variables/objects in a similar way to the Java package statement so that scripts can be interact with each other with the...
4
by: CB US 77 | last post by:
I use a piece of javascript to create a photo gallery slideshow. The slideshow part works great, but I would like to add captions to each picture. If you want to see the html, send me an email to...
7
by: Bob Phillips | last post by:
Hope someone can help. I am struggling to write an meta element in JS. The meta element in question is the refresh element. This is the code I am using ...
5
by: Brian.Steele | last post by:
Greetings everyone. See http://www.spiceisle.com/cgi-bin/slideshow/slideshow.cgi?dir=brian/personal/2005/uk_trip/images&type=jpg The "Pause" button works in IE, but not in Firefox. Any ideas...
22
by: bevoldjling | last post by:
Hi ! I need some help in putting together a website for our family gathering. Although I'm still pretty "green", I don't think what I need requires terribly advanced skills ...except for one...
1
by: gencode | last post by:
I have this bit if javascript and it animates an image well, the problem is that the more it runs the more memory it eats on the client machine. Can anyone help me make this not eat all avaliable...
3
by: krzysztof.murkowski | last post by:
Hi, I have problem with JavaScript for gallery of images. From the overview page with thumbnails, after a click on the small picture, the subpage 'slide_show.html' is called, with a number of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.