473,774 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conflicts with multiple slideshows

1 New Member
I am using Photoslider II on the index page but when I add more than one all sorts of problems happen. Now I suspect it is a duplicate variable problem but I don't know enough to understand what do I do to change the variables in the other two slideshows on the same page. They are all the same Photoslider II script. I am pasting the code below hoping someone can tell me how to change the conflicting variables, if that is the problem. Also is it possible to tweek the code so that if I click on a thumbnail pic in the slideshow that a separate pop up window with a larger version of same pic appears? Right now my concern is trying to make three slideshows on same page work and I have spent a week researching but no luck. People say to change the names of the variables but I don't know which ones and what do I change them to?
Thanks. Tom - ComedyFarm@yaho o.com

<table border="0" cellpadding="0" >
<caption><stron g>Kevin's pet dog</strong></caption>
<tr>
<td width="100%"><i mg src="http://www.javascripts olutions.com/imagesOLD/Img002.jpg" width="400" height="264" name="photoslid er"></td>
</tr>
<tr>
<td width="100%"><f orm method="POST" name="rotater">
<div align="center"> <center><p>

<script language="JavaS cript1.1">

/*
Photo Slider II- By Kevin Adams (kadams70@hotma il.com)
For this script and more
Visit http://www.javascriptkit.com
*/

var photos=new Array()
var text=new Array()
var which=0
var what=0

//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="http://www.javascripts olutions.com/imagesOLD/Img002.jpg"
photos[1]="http://www.javascripts olutions.com/imagesOLD/Img003.jpg"
photos[2]="http://www.javascripts olutions.com/imagesOLD/Img004.jpg"
photos[3]="http://www.javascripts olutions.com/imagesOLD/Img005.jpg"
photos[4]="http://www.javascripts olutions.com/imagesOLD/ministix4.jpg"
photos[5]="http://www.javascripts olutions.com/imagesOLD/ministix5.jpg"
photos[6]="http://www.javascripts olutions.com/imagesOLD/ministix6.jpg"

//change coresponding description
text[0]="Libby watching another dog from the front porch"
text[1]="A calm moment. EXTREMELY RARE!"
text[2]="Curious as to what that flash was all about"
text[3]="Mad at Momma for taking pictures."
text[4]="Libby striking back!"
text[5]="They make messes and they lay in them."
text[6]="Libby catching a frisbee, Ministix following."

window.onload=n ew Function("docum ent.rotater.des cription.value= text[0]")

function backward(){
if (which>0){
window.status=' '
which--
document.images .photoslider.sr c=photos[which];
what--
document.rotate r.description.v alue=text[what];
}
}

function forward(){
if (which<photos.l ength-1){
which++
document.images .photoslider.sr c=photos[which]
what++
document.rotate r.description.v alue=text[what];
}
else window.status=' End of gallery'
}

function type()
{
alert("This textbox will only display default comments")
}


</script>
<p><input type=text name="descripti on" style="width:40 0px" size=50>

<p><input type="button" value="<<Back" name="B2"
onClick="backwa rd()"> <input type="button" value="Next>>" name="B1"
onClick="forwar d()"><br>
<a href="#" onClick="which= 1;what=1;backwa rd();return false"><small>S tart Over</small></a></p>
</center></div>
</form>
</td>
</tr>
</table>

<p align="center"> <font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.c om">JavaScrip t
Kit</a></font></p>
Jul 28 '06 #1
1 1887
iam_clint
1,208 Recognized Expert Top Contributor
yes more then likely it is the variables and functions. when u make a copy change all the variable names. and you can't have 2 functions with the same name.

by the way post javascripts in the javascript part of the forum please. java is alittle different :)
Jul 29 '06 #2

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

Similar topics

2
1811
by: Geoffrey | last post by:
We have developed a python class that can read data files created from another application. These target files are C-ISAM files used for accounting applications so the "primary" application may be reading and/or writing to portions of the files ("records") at the same time. The python class we developed opens the requested file in 'rb' mode, reads the file header (first 512k) and using information supplied in the file header (such as...
12
1798
by: christopherlmarshall | last post by:
Suppose you want to write a subclass of some existing class you are importing from a module you didn't write and that you don't want to study the internals of, and you want to define a data member i in your constructor. As in the following: from module1 import A class B(A):
4
2006
by: Steve Jorgensen | last post by:
Hi all, This is actually not an issue of mine, but one a friend of mine told me about that I was able to confirm. Let's say you want a highly customizable report, so you want to be able to do things like specify the ControlSource properties of TextBox controls on the report when it is run. The only time this works is in the Open event handler, but that works great. So, no problem, right?
0
1097
by: Annette Massie | last post by:
In Access 2000 I have a split database with a replicated back end. For synching, I open the replic and synch one way to the design master. This all works fine. I opened the design master one day and the replica a different day and found there to be conflicts with the conflict resolution form asking what to do. Am I supposed to open just the replica or just the design master to resolve these conflicts? Is one better than the other or...
0
1527
by: John | last post by:
Hi Access 200. I have a replica and its associated master. When I try to open any of these dbs, I get the message "This member of the replica set has conflicts from synchronizing changes with other members. Do you want to resolve these conflicts now?". When I select 'Yes', I get the below message. Basically the conflict revolver is not coming up so I can't view and resolve the conflicts. What is the problem and how can I fix it? This...
5
4319
by: Shuaib | last post by:
I wonder if anybody could shed some light on a problem I am encountering. I have written a program in C that runs on Solaris 2.8. At busy times of the day there may be multiple instances of it running (5-10), each process taking approx. 3 seconds to complete. Each instance of the program basically fetches data from a Oracle database (using Remedy ARS API routines) and stores it in a user defined structure that I have defined as a...
5
3562
by: Eric | last post by:
After attempting to build a solution, I receive the error message; "One or more dependent assemblies have version conflicts" "Do you want to fix these conflicts by adding binding redirect records in the app.config file?" I received this after changing the assembly version in two of the solution's projects to What does this error mean?
2
1770
by: Joseph | last post by:
Hi Gurus, I got a problem, I am trying to port a win32 prog to Linux. It was all one big program.cpp and I have to split the functions into separate init_pxi6052e.cpp,func1.cpp and func2.cpp in order to compile them separately and debug them. In both cpp file I have to include a common header file lets call it here as "datatype.h" which is included in both "init_pxi6052e.cpp" and "test_init_boards.cpp". Both these object compiles ok. ...
1
1082
by: Christian Fröschlin | last post by:
I have an assembly "A" which contains a Windows Control and has been compiled with C# in .NET 1.0, and I have now attempted to use this from a C++ 2005 Windows Forms Application "B". I can add a reference to the assembly and add a control to the form without problems, but when compiling I get a heap of errors complaining about conflicts between symbols from differing version of System.Windows.Forms and similar: ...
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.