Jump to content

cmuluna

Members
  • Posts

    6
  • Joined

  • Last visited

cmuluna's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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!
  2. 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...
  3. Blue and Dan,Thanks for your posts! Since my ultimate goal for posting in this forum is to learn, I've tried both methods so that I can learn them. Right now I'm having some problems implementing them both. I'll give you each a respective address. (Also, I've put the script into the HTML for now, so that we have to look at only one page.) I have a basic Javascript question for both of you. Do you call the script at the end of the body tag so that the script will override the CSS?Blue: http://www.interfacelanguages.com/brilli2/01.htmlRight now, the first arrow is turning black instead of the "01" turning black. Do the <li>s have something to do with that? I'm trying to not only implement a functional code, but also understand what is really going on.Dan: http://www.interfacelanguages.com/brilli/jess1.htmlAt first I didn't see any changes when I implemented your script. Then, I was wondering if the CSS gray text color was overriding the change to black. I don't know if that was a correct assessment, but when I took away the color command for "a" in the CSS, I got two different colors, as was the intent. However, the colors weren't gray and black; they are blue and purple. Additionally, while I get two different colors in the top, textual nav, I get only blue in the numbered subnav on the left. Could you take a look at the script to see if I implemented it correctly?Again, thank you both for your continued help. Forums like this greatly assist people like me, people who are trying to teach themselves new concepts.
  4. Thanks Actionsketch. Yes, my reply about the PHP would show my ignorance there, as well. Ultimately, I am looking for a way to write the nav once (so that it can be easily updated in the future) and then use Javascript or PHP or whatever to automatically change the color depending on what page the user is on. Could you show me how it would be easier in PHP?Also, I wrote some Javascript similar to what you suggested. You can view it at http://www.interfacelanguages.com/brilli/brilli_script.js. The page where I tried to import the script is http://www.interfacelanguages.com/brilli/jess1.html. I tried writing just the DOM lines (no switch statement) at first, and it didn't work then, either. I'm wondering what I'm doing incorrectly.Thanks again for your help!
  5. Blue,Thanks for your reply! Yes, I am planning on using HTML and not PHP. I understand, in theory, what that code means. However, what would I write after that code in order to color the text that I want to color? I have an extremely elementary level understanding of Javascript and HTML DOM.Thanks for the help! I appreciate it.
  6. Here are the links for this post: Prototype pageJavascript for prototype page This portfolio site that I'm making will consist of many pieces of artwork thatJess Brilli has created. We want to change the color on the navigation in thetop and left sides in order to reflect where the user is in the hierarchy.Thus, if you clicked on "stereovision" and then on "5," both "stereovision" and"5" would become darker. (See halpernphotography.com as an example). I triedwriting a switch statement and giving the page an id number. Unfortunately, though, nothing isworking right now. This is my first solo attempt at Javascript or HTML DOM, soI'm assuming that I'm just making stupid syntactical errors, or that I am justignorant of both of these concepts. Either way, can you offer suggestions onhow to get this to work? Eventually, I'm envisioning 30 or so switch statements(however many pages we end up with) to control which parts of the nav getsdarker. But for now, if I can get this one page to work, that would be great.Then I can just copy and paste, more or less.Thanks!
×
×
  • Create New...