We help IT Professionals succeed at work.
Get Started

Change value in included file

Bob Stone
Bob Stone asked
on
679 Views
Last Modified: 2012-05-10
I have a bit of script that makes a mootools based menu item stay open


<SCRIPT type="text/javascript">
     var myMenu = new ImageMenu($$('#kwick .kwick'),{openWidth:220, start:0});
</SCRIPT>

The ", start:x" bit identifies the correct tab, 0 for Home page, 1 for About Us, 2 for Portfolio page, etc.

The menu is on the head.htm that is included in every other page, I tried to move the above onto the page with the SSI but that makes it slow and causes problems.

How to I change the value of start: x from each page?
Comment
Watch Question
IT Guru
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE