Implementing javascript in a wordpress page
This is how the map should look like (change hxxp to http, i can't post images or links yet...)
hxxp://artbookaddicts.com/NCPics/usamap1.png
And here's an overview of the included files:
hxxp://artbookaddicts.com/NCPics/usamap2.png
I want to implement the map on a wordpress page, but something goes wrong, here's how i tried to do it:
- Upload the css file and the javascript file to my wordpress directory with FileZilla
- Change the location of the above 2 files in the index.html code
- Copy the edited index.html code into a new wordpress page (note that i paste this in the HTML view, not the visual view)
When i go to the newly created page, the code is visible and the map is not showing (only the borders of where it should be are visible) ... not exactly what i'm trying to achieve...
I assume the problem is that you can only put html in the Page HTML box, and as far as my coding knowledge goes, there's some css in it too. Is there a way to put the index.html file in the theme directory and bring it up on a page with a HTML shortcode?
Any help would be very much appreciated. I can post the code if you want, just ask...
Please do not use affiliate links in signatures. That includes affiliate coupons.