PDA

View Full Version : Switch content script in a wordpress blog/site



domainer
01-18-2011, 10:35 PM
1) Script Title: Switch Content Script 1
http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm

2) Script URL (on DD): dnsblogs.com/switch-content

3) Describe problem:

Can someone help me to figure out why my installation of javascript does not work on the page above. This is what I have done:

a. I have the javascript external function between the head tags in the header section.

b. I have uploaded the .js file inside the theme's folder. Both images (open.png and close.png) have been uploaded to the images folder inside the theme folder.

The page content has been introduced on the page above using <div> tags but unfortunately it doesn't respond to event click (contract/expand).

Can someone tell me what I am doing wrong? Did I upload the files wrongly?

azoomer
01-18-2011, 11:14 PM
In your source code these two paths to the javascript are found:

<script type="text/javascript" src="switchcontent.js">

<script type="text/javascript" src="http://www.dnsblogs.com/wp-content/themes/ocean-mist-10/wp-content/themes/ocean-mist-10/switchcontent.js"></script>

But the working absolute path to the scrips is as follows:

<script type="text/javascript" src="http://www.dnsblogs.com/wp-content/themes/ocean-mist-10/switchcontent.js"></script>

domainer
01-19-2011, 05:46 AM
Thanks, I've just corrected the source code to your suggested format but it made no difference. The problem persists. Has anyone here successfully installed the Switch content script on a wordpress site? Thanks in advance.