Hi, i have this external javascript. Basically i only want it to be loaded if the visitor has not seen it in the previous week.

My aim was to use a javascript cookie setter to see a cookie when the external javascript is first loaded and then check each time to see how long the visitor has not seen if for before it is loaded again.

Ok, how do i include an external javascript inside an internal javascript.

Otherwise, how could i do this using php? the pages are all php pages so that would be just fine. Is there some cookie setting code in php that could do the check and then the results send the javascript. I am new to php so any actual cookie code that would do this would be greatly appreciated.