aashen Posted October 15, 2008 Posted October 15, 2008 there seems to be a problem in the online manual to add a mouse over graphic to the catalog. osCOMMERCE manual for inserting mouse over graphic links The header.php file does not have any <head> tags, and actually starts below the body tag. This means that I have to go into every page to include the script for navigation, which is on every page. There must be or have been a better solution than this. This also applies to other custom js I want to add. HELP
FIMBLE Posted October 15, 2008 Posted October 15, 2008 Add it AFTER the PHP and before the HTML starts, it will work Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
aashen Posted October 16, 2008 Author Posted October 16, 2008 This will put it in the body of the page and is not standard coding. One of my big problems is that the manual has an example and solution that are outdated with how the system is CURRENTLY set up. Alternatives??
germ Posted October 16, 2008 Posted October 16, 2008 Go in the <head> section of each page and insert something like: <script src="custom.js"></script> Then put this script (and any future scripts) in it. This way you edit all the files ONCE, and if/when you have more scripts to add you only edit ONE file. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
aashen Posted October 16, 2008 Author Posted October 16, 2008 importing the custom js page is probably the best way to go. I wonder why osCOMMERCE used to have the head method but go rid of it. At the least the manual should be amended to delete that section. Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.