473,399 Members | 3,302 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,399 software developers and data experts.

Problem with java script?

All,

Any help would be appriecated here...I have downloaded a working script, for
use with a web site of images. The java is a slide show of
images....Anyways, the images dont load in the slide show, and I cant fathom
out why....

The site is here....
www.royalboroughfc.myby.co.uk

the script is here.....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Royal Borough FC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#0099FF">
<div align="center">
<p><font size="7" face="Comic Sans MS"><strong><font color="#000000"
size="5">ROYAL
BOROUGH FC 2003/04</font></strong></font> </p>
<p>&nbsp;</p>
</div>
</body>
</html>
<p align="center"><input type="button" id="btnPrev" value="<< Previous"
onclick="Prev();"> <input type="button" id="bntPlay" value="Play - Stop"
onclick="Play()"> <input type="button" id="btnNext" value=" Next >> "
onclick="Next();"></p>

<p align="center"><img id="_Ath_Slide" onload="OnImgLoad()"> </p>

<p align="center"><b>Caption: </b> <SPAN id="_Ath_FileName"> </SPAN> <br>
<b>Number of Pictures: <SPAN id="_Ath_Img_X"></SPAN> of <SPAN
id="_Ath_Img_N"></SPAN></b></p>

<p align="center">

<script language="JavaScript1.2">

/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (co*******@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/
g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();

function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}

function getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}

function Update(){
getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
getobject("_Ath_Img_N").innerHTML = g_imax;
}
function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
Next();
}
else
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
function Tick()
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}
////configure below variables/////////////////////////////

//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("12140001.jpg", "It's a big bogey!");
g_ImageTable[g_imax++] = new Array ("12140002.jpg", "Honest ref, we don't
know where the ball is.");
g_ImageTable[g_imax++] = new Array ("12140003.jpg", "Toby says...I'm gonna
nut that ref!");
g_ImageTable[g_imax++] = new Array ("12140005.jpg", "Lonesome");
g_ImageTable[g_imax++] = new Array ("12140007.jpg", "RUN, don't walk!");
g_ImageTable[g_imax++] = new Array ("12140008.jpg", "Blinded by the
light...");
g_ImageTable[g_imax++] = new Array ("12140009.jpg", "Still blinded by the
light.");
g_ImageTable[g_imax++] = new Array ("12140010.jpg", "I wish someone would
wash my kit!");
g_ImageTable[g_imax++] = new Array ("12140011.jpg", "Watch out Toby, that
bloke behind you is looking at your ass!");
g_ImageTable[g_imax++] = new Array ("12140012.jpg", "Now he's looking at
neil's ass!");
g_ImageTable[g_imax++] = new Array ("12140026.jpg", "Again?");
g_ImageTable[g_imax++] = new Array ("12140029.jpg", "That's my better
side!");
g_ImageTable[g_imax++] = new Array ("12140036.jpg", "Steve walking of with
the ball");
g_ImageTable[g_imax++] = new Array ("12140038.jpg", "That is a slanting
pitch!");
g_ImageTable[g_imax++] = new Array ("12140040.jpg", "I will get up when you
give me the ball!");
g_ImageTable[g_imax++] = new Array ("12140041.jpg", "Never cuss someone down
behind their back");
g_ImageTable[g_imax++] = new Array ("12140043.jpg", "Stuart takes them all
on");
g_ImageTable[g_imax++] = new Array ("12140044.jpg", "Good tackle, shame you
did not get player or ball!");
g_ImageTable[g_imax++] = new Array ("12140045.jpg", "The cousins are after
number 14!");
g_ImageTable[g_imax++] = new Array ("12140046.jpg", "Well in Barry! Why is
he kicking you though?");
g_ImageTable[g_imax++] = new Array ("12140051.jpg", "The Ball is in front of
you Neil!");
g_ImageTable[g_imax++] = new Array ("12140053.jpg", "Funeral march");
g_ImageTable[g_imax++] = new Array ("12140054.jpg", "hmmmm, grass!");
g_ImageTable[g_imax++] = new Array ("12140055.jpg", "Pufferman?");
g_ImageTable[g_imax++] = new Array ("12140056.jpg", "I dont wanna play no
more!");
g_ImageTable[g_imax++] = new Array ("12140057.jpg", "Ref with his fags in
his pocket.");
//extend the above list as desired
g_dwTimeOutSec=7

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play

</script>
</p>

I am using dreamweaver to compile the site, I am running XP Pro SP1, IE 6
SP1.....

Any help would be great, many thanx

Sean.
Jul 20 '05 #1
2 1534
CeNo wrote on 20 Dec 2003 at Sat, 20 Dec 2003 10:03:51 GMT:
All,

Any help would be appriecated here...I have downloaded a working
script, for use with a web site of images. The java is a slide
show of images....Anyways, the images dont load in the slide show,
and I cant fathom out why....

The site is here....
www.royalboroughfc.myby.co.uk

the script is here.....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Royal Borough FC</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"> </head>

<body bgcolor="#0099FF">
<div align="center">
<p><font size="7" face="Comic Sans MS"><strong><font
color="#000000"
size="5">ROYAL
BOROUGH FC 2003/04</font></strong></font> </p>
<p>&nbsp;</p>
</div>
</body>
</html>


<snipped rest of document>

This could be your problem right here. Move the </body> and </html>
closing tags to the bottom of the page and try it again. That might
not solve all of your problems (I haven't checked the rest), but this
is a good place to start.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk")
Jul 20 '05 #2
CeNo wrote:
All,

Any help would be appriecated here...I have downloaded a working script, for
use with a web site of images. The java is a slide show of
images....Anyways, the images dont load in the slide show, and I cant fathom
out why....


Try running it on Mozilla with the Javascript console displayed and see
if you get any script errors.

IE is crap at reporting them.

Jul 20 '05 #3

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

Similar topics

3
by: Phil Powell | last post by:
I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string. Problem is that it appears the Java servlet does not receive anything...
17
by: Chris W | last post by:
I have a simple html form that sends 3 values to perl cgi script. The perl script then makes some calculations and prints the results to the browser. It also writes the values to a file with some...
8
by: Eric | last post by:
I want to have one statement in my web page that includes a single file (for example "Mylib.inc" that contains a list of ".js" files to include. Is that possible? And if so can some one show me the...
2
by: Iver Erling Årva | last post by:
I have this window where I open a modal dialog window using the code: newwin=window.showModalDialog(url, "popup", features) where features are ...
14
by: Rene Grothmann | last post by:
I have managed to communicate between forms and Java applets. A button press sends the content of the text area to an applet, a second button gets some text from the applet and puts it into the...
2
by: naveen | last post by:
hai all I am working in a project in whihc i need to modify the dom of a webpage and reload the page with modified dom. so for this i thought of working with JSObject and with applet commnication...
1
by: raman | last post by:
Hi, Kindly, look at the following problem. Objective: To draw a message sequence chart (MSC) from given log file. Input: Generated trace file (eg log.trace) Output: log.trace.html
2
by: smitanaik | last post by:
#! /bin/bash javac CopyFile.java /usr/bin/java CopyFile this is my shell script.when i call this script from terminal works fine.but through cron it gives me error saying exception i...
4
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
2
by: JohnLorac | last post by:
Hello, I'm trying to load and write file on local disc drive using signed javascript file. But I have experienced problem running this url: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.