Cool script behaves oddly on pages, and perfectly in template.
-
OK this is a real odd one.
On my site I am making use of an old script I have lying around that does two things:
It automatically cycles one of seven images [monday.gif, tuesday.gif etc] each day of the week beginning at midnight, so that the images automatically update each night.
Also, it links each image to a PHP file that has information on that product (I am in the middle of revamping the pages for the products, so the links are bogus at the moment, but that is not relevant to the issue).
The script eventually will reside on my product Spotlight page located at the top of my blog, located here:
http://totalphysiqueonline.com/
I also use a test template to try things out and The Template is here:
http://totalphysiqueonline.com/test-template.shtml
As you can plainly see in the above link, the script is working fine on test-template.shtml
I tried posting the script here, but it goofed up the post so I cannot post it here. You can check the code in the source of the template file
Take my word for it, the script is simple and seems to work just peachy in the template
However, on the actual SPOTLIGHT page, EVERYTHING, and I do mean everything, goes completely nuts, with the sidebar and delicious links showing up willy nilly all over the place and the script not showing up anywere.
I added the script to my Spotlight page in the manage page area of Admin.
I just pasted it in the form field and submitted it.
Aside from a few lines of text, the script is all that is in the field. I have tried it by removing any text, and the result it the same.
I hit submit, and boom, the rest is mystery. The whole page blows up. Part of the sidebar is inclosed in the entry box, the rest is shoved beneath it.
What gives? Why would it work in the template but not in the Spotlight page, where I want it to be?
Help me ASAP please:)
- The topic ‘Cool script behaves oddly on pages, and perfectly in template.’ is closed to new replies.