Solved

JS not working -- can't figure it out

Posted on 2012-03-26
3
237 Views
Last Modified: 2012-03-27
I am perplexed.  I have a client with a WordPress site and she edited the page, which has some hard coded HTML in it and she broke a rotating image run by javascript.  

This must be super simple, but i can't figure it out for the life of me.  I restored the page as it was and it still doesn't work.  

The file is where it is supposed to be.  I just don't see what the problem is.

The site is at http://www.bonnietaubdix.com.   the home page has the rotating images using the script...
<script src="http://bonnietaubdix.com/wpsite/wp-content/themes/bonnie/album.js"></script>
0
Comment
Question by:dougfosterNYC
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 37769894
I see all pictures missing

images/q1.jpg to images/q9.jpg

so you need to change
var path="images/q"

to

var path="/wpsite/wp-content/themes/bonnie/images/q";
0
 

Author Closing Comment

by:dougfosterNYC
ID: 37770742
Thanks, that was the issue. It is really odd, since it used to work.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37770909
I do not know wp well but it looks like someone changed virtual root
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now