Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7539031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:16:34+00:00 2026-05-30T07:16:34+00:00

There is no real reason that this code shouldn’t work, as far as I

  • 0

There is no real reason that this code shouldn’t work, as far as I can tell. I have a HTML file and an external .js file. Here is the statement that I am using inside of the html to load the .js file:

<script type="text/javascript" src="family.js"></script>

The name of the file is correct, and it is in the same directory. I’ll post the full code of the html page below, just in case something is off with something else.

Is there anything that I am missing? The .js file should make a sliding menu, however it is simply not loading. I have an alert inserted in the .js file that should alert me when it’s working, although it doesn’t show up.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>

<title>The Jones Family</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="family.css" type="text/css" />
<script type="text/javascript" src="family.js"></script>
<script language="JavaScript" type="text/javascript">
    var d=new Date();
    var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
    //Ensure correct for language. English is "January 1, 2004"
    var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
    alert ("Inside script is working");
</script>
</head>
<body >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="head">
    <td width="382" colspan="3" rowspan="2"><img src="camera.jpg" alt="camera" border="0" /></td>
    <td width="378" height="50" colspan="3" id="logo" valign="bottom" align="center" nowrap="nowrap">The Jones Family Website</td>
    <td width="100%">&nbsp;</td>
  </tr>

  <tr class="head">
    <td height="51" colspan="3" id="tagline" valign="top" align="center">Photo Gallery</td>
    <td width="100%">&nbsp;</td>
  </tr>

    <tr>
    <td colspan="7" class="separator" ><div class="myHr"><hr /></div></td>
  </tr>

  <tr class="separator">
    <td colspan="7" id="dateformat" height="20">&nbsp;&nbsp;<script language="JavaScript" type="text/javascript">
      document.write(TODAY);    </script>   </td>
  </tr>
  <tr>
    <td colspan="7" class="separator" ><div class="myHr"><hr /></div></td>
  </tr>

  <tr>
    <td width="200" height="450" valign="top" class="nav" >
    <table class="nav" border="0" cellspacing="0" cellpadding="0" width="40" id="navigation">
        <tr>
          <td >&nbsp;<br />
         &nbsp;<br /></td>
        </tr>
        <tr>
          <td ><div class="navG" id="gallery1" style="position: absolute; top: 180px; left: -150px; " >
                 <table width="184" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="150"><a href="#">Disney</a><br />
                         <a href="#">SeaWorld</a><br />
                         <a href="#">Bush Garden</a><br />
                         <a href="#">Universal Studios</a><br />
                     </td>
                     <td><img src="gallery1.jpg" alt="gallery 1" class="nav1" /></td>
                   </tr>
                 </table>
              </div></td>
        </tr>

        <tr>
          <td ><div class="navG" id="gallery2" style="position: absolute; top: 285px; left: -150px; " >
                 <table width="184" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="150"><a href="#">Sweet 16</a><br />
                         <a href="#">Summer Camp</a><br />
                         <a href="#">Holiday</a><br />
                         <a href="#">Ski Trip</a><br />
                     </td>
                     <td><img src="gallery2.jpg" alt="gallery 2" class="nav1" /></td>
                   </tr>
                 </table>
              </div></td>
        </tr>

        <tr>
          <td ><div class="navG" id="gallery3" style="position: absolute; top: 390px; left: -150px; "  >
                 <table width="184" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="150"><a href="#">Mom's Birthday (2011)</a><br />
                         <a href="#">Dad's Birthday (2011)</a><br />
                         <a href="#">Bobby's Birthday</a><br />
                         <a href="#">Jenny's</a><br />
                     </td>
                     <td><img src="gallery3.jpg" alt="gallery 3" class="nav1" /></td>
                   </tr>
                 </table>
              </div></td>
        </tr>

        <tr>
          <td ><div class="navG" id="gallery4" style="position: absolute; top: 495px; left: -150px; " >
                 <table width="184" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="150"><a href="#">Skatepark</a><br />
                         <a href="#">Wildlife</a><br />
                         <a href="#">Beach</a><br />
                         <a href="#">Hawaii</a><br />
                     </td>
                     <td><img src="gallery4.jpg" alt="gallery 4" class="nav1" /></td>
                   </tr>
                 </table>
                </div></td>
        </tr>
      </table>
     <br />
    &nbsp;<br />
    &nbsp;<br />
    &nbsp;<br />    </td>
    <td width="50"></td>
    <td width="305" colspan="2" valign="top"><br />
    &nbsp;<br />
    &nbsp;<br />
    <table border="0" cellspacing="0" cellpadding="0" width="305">
        <tr>
          <td class="pageName">Family Photos</td>
        </tr>

        <tr>
          <td class="bodyText"><p>From here you can see family Photos taken by our various amateur photographers!</p>

        <p>We hope you enjoy the photos as much as we do!</p>
                <p align="center"><img src="sayCheese.jpg" alt="Say Cheese" /></p></td>
        </tr>
      </table>
     <br />
    &nbsp;<br />    </td>
    <td width="50"></td>
        <td width="190" valign="top"><br />
        &nbsp;<br />
        <table border="0" cellspacing="0" cellpadding="0" width="190" id="leftcol">

       <tr>
       <td width="10"></td>
        <td width="170" class="smallText"><br />
            <p><span class="subHeader">Photog #1</span><br />
            Mary Sue - Mother, she prefers her Canon camera. She still uses film, but has the photos put onto digital cd when developed. </p>

            <p><span class="subHeader">Photog #2</span><br />
            Bobby - Hip son, he prefers his HP kid digital camera. Not that old, but still takes interesting pictures.</p>

            <p><span class="subHeader">Photog #3</span><br />
            Jenny - Cool Teen, she has a Sony digital video camera. She takes movies and still photos. Just don't expect her to smile too much.</p>

             <br />
            &nbsp;<br />          </td>
         <td width="10">&nbsp;</td>
        </tr>
      </table>  </td>
    <td width="100%">&nbsp;</td>
  </tr>
  <tr>
    <td width="165">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td width="167">&nbsp;</td>
    <td width="138">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td width="190">&nbsp;</td>
    <td width="100%">&nbsp;</td>
  </tr>
</table>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:16:35+00:00Added an answer on May 30, 2026 at 7:16 am

    the problem is not the MIME type, but it’s in the JS script (if it’s the one at ‘http://orca.st.usm.edu/~tbonnet2/440/p5/family.js’)

    A closing parentheses is missing, look into closeMenu():

    function closeMenu() {
    
     /* get the current menu id */
     var ID = this.id + "List"
    
     /* determine active menu */
     activeMenu = document.getElementById(ID);
     if (activeMenu) {              // <------ THIS CONDITIONAL BLOCK ISN'T CLOSED!
        activeMenu.style.display = "none";
        activeMenu = null;
     /* run the moveItemLeft function by setting a time interval */
     timeID = setInterval("moveItemLeft()", 1);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any real use for self modifying code ? I know that they
Summary: I have a struct that is read/written to file. This struct changes frequently,
Is there any real reason not to make a member function virtual in C++?
Are there a real reason to use dynamic linking and binary distributions these days?
Is there any reason for making delegate when using EJB3? Because the only real
Can anyone recommend any good material that seeks to provide a real world perspective
Preface: This is not much about how to structure code within files. I have
I have seen some code do this: if(something){ echo 'exit from program'; die; }
I have some (php) code that performs critical updates on an InnoDB table. I'm
Is there a way to have the parent that spawned a new thread catch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.