Jump to content

switch statement and DOM


cmuluna

Recommended Posts

The page in question:http://www.interfacelanguages.com/brilli3/...ntitled_1.shtmlHi all. I'm asking for any ideas of why "painting" and "01" are staying gray instead of turning black. I wrote a switch statement and used DOM to get those two links and turn them black, but apparently what I wrote is not correct. I would like to keep with the switch statement, so if you can offer any suggestions on how to fix this approach, I will be greatful! Thanks for all your help in the past...

Link to comment
Share on other sites

MadPotato, you are AWESOME!!! Thank you! I was hoping that it was a small error, and thank you for your expertise to be able to point it out to me. It works now just as I had hoped. I wish I could buy you a beer... :-) Have a good one!

your problem is:you set page="1"and the switch is expecting a 1, whitout the "...simply change  set page = "1"to  set page = 1hope I helped  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...