Results 1 to 3 of 3

Thread: Switch content script in a wordpress blog/site

  1. #1
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Switch content script in a wordpress blog/site

    1) Script Title: Switch Content Script 1
    http://www.dynamicdrive.com/dynamici...tchcontent.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?

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    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>

  3. #3
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •