1
mnmike
Java Script Not Working
  • 2007/5/18 20:38

  • mnmike

  • Just popping in

  • Posts: 31

  • Since: 2006/9/21


I put up a java script navigational menu in my header. It works fine on the index page and all pages unless its is a module. All module pages the drop down is not working and the drop down icons are missing. Can someone shed some light on this?

THIS IS THE SITE

2
mnmike
Re: Java Script Not Working
  • 2007/5/18 21:30

  • mnmike

  • Just popping in

  • Posts: 31

  • Since: 2006/9/21


I'll make a donation to the XOOPS site if someone can help.

3
JMorris
Re: Java Script Not Working
  • 2007/5/18 21:34

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Part of the problem is that you are using relative URLs. Try replacing src="images/menu_m1iad.gif" with src="<{$xoops_url}>/images/menu_m1iad.gif" in theme.html.

You will need to do the same for any part of the script that is calling relative URLs.

HTH.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
mnmike
Re: Java Script Not Working
  • 2007/5/18 21:52

  • mnmike

  • Just popping in

  • Posts: 31

  • Since: 2006/9/21


I'm closer but not quite there. Can someone look again and point me a little farther along.

5
JMorris
Re: Java Script Not Working
  • 2007/5/18 21:54

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Change

<script language="javascript" src="Config.js">script>
<
script language="javascript" src="Menu.js">script>
<
script language="JavaScript1.2" src="/menu.js">script>
<
script language="JavaScript1.2" src="/cdm_all.js">script>


To

<script language="javascript" src="<{$xoops_url}>/Config.js">script>
<
script language="javascript" src="<{$xoops_url}>/Menu.js">script>
<
script language="JavaScript1.2" src="<{$xoops_url}>/menu.js">script>
<
script language="JavaScript1.2" src="<{$xoops_url}>/cdm_all.js">script>


HTH
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

6
mnmike
Re: Java Script Not Working
  • 2007/5/18 22:03

  • mnmike

  • Just popping in

  • Posts: 31

  • Since: 2006/9/21


Ok, I just did that. Still not working in the modules.

7
mnmike
Re: Java Script Not Working
  • 2007/5/18 22:05

  • mnmike

  • Just popping in

  • Posts: 31

  • Since: 2006/9/21


I got it working now. Thanks for the help!

Login

Who's Online

332 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits