JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 1st, 2009, 12:01 PM
Ecclesia Webguy Ecclesia Webguy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 1 Ecclesia Webguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
Javascript slideshow works in IE but not Firefox

I added an image slideshow from a free javascript code website and it works fine on IE. But in Firefox it displays the first picture and does nothing else. At the top of the webpage it shows a small portion of the javascript code which is in the head (IE does not do this).

When I try to debug using Aptana, the only error states "ReferenceError: runSlideShow is not defined at onload(Event)". Here is what I have coded for the "onload" event:

<body onload=runSlideShow() class="thrColAbsHdr">

I have googled helps on this and added quotes, removed quotes, removed the (), etc .... everything I could think of but nothing seems to make a difference.

Here is the slideshow code which is in the head, some of which is shown at the top of the webpage in Firefox so maybe there's an error here that I'm not seeing. There is more to the code than this but for simplicity's sake, that's all I'll show here:

function runSlideShow(){
if (document.all) {
document.images.SlideShow.style.filter = "blendTrans(duration=2)"
document.images.SlideShow.style.filter = "blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply ()
}

document.images.SlideShow.src = preLoad[j].src

if (document.all) {
document.images.SlideShow.filters.blendTrans.Play( )
}

j = j + 1
if (j > (p - 1)) j = 0
t = setTimeout('runSlideShow()', slideShowSpeed)
}


The website I am working with is covenantbaptistdayton.org, you may view it in IE and Firefox and you will see what I am saying.

Can anyone help with this? If you need more of the code, let me know. Thanks.

Reply With Quote
  #2  
Old November 13th, 2009, 03:36 PM
victor_broker victor_broker is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 1 victor_broker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 30 sec
Reputation Power: 0
just looking over the code, it seems that you may be missing some brackets. Try putting brackets like:

j = j + 1
if (j > (p - 1)) j = 0 {
t = setTimeout('runSlideShow()', slideShowSpeed)
}
}

Looking at all the other code, anywhere there is a IF statement, it is followed by bracket, statement, endbracket.

Just a thought.

Reply With Quote
  #3  
Old April 3rd, 2010, 03:50 AM
urgocity urgocity is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2010
Posts: 2 urgocity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 48 sec
Reputation Power: 0
Flash slideshow for pictures

Hello,

If you are having problems with javascript slideshow, maybe you have to try simple slideshow script, done with Flash, but no Flash software required to use it.

I cant post url so you have to google it: xorbin slideshow or goto

xorbin com

It help me very much.

Good luck

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Javascript slideshow works in IE but not Firefox


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap