Adding Javascript Inside A Page
-
I have a client that wants a world population counter on her website. I have the working JS code running on the site in question outside of WordPress to show it’s working code.
View here: http://www.anklebitingterrier.com/clock.php
I also have it inside of WordPress using methods I read from this site http://lorelle.wordpress.com/2005/09/16/using-javascript-in-wordpress/ and haven’t had success.
This is the code I have inside the page in question:
http://www.anklebitingterrier.com/shoot-i-forgot-to-have-kids/AND THIS IS THE ACTUAL JS FILE BEING CALLED
http://www.anklebitingterrier.com/js/world-population.js<script type=”text/javascript” src=”/js/world-population.js”> </script>
<script type=”text/javascript”>
<!–
maind();
//–></script><b>The number of people on the planet Earth is now…</b>
<form name=”schuld”>
<input type=”text” name=”schuld” size=25 value=””/>
</form>
The code is directly from this site: http://www.javascriptkit.com/script/script2/worldpop2.shtml
ANY guidance or assistance would be greatly appreciated.
Thank you.
Chad W
Creative Visual Design
http://www.creativevisualdesign.com
- The topic ‘Adding Javascript Inside A Page’ is closed to new replies.