473,372 Members | 859 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,372 software developers and data experts.

slideshow fails, Firefox debugger also fails

I'm trying to get a slideshow going on this page:

http://www.popefamilytravels.com/index.php?pageId=5

For some reason the debugger in Firefox won't show any errors, but
there are clearly some errors here. The function doesn't work, even
once. It was firing once and then quiting till a few moments ago, then
I did something, I don't know what, and it stopped working all
together. Here is the code (the lines that start with 'function
SymError()' are I think something that Firefox writes automatically. I
did not write that function):

<div id="imageSlideShow0" class="imageInfoListsImage"
style="display:none; height:0px; visibility:hidden;"><img
class="imageInfoImage"
src="http://www.popefamilytravels.com/mcImages/apo-boat2.jpg">
</div>
<div id="imageSlideShow1" class="imageInfoListsImage"
style="display:none; height:0px; visibility:hidden;"><img
class="imageInfoImage"
src="http://www.popefamilytravels.com/mcImages/apo-boat.jpg">
</div>
<div id="imageSlideShow2" class="imageInfoListsImage"
style="display:none; height:0px; visibility:hidden;"><img
class="imageInfoImage"
src="http://www.popefamilytravels.com/mcImages/allsaints.jpg">
</div>
<div id="imageSlideShow3" class="imageInfoListsImage"
style="display:none; height:0px; visibility:hidden;"><img
class="imageInfoImage"
src="http://www.popefamilytravels.com/mcImages/pftheader_copy.jpg">
<h3>pft header</h3>
</div>
<div id="imageSlideShow4" class="imageInfoListsImage"
style="display:none; height:0px; visibility:hidden;"><img
class="imageInfoImage"
src="http://www.popefamilytravels.com/mcImages/planting-rice2.jpg">
<h3>Planting Rice 2</h3>
<p>Closer image of the original</p>
</div>

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script type="text/javascript">

alert('here we are at the beginning');
var howManyImages = 5;
var i = 0;

function showImageSlideShow() {
var r = i + 1;
var currentDivId =
'imageSlideShow' + i;
var nextDivId =
'imageSlideShow' + r;
alert('the id of the next id is ' +
nextDivId);

if
(document.getElementById(currentDivId)) {
var currentDiv =
document.getElementById(currentDivId);
var nextDiv =
document.getElementById(nextDivId);
currentDiv.style.visibility='hidden';

currentDiv.style.height='0px';

currentDiv.style.display='none';

nextDiv.style.visibility='visible';

nextDiv.style.height='500px;';

nextDiv.style.display='block';
alert(nextDiv);
}
i++;
if (i == howManyImages) i =
0;
if (i > howManyImages) i =
0;
alert ('how many images is
' + howManyImages');
}
setTimeout("showImageSlideShow()", 5000);
</script>

Jul 23 '05 #1
2 1800


lk******@geocities.com wrote:
setTimeout("showImageSlideShow()", 5000);


After a quick look at that code I guess that you want
setInterval("showImageSlideShow()", 5000);
to repeatedly call the showImagesSlideShow function.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
<lk******@geocities.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I'm trying to get a slideshow going on this page:

http://www.popefamilytravels.com/index.php?pageId=5

For some reason the debugger in Firefox won't show any errors, but
there are clearly some errors here. The function doesn't work, even
once. It was firing once and then quiting till a few moments ago, then
I did something, I don't know what, and it stopped working all
together. Here is the code (the lines that start with 'function
SymError()' are I think something that Firefox writes automatically. I
did not write that function):


What you most likely did is install something like Norton Internet
Security (or some other Symantec Internet software). The following code
points to something injected by a Symantec software product attempting
to block popups (the "Sym" in all the variable and function names stands
for "Symantec":

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

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

Similar topics

2
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. 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...
8
by: drillbit_99 | last post by:
I have an HTML page of thumbnail images. Each image can begin a slideshow of the images on the page by clicking on the image. This opens another HTML page that begins the slideshow using large...
2
by: jkbarbee37 | last post by:
I've done enough poking around lately to realise that there is a deficiency in Firefox when it comes to using document.images to reference an image for the purpose of building a slideshow. The code...
5
by: The87Boy | last post by:
I'm trying to make an onmouseover and onmouseout with this script: http://www.dynamicdrive.com/dynamicindex14/leftrightslide2.htm When the mouse is over, it should change to a picture, and when...
1
by: ttamilvanan81 | last post by:
Hai everyone, I need to provide the slideshow for the images. I have upload the images into database. Then i will retrive all the images from the database and provide the slideshow for those...
4
by: RaymondXie | last post by:
Hi folks, This is my first post. I have an app working perfectly under IE6 but failing in IE7 or FireFox. I believe something wrong with the CSS. I've attached my code below. The whole idea is...
2
pradeepjain
by: pradeepjain | last post by:
script> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully //...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.