Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help me with my head tag and javascript


bigbob2

Recommended Posts

I am making some modifications to a contribution called "Happy Hours Specials". It creates a box on the left column which shows a product and then tells you how long the offer is valid for. The valid time is just static, so I have asked someone to create javascript for me which give an animated countdown until midnight (which is when all our offers end). They have given me code to place in the <head> of the page and a line to place where I want the countdown to run. I tried putting the <head> part on the product_info.php file and now when I am on the product_info.php page the countdown works fine, but on any other page it does not show the countdown. Do I have to put the <head> code on every page of my site or is there another way

 

Thanks

Kev

 

PS, here is the code I am trying to put in the head:

 

 

<script type="text/javascript" src="http://jshine.googlecode.com/files/jquery.timers-1.1.2.js"></script>

<script src="

Link to comment
Share on other sites

I've just put snow on a Christmas greeting and found the following:

 

Put your script just before the </head> on each page.

 

Ensure the javascript file ending .js is in the same folder as the webpage the script appears on.

 

Ended up with this:

 

http://herbalmedicineuk.com/xmas/

 

I've got a folder with the webpage and the js script in. I've renamed page index.html

 

Took hours, I'm not coder ...

 

Lorraine

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...