johnew Posted October 19, 2005 Share Posted October 19, 2005 In the oscommerce knowledge base article "Mouse Over Graphic Links with Session ID" it says..... Add this code to the catalog/includes/header.php file right before the body tag which will add the included mm.js file with the javascript code in it like this: <head> <script language="JavaScript" type="text/JavaScript" src="/includes/mm.js"></script> </head> well there is no <head> tag in the header file unless i'm missing something??? rather than putting the souce link to the js file manually between the head tags of each catalog file for the site can this be referenced elsewhere? john Link to comment Share on other sites More sharing options...
♥Vger Posted October 19, 2005 Share Posted October 19, 2005 If you want to put it into the header file then place it after this code: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> and before the opening html code: <table border="0" width="100%" cellspacing="0" cellpadding="0"> Vger Link to comment Share on other sites More sharing options...
johnew Posted October 19, 2005 Author Share Posted October 19, 2005 hi, thanks for your reply but if i just put it there it appears after the <body> tag, as show below, when it should appear between the header tags to load the external file, like the css file??? or can extra <head> tags go between the main <body> tags and still work? <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <head> <script language="JavaScript" type="text/JavaScript" src="/includes/mm.js"></script> </head> <table border="0" width="100%" cellspacing="0" cellpadding="0"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.