PDA

View Full Version : HTML/JAVA problems


Schming
08-22-2003, 11:23 AM
I'm having problems with some HTML and JAVA. All the filepaths are correct I'm just having problems with the banner working properly and also some of the image flips...

<HTML>
<HEAD>
<TITLE><<SCHMING!>></title>

<SCRIPT>
imgArray = new Array(9);
imgArray[0] = new Image;
imgArray[0].src = "images/banner/schming1.GIF";
imgArray[1] = new Image;
imgArray[1].src = "images/banner/schming2.GIF";
imgArray[2] = new Image;
imgArray[2].src = "images/banner/schming3.GIF";
imgArray[3] = new Image;
imgArray[3].src = "images/banner/schming4.GIF";
imgArray[4] = new Image;
imgArray[4].src = "images/banner/schming5.GIF";
imgArray[5] = new Image;
imgArray[5].src = "images/banner/schming4.GIF";
imgArray[6] = new Image;
imgArray[6].src = "images/banner/schming3.GIF";
imgArray[7] = new Image;
imgArray[7].src = "images/banner/schming2.GIF";
imgArray[8] = new Image;
imgArray[8].src = "images/banner/schming1.GIF";
index = 0;

function cycle()
{
document.banner.src = imgArray[index].src;
index++;
if (index == 9)
{
index = 0;
}
setTimeout("cycle()", 100);
return;
}
</script>
<SCRIPT>
News1 = new Image
News1.src = "images/news.GIF"
News2 = new Image
News2.src = "images/news1.GIF"
</script>
<SCRIPT>
Media1 = new Image
Media1.src = "images/media.GIF"
Media2 = new Image
Media2.src = "images/media1.GIF"
</script>
<SCRIPT>
About1 = new Image
About.src = "images/about.GIF"
About2 = new Image
About2.src = "images/about1.GIF"
</script>
<SCRIPT>
Live1 = new Image
Live1.src = "images/live.GIF"
Live2 = new Image
Live2.src = "images/live1.GIF"
</script>
<SCRIPT>
Gbook1 = new Image
Gbook1.src = "images/guestbook.GIF"
Gbook2 = new Image
Gbook2.src = "images/guestbook1.GIF"
</script>
</HEAD>

<BODY text=burlywood vLink=coral link=cornsilk bgColor=black>

<TABLE align=center BACKGROUND="images/indexbg.GIF">
<TBODY>
<TR>
<TD>
<FONT COLOR=cornsilk FACE=courier>
<MARQUEE loop=indefinite>eat schmingy! sleep schmingy! be schmingy!</MARQUEE>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<IMG SRC="images/banner/schming1.GIF" NAME="banner">
</CENTER>
</TD>
</TR>
<TR>
<TD>
<A href="/news.html"
onMouseOver="document.news.src = News2.src;"
onMouseOut="document.news.src = News1.src;"><IMG
src="images/news.GIF" border=0 name=news></A>
<BR>
<BR>
<CENTER>
<A HREF="/band.html"
onMouseOver="document.about.src = About2.src;"
onMouseOut="document.about.src = About1.src;"><IMG SRC="images/about.GIF" border=0 name=about></A>
</CENTER>
<BR>
<BR>
</TD>
</TR>
</TABLE>
<CENTER>
<FONT FACE=courier>
<BR>
<P>Best viewed in 800x600 resolution with IE4+</p>
<P><H6>Site design: <A href="mailto:john@schminglife.org">John
Lindsey</a><BR>last update: august 15th, 2003<BR></center>

<P><FONT face=courier>
<CENTER><A
href="http://www.angelfire.com/retro/schming/homepage.html">enter old site</a></center></p></h6>

</font></font>
</BODY>
</HTML>

------------------
~veritas~

Pommy
08-22-2003, 10:09 PM
Where's the Java? http://forums.massassi.net/html/confused.gif

------------------
Sigs are for n00bs.

[1337 FRNDS_Pommy (http://forums.massassi.net/cgi-bin/ubbmisc.cgi?action=getbio&UserName=FRNDS_Pommy) | 3.14 of 14 | » And-GTx2 (http://andgtx2.el3ctro.co.uk)]
Half-Life 2 Central (http://www.hl2central.net) - your definitive source for everything HL2!

Schming
08-24-2003, 06:27 PM
...the part in the script tags...

------------------
~veritas~

SithGhost
08-25-2003, 09:16 PM
That's JavaScript, very big differance. http://forums.massassi.net/html/wink.gif

What's happening that you don't like? (details, details)

------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

[This message has been edited by SG1_129 (edited August 25, 2003).]

Schming
08-26-2003, 10:35 AM
Um, first off the banner isn't cycling, it's frozen on the first image. Also, instead of completing the image flip, the images appear correct, you move the mouse over them, they change, and then you roll the mouse off and they turn into RED X's OF DEATH. So, yeah. I also just downloaded this program that is supposed to help write HTML by recognizing certain commands and color-coding and crap like that but it hasn't helped either.

------------------
~veritas~