Forums / General Questions / Javascript slideshow works in Firefox but not IE!!

Javascript slideshow works in Firefox but not IE!!

Locked

Views: 7,836

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
5 Nov 2009, 4:27 PM
#1
arniesbarmyarmy avatar

arniesbarmyarmy

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Javascript slideshow works in Firefox but not IE!!

Hi, I have been able to set up some slideshows on my website no probem at all, using the Ultimate Fade-in slideshow (v2.1) from DynamicDrive.com.

It looks great working perfectly in Firefox, but does it work in Internat Explorer? No!! :frusty:

If anyone has any ideas at all, I would be extremely appreciative!!

www.rinatoconstruction.co.uk

Thanks

5 Nov 2009, 4:51 PM
#2
arniesbarmyarmy avatar

arniesbarmyarmy

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

To see one the slideshows of images (or not if you view in IE!!) click on one of the tabs on the left side of the website e.g. Residential Build

Thanks in advance...

5 Nov 2009, 5:21 PM
#3
arniesbarmyarmy avatar

arniesbarmyarmy

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

:clap: alas I have solved the problem!!

It was just a silly little comma in the wrong place. Firefox doesn't seem to care so why is IE so picky? :huh:

Never mind, now it's working may I recommend anyone wanting to use a slideshow of images should use the free code on the Dynamic Drive website. Brilliant!!!

6 Nov 2009, 7:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Javascript slideshow works in Firefox but not IE!!

Thanks for the update that it was a typo that got you ... hate those silly things ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Nov 2009, 7:00 PM
#5
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

Say I wanted to put the slideshow on my main page. Could you explain which files you put where and what coding you included on which pages? It would be a great help. I'm struggling.

14 Nov 2009, 4:57 PM
#6
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

Magic Toolbox:

We'll be releasing a Zen Cart mod for Magic Slideshow in the coming weeks. It'll simplify installing slideshows on Zen Cart and will be able to pull images for your existing products.

That's great, but I want to do it now.

16 Nov 2009, 3:27 AM
#7
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

I'm trying to implement the Ultimate Fade-in slideshow (v2.1) from DynamicDrive.com, which was used by the Zenner who started this thread.

16 Nov 2009, 12:53 PM
#8
minitrail avatar

minitrail

New Zenner

Join Date:
Nov 2009
Location:
Staffordshire, UK
Posts:
4
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

arniesbarmyarmy:

Hi, I have been able to set up some slideshows on my website no probem at all, using the Ultimate Fade-in slideshow (v2.1) from DynamicDrive.com.

It looks great working perfectly in Firefox, but does it work in Internat Explorer? No!! :frusty:

If anyone has any ideas at all, I would be extremely appreciative!!

www.rinatoconstruction.co.uk

Thanks

Has anyone found out how this was done? which files were changed etc

16 Nov 2009, 5:13 PM
#9
arniesbarmyarmy avatar

arniesbarmyarmy

New Zenner

Join Date:
Aug 2009
Posts:
40
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

Ok the error I had was as follows:

I had put an extra comma in the following place (in red):

[
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."],
],

Obviously I just copy and pasted the line for each image and forgot to remove the last comma !! :oops:

For anyone starting from scratch and a bit stuck, the trickiest thing you need to get working is what to do about the js file:

Rename the fadeslideshow.js to jscript_fadeslideshow.js and upload it to INCLUDES / TEMPLATES / YOUR_TEMPLATE / JSCRIPT.

This is what you need to do for any js file used anywhere on your site!

Then don't forget to change the main code (line 3) from:

<script type="text/javascript" src="fadeslideshow.js">

to:

<script type="text/javascript" src="jscript_fadeslideshow.js">
17 Nov 2009, 4:37 AM
#10
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: Javascript slideshow works in Firefox but not IE!!

Ok, I put this:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

[B]<script type="text/javascript" src="includes/templates/custom/jscript/jscript_fadeslideshow.js">[/B]

/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<script type="text/javascript">

var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
	dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
		["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["http://i30.tinypic.com/531q3n.jpg"],
		["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


var mygallery2=new fadeSlideShow({
	wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
	dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
		["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["http://i30.tinypic.com/531q3n.jpg"],
		["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "always",
	togglerid: "fadeshow2toggler"
})

</script>

In my html_header.php

And ```

<div id="fadeshow1"></div> <br /> <div id="fadeshow2"></div> <div id="fadeshow2toggler" style="width:250px; text-align:center; margin-top:10px"> <a href="#" class="prev"><img src="http://i31.tinypic.com/302rn5v.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold"></span> <a href="#" class="next"><img src="http://i30.tinypic.com/lzkux.png" style="border-width:0" /></a> </div> ``` in my conditions.php page which I'm using for practice.

I receive the message: "Error: DIV with ID "fadeshow1" not found on page."

What's the deal?