Quote:
Now, I want to insert an include that also contains
javascript and some preloaded images. |
the big thing is, you can't include just any old thing anyplace- what is
included has to be correct syntax for WHERE it's put in the real file- so
that the total assembled real document served is correct syntax. Doesn't
have four <body> tags and fun things like that.
the included file should not be a complete html document in almost any case.
so- your javascript functions belong in the head section of the real
document (preferable- put them in a linked external .js file)
the onload events, put them in the body tag of the real document.
Or better, go to http://projectseven.com -->extensions and get the "RunEm"
extension. Lets you trigger functions without messing with the body tag.