Not sure yet if this is a VSD issue...

User 202252 Photo


Registered User
49 posts

I have created two AS projects, actually both created without an problems and preview fine, just like they are supposed to.
The problem starts with trying to use two separate instances of AS on the same page. I have placed all the graphics in the same "images" folder, I only have one js on the site, html from either AS instance can find the script and both use the same script, I have created separate html files and inserted each one it its appropriate location. Looking at the code, each object has its own object identification and the absolute placement for each instance is about where each one should be. What is happening is that the second AS slide show is being imposed on top of the first AS slide show rather than in its own space.

Anybody experience anything like this and have any killer ideas.
Cus' the last thing I really need to hear is "you can only run one instance of AS on a page" even though the second AS is made up of pictures I really don't want to have to do it in Gallery, AS is faster and less overhead for a lousy 16 picture slide show.

You can look at the mess here>> http://rv.coffeecup.com
the second slide show should be in the empty box below the registration box, at least that's where the code is
We're all here, because we're not all there..................

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
~Calvin
User 187934 Photo


Senior Advisor
20,271 posts

You'll need to alter one of the slide shows scripts and then alter the actual js file and add it as a second entity. Change your one slide show to look like this. I only added the number 2 to the end of two words.
<!-- This div will contain your slide show -->

<div id="rotateImagePlaceholder2"></div>

<!-- These are the javascript files -->

<!--[if lte IE 9]>

<script src="js/ieTimerFix.js"></script>

<![endif]-->

<script src="js/imageRotate2.js"></script>

<!-- This is the script that will setup and start the animation -->

<script>

var list = {"images": [

{"url": "images/memorial banner.png", "position": 0, "timeOnStage": 5000},

{"url": "images/open banner.png", "position": 1, "timeOnStage": 5000}

]};

rotateImages(list, true, 30);

</script></div>

Now open the imageRotate.js in any html editor or notepad and look for this line. (It's on about line 169)
document.getElementById("rotateImagePlaceholder").innerHTML = "<img src=\"" + imageObjArray[start].src + "\" />";


and change it to
document.getElementById("rotateImagePlaceholder2").innerHTML = "<img src=\"" + imageObjArray[start].src + "\" />";

Now save this file as imageRotate2.js and add it to your site inside the js folder.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 202252 Photo


Registered User
49 posts

Thanks Eric,

Bummer, I was afraid of that....:cool: I was pretty sure that it had something to do with the script but by the time I was through resizing and cropping all the pictures and putting the slide show together and playing around with inserting it I was too whacky to start looking at code, I would have really messed it up. So I thought I would just throw it out to see if it had been encountered before...........

As far as being afraid of it, what my goal was on this site was to build it completely with the basic CC software, no html or ss editing just as if someone had just taken VSD out of the box for the first time, didn't have a clue about code and wanted to put together a more than basic site. Guess that isn't going to happen as I really want at least these two slide shows on the index and I really don't want to use Gallery
That's why I was hoping that I was just missing something within AS or VSD and missed clicking a button somewhere.

BTW I sent you two emails answering the one you sent me, did you get them? I am putting some ideas together to send you.

Thanks again
We're all here, because we're not all there..................

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
~Calvin
User 202252 Photo


Registered User
49 posts

Thanks again Eric,
Just like all other java scripts, each instance needs its own script even if they are the same. I used to be better at this until I stopped doing this kind of stuff a couple three years back, guess I am going to have to start working on it a little more.

Of course getting old hasn't helped much either.......................
We're all here, because we're not all there..................

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
~Calvin
User 187934 Photo


Senior Advisor
20,271 posts

The nice thing about two separate files then you can tweak each one to be it's own.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.