Hope this is the right place on the forum for this..
I've read the wiki pages for adding js to zen cart. http://www.zen-cart.com/wiki/index.p...s_-_Javascript.
I saved the jscript file "jscript_BookFlip-slideshow.js" to this folder /includes/modules/pages/index/
I created a file named on_load which contained ONLY the onload code to add to the body tag in it. I also saved it to the /includes/modules/pages/index/ folder
Now this works beautiful on the home page.. However not only does the javascript load on the products/cateories pages, but I also get an error on all the products/cateories pages which is I know is caused by the on_load code being included in the body tag on the products/cateories pages.
I have a very good idea how to make sure that the javascript only loads on the home page.. what I am unsure about is how to make sure that the on_load code is NOT added to the body tag on the products/cateories pages..
Any help will be greatly appreciated..
Links:
http:// lanikshair . com/ - Home page
http:// lanikshair . com/index.php?main_page=index&cPath=31 - Sample category page
http://www.zen-cart.com/forum/showthread.php?t=82028&highlight=on_load+home




