Hi, I need a little help with this code I made...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var how_many_buttons = 13;
var now = new Date()
var sec = now.getSeconds()
var button = sec % how_many_buttons;
button +=1;
if (button==1) {
txt="Got Evil Robotic Clone?";
txt2="This was the first comic series ever made by PsychoMedia back in June 2001. This is what got us started. Check it out! (PG 13)";
url="gerc.html";
alt="Got Evil Robotic Clone?";
banner="<?=$imgdir?>/gerc-b.gif";
width="60";
height="60";
}
if (button==2) {
txt="Link and Zelda's Adventure";
txt2="This was the first comic series ever made by PsychoMedia back in June 2001. This is what got us started. Check it out! (PG 13)";
url="laza.html";
alt="Link and Zelda's Adventure";
banner="<?=$imgdir?>/laza-b.gif";
width="60";
height="60";
}
if (button==3) {
txt="Operation Kill Mario";
txt2="This is by the far the longest comic we have. we have a minimum of 60 or so panels in each chapter. It's pretty funny, and pretty long! (PG)";
url="okm.html";
alt="Operation Kill Mario";
banner="<?=$imgdir?>/okm-b.gif";
width="60";
height="60";
}
if (button==4) {
txt="Attack of the Bowser Clones";
txt2="Jimmy's third comic series ever made. unfortunately, his first two series was lost and too complicated to work with (the second one supposedly wasn't very good). This was started Summer 2002. (PG 13)";
url="aotbc.html";
alt="Attack of the Bowser Clones";
banner="<?=$imgdir?>/aotbc-b.gif";
width="60";
height="60";
}
if (button==5) {
txt="Greg and Bob's Revenge";
txt2="The first comic series made during when we were up. Started November 2001. Many agree, it's really funny and innovative! (PG)";
url="gabr.html";
alt="Greg and Bob's Revenge, yo?";
banner="<?=$imgdir?>/gabr-b.gif";
width="60";
height="60";
}
if (button==6) {
txt="Impromptu";
txt2="A Different style in the art of comic. 3 guys, no script, made up going along, and a totally different style of comic making then you are used to seeing, and you get this. This impromptu comic. (G-PG)";
url="imp.html";
alt="Impromptu";
banner="<?=$imgdir?>/imp-b.gif";
width="60";
height="60";
}
if (button==7) {
txt="Donkey Kong: The True Story";
txt2="Jimmy's most recent comic, it is a sad story of Mario's life. Mario's REAL childhood which attempted to forever keep hidden from public knowledge. Jimmy Accuratley captures Mario's life the way nobody has seen it... until now! (PG-13)";
url="dktts.html";
alt="Donkey Kong: The True Story";
banner="<?=$imgdir?>/dktts-b.gif";
width="60";
height="60";
}
if (button==8) {
txt="Robo Mario";
txt2="Sequal to the smash hit "Got Evil Robotic Clone" With superior graphics, and overall funny, this is the one to top them all. LVK, the most recent addition to our staff, does an amazing job. (PG 13)";
url="rm.html";
alt="Robo Mario. If you happen to see this message, it means you won a million dollars!!!! Just kidding!";
banner="<?=$imgdir?>/rm-b.gif";
width="60";
height="60";
}
if (button==9) {
txt="Back to School with MMWC";
txt2="Many agree; this is probably the funniest comic MMWC has to offer. Too bad after this, because this comic was so funny, Justin has lost it, and, well, just basically isn't funny anymore. It's a tragic story, but he is currently in therapy, and is showing some signs of recovery. (PG)";
url="tp1.html";
alt="Back to School with MMWC. and your mom.";
banner="<?=$imgdir?>/bts-b.gif";
width="60";
height="60";
}
if (button==10) {
txt="Mario Factor";
txt2="MMWC's first Game Show Parody, this one kinda sucks. Well, all things that start out suck, don't they? (G)";
url="mf.html";
alt="Mario Factor";
banner="<?=$imgdir?>/mf-b.gif";
width="60";
height="60";
}
if (button==11) {
txt="Who wants to be a Million "Where"?";
txt2="Do not be fooled by this amazingly stupid name that makes no sence, the comic is a great improvement from the last game show parody. It's actually real funny. (G-PG)";
url="wwtbamw.html";
alt="Who Wants to be a Million "Where"???? I sure dont.";
banner="<?=$imgdir?>/wwtbamw-b.gif";
width="60";
height="60";
}
if (button==12) {
txt="The Crayon Conspiracy";
txt2="Justin's third Flash Movie, it shows a great deal of improvement from the last two. This masterpiece was created March 2002. (PG)";
url="#" onclick="window.open('http://members.lycos.co.uk/mmwcforum/mmwcforum/ff/tcc2.swf','popper','height=450,width=570,toolbar=no,location=no,directories=no,status=yes,menubar=no ,scrollbars=no,resizable=no')";
alt="THE CRAYON CONSPIRACY!!!!!";
banner="<?=$imgdir?>/ccon-b.gif";
width="60";
height="60";
}
if (button==13) {
txt="Poor Kitty!";
txt2="First of our videos. This is some video of a cat getting caught on this fan thing and, well, you'll see. But don't worry, that cat doesn't die (I am pretty sure). This is an example of how cats are so stupid (and almost literally sums up the phrase "Curiosity kills the cat") (PG)";
url="movies/catinfan.wmv";
alt="Thump goes Kitty!";
banner="<?=$imgdir?>/pk-b.gif";
width="60";
height="60";
}
document.write('<center>');
document.write('<a href=http://www.webdeveloper.com/forum/archive/index.php/\"' + url + '\" target=\"_top\">');
document.write('<small>' + txt + '</small><br>');
document.write('<img src=http://www.webdeveloper.com/forum/archive/index.php/\"' + banner + '\" width=');
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a><br><br>');
document.write('<small>' + txt2 + '</small>');
document.write('</center>');
// End -->
</SCRIPT>
the problem I have with this is nothing shows up where I placed the script. it is supposed to be a random banner kind of thing with text below it describing the banner above. I am not sure what I did wrong, if anybody could help, thanks alot.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var how_many_buttons = 13;
var now = new Date()
var sec = now.getSeconds()
var button = sec % how_many_buttons;
button +=1;
if (button==1) {
txt="Got Evil Robotic Clone?";
txt2="This was the first comic series ever made by PsychoMedia back in June 2001. This is what got us started. Check it out! (PG 13)";
url="gerc.html";
alt="Got Evil Robotic Clone?";
banner="<?=$imgdir?>/gerc-b.gif";
width="60";
height="60";
}
if (button==2) {
txt="Link and Zelda's Adventure";
txt2="This was the first comic series ever made by PsychoMedia back in June 2001. This is what got us started. Check it out! (PG 13)";
url="laza.html";
alt="Link and Zelda's Adventure";
banner="<?=$imgdir?>/laza-b.gif";
width="60";
height="60";
}
if (button==3) {
txt="Operation Kill Mario";
txt2="This is by the far the longest comic we have. we have a minimum of 60 or so panels in each chapter. It's pretty funny, and pretty long! (PG)";
url="okm.html";
alt="Operation Kill Mario";
banner="<?=$imgdir?>/okm-b.gif";
width="60";
height="60";
}
if (button==4) {
txt="Attack of the Bowser Clones";
txt2="Jimmy's third comic series ever made. unfortunately, his first two series was lost and too complicated to work with (the second one supposedly wasn't very good). This was started Summer 2002. (PG 13)";
url="aotbc.html";
alt="Attack of the Bowser Clones";
banner="<?=$imgdir?>/aotbc-b.gif";
width="60";
height="60";
}
if (button==5) {
txt="Greg and Bob's Revenge";
txt2="The first comic series made during when we were up. Started November 2001. Many agree, it's really funny and innovative! (PG)";
url="gabr.html";
alt="Greg and Bob's Revenge, yo?";
banner="<?=$imgdir?>/gabr-b.gif";
width="60";
height="60";
}
if (button==6) {
txt="Impromptu";
txt2="A Different style in the art of comic. 3 guys, no script, made up going along, and a totally different style of comic making then you are used to seeing, and you get this. This impromptu comic. (G-PG)";
url="imp.html";
alt="Impromptu";
banner="<?=$imgdir?>/imp-b.gif";
width="60";
height="60";
}
if (button==7) {
txt="Donkey Kong: The True Story";
txt2="Jimmy's most recent comic, it is a sad story of Mario's life. Mario's REAL childhood which attempted to forever keep hidden from public knowledge. Jimmy Accuratley captures Mario's life the way nobody has seen it... until now! (PG-13)";
url="dktts.html";
alt="Donkey Kong: The True Story";
banner="<?=$imgdir?>/dktts-b.gif";
width="60";
height="60";
}
if (button==8) {
txt="Robo Mario";
txt2="Sequal to the smash hit "Got Evil Robotic Clone" With superior graphics, and overall funny, this is the one to top them all. LVK, the most recent addition to our staff, does an amazing job. (PG 13)";
url="rm.html";
alt="Robo Mario. If you happen to see this message, it means you won a million dollars!!!! Just kidding!";
banner="<?=$imgdir?>/rm-b.gif";
width="60";
height="60";
}
if (button==9) {
txt="Back to School with MMWC";
txt2="Many agree; this is probably the funniest comic MMWC has to offer. Too bad after this, because this comic was so funny, Justin has lost it, and, well, just basically isn't funny anymore. It's a tragic story, but he is currently in therapy, and is showing some signs of recovery. (PG)";
url="tp1.html";
alt="Back to School with MMWC. and your mom.";
banner="<?=$imgdir?>/bts-b.gif";
width="60";
height="60";
}
if (button==10) {
txt="Mario Factor";
txt2="MMWC's first Game Show Parody, this one kinda sucks. Well, all things that start out suck, don't they? (G)";
url="mf.html";
alt="Mario Factor";
banner="<?=$imgdir?>/mf-b.gif";
width="60";
height="60";
}
if (button==11) {
txt="Who wants to be a Million "Where"?";
txt2="Do not be fooled by this amazingly stupid name that makes no sence, the comic is a great improvement from the last game show parody. It's actually real funny. (G-PG)";
url="wwtbamw.html";
alt="Who Wants to be a Million "Where"???? I sure dont.";
banner="<?=$imgdir?>/wwtbamw-b.gif";
width="60";
height="60";
}
if (button==12) {
txt="The Crayon Conspiracy";
txt2="Justin's third Flash Movie, it shows a great deal of improvement from the last two. This masterpiece was created March 2002. (PG)";
url="#" onclick="window.open('http://members.lycos.co.uk/mmwcforum/mmwcforum/ff/tcc2.swf','popper','height=450,width=570,toolbar=no,location=no,directories=no,status=yes,menubar=no ,scrollbars=no,resizable=no')";
alt="THE CRAYON CONSPIRACY!!!!!";
banner="<?=$imgdir?>/ccon-b.gif";
width="60";
height="60";
}
if (button==13) {
txt="Poor Kitty!";
txt2="First of our videos. This is some video of a cat getting caught on this fan thing and, well, you'll see. But don't worry, that cat doesn't die (I am pretty sure). This is an example of how cats are so stupid (and almost literally sums up the phrase "Curiosity kills the cat") (PG)";
url="movies/catinfan.wmv";
alt="Thump goes Kitty!";
banner="<?=$imgdir?>/pk-b.gif";
width="60";
height="60";
}
document.write('<center>');
document.write('<a href=http://www.webdeveloper.com/forum/archive/index.php/\"' + url + '\" target=\"_top\">');
document.write('<small>' + txt + '</small><br>');
document.write('<img src=http://www.webdeveloper.com/forum/archive/index.php/\"' + banner + '\" width=');
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a><br><br>');
document.write('<small>' + txt2 + '</small>');
document.write('</center>');
// End -->
</SCRIPT>
the problem I have with this is nothing shows up where I placed the script. it is supposed to be a random banner kind of thing with text below it describing the banner above. I am not sure what I did wrong, if anybody could help, thanks alot.