| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
javascript file and php - runs ok in html page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() maybe you dont need to redeclar the <html><body> etc bits
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|