View Single Post
  #1  
Old 11-14-2004, 10:50 PM
 
scott_dev scott_dev is offline
 

Member
  
Join Date: May 2004
Location: San Diego, California
Posts: 12
 

Default javascript file and php - runs ok in html page

This setup works fine on a test html page, but when I place it on my php include page, I get "object expected" javascript error:


<?php
#
# You can place your php here for the WELCOME PAGE of your site
#
$the_welcome="Welcome";
echo $the_welcome;
?>

<html>
<script type="text/javascript" src="overlib.js"></script>
<body>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

</body>
</html>
__________________
Scott Robinson
X-Cart 4.0.0 - Heavily Modified
PHP version 4.3.9
Operating system Linux
Kernel version 2.6.8.1
Machine Type i686
Apache version 1.3.32 (Unix)
PERL version 5.8.4
MySQL version 4.0.20-standard
Reply With Quote