TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 115
  • Total: 115

Adding Javascript Code to TP

Started by Skhilled, December 10, 2005, 08:05:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

Hi, I'd like to know how to add the following code to TP.

http://www.dynamicdrive.com/dynamicindex3/snow.htm

I thought I had saw a post about this before but couldn't find it. I am using several themes and would like it to show no matter which theme is viewed. Hopefully it is not theme-specific but I'll just have to do more work if it is. I am assuming that it would be added to index.template.php somewhere but I could be wrong.

gerrymo

It will be theme specific. Each index.template will have to be edoited.

gerrymo

I just installed this one.

http://www.dynamicdrive.com/dynamicindex3/snownoimages.htm

Just follow the instructions. The launch code for the javascript simple goes into index.template as below.

Find

echo '
</body>


Change to

echo '
<script type="text/javascript" src="snow.js"></script>
</body>


(Make sure the path to snow.js is correct for your site).

Skhilled


gerrymo

They are theme specific. Each copy of index.template will need to be modified.

(It wont show on light backgrounds BTW).


This website is proudly hosted on Crocweb Cloud Website Hosting.