0

I have tried searching the database for a similar issue, but was unsuccessful in finding anything remotely close. I just noticed that the sub menu items on two pages on a site I am creating that use php or are php have stopped working. Nothing was changed on the menu items as they are library items that have not been detached from the original.

Instead of attaching the entire code for both pages (as they are quite long), I figured I would first provide a link to the testing server that the two pages in question are hosted on: (1) http://2142.sandbox.i3dthemes.net/apply_now.php and (2) http://2142.sandbox.i3dthemes.net/contact_us.htm.

If you think you know what is happening here, I would be very curious to know what it is and how to correct the issue (if there is a way to).

Any help would be appreciated. If you need to see the entire page source to figure this out, just let me know and I will edit the post to include it.

Thank you in advance.

PROBLEM SOLVED:

Okay, so the solution that solved my problem was to do some additional troubleshooting. I had initially assumed the problem was only with the pages containing php, however I discovered that other html pages were also affected. So, I used one of the properly working pages and copied it as a test template. I used that template to copy paste my php code into and - voila - the menus worked again!

Just goes to show how easy it is to accidentally delete a closing div tag which is what I think I may have done.

Thanks to everyone for their help.

4

3 回答 3

1

Try add this:

<script type="text/javascript">ddsmoothmenu.init({mainmenuid: "smoothmenu2", orientation: 'v', classname: 'ddsmoothmenu-v', contentsource: "markup" })</script>

AFTER your menu, not before.

于 2011-11-17T15:58:32.107 回答
1

如果您有一个简单的系统(如大多数网站)并且事情停止工作,那么它很可能是由与该网站合作的人所做的更改引起的。在调查错误原因时,始终首先查看最可能的原因。那么:有没有其他人在网站上做过任何编程(PHP)或前端工作(HTML/CSS/JavaScript)?

于 2011-11-17T15:58:50.357 回答
1

以下错误发生在菜单不起作用的页面中。我认为您的 JS 在菜单损坏的页面上可能格式不正确或损坏

Uncaught ReferenceError: flashRootLocation is not defined
apply_now.php:80Uncaught TypeError: Cannot call method 'init' of undefined
apply_now.php:307Uncaught ReferenceError: flashConfigLocation is not defined
apply_now.php:344Uncaught ReferenceError: flashConfigLocation is not defined
apply_now.php:383Uncaught ReferenceError: flashConfigLocation is not defined
apply_now.php:597Uncaught TypeError: Cannot call method 'init' of undefined
于 2011-11-17T15:58:57.997 回答