#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    92
    Rep Power
    13

    javascript show nothing in html page.


    i wanted to include a dhtml menu in my header file. i saved my header file as .js..

    in my index.htm, i include my header.js..

    Code:
    <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="header.js"></SCRIPT>

    before i added the dhtml menu in my header, everything works fine. after adding the dhtml menu, when i open index, it nv show the header part anymore.. and it shows no error...

    wat is the problem then??

    in my header file i have <body> and in my index file i also have <body> will tat be a problem??

    pls advice...
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    What's a 'header file'? Can't answer this without lots more info...what's in that .js file, mainly...
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    92
    Rep Power
    13
    header.js is the name of the file i want to include in index.htm...

    wat's in header?? the dhtml menu...banners and logos.
  6. #4
  7. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    Any document.write(....) statements in there? If HTML is being output, the script needs to be in the <body>, at the spot where you want that output to appear. And: no, one <body> tag per customer.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    92
    Rep Power
    13
    yes....everything is there.....

    document write... <body>

    but strange though..nothing appear....

    http://www.katrinbj.com/i.htm
    Last edited by joyce; April 23rd, 2003 at 01:04 AM.

IMN logo majestic logo threadwatch logo seochat tools logo