JoeWoodworker Posted November 17, 2006 Posted November 17, 2006 I have a javascript function to call to for my header.php file. The script requires a call to a javascript file (.js file). The original code says that it must this line in the header... <script type="text/javascript" src="/javascript/blahblahblah.js"></script> The problem is that I cant find where to add code that will call the javascript function so that it appears in every page (since the header.php is on every page). I hope I've explained this clearly. Thanks Joe Evil will always triumph over good... Because good is dumb. - D.H.
Jack_mcs Posted November 17, 2006 Posted November 17, 2006 I think, tecnically, you are supposed to place that in the head section. But since that would mean editing 30-40 files for an oscommerce shop, I usually place it in the includes/header.php file before the first html code and I've never had any problems. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.