kaitco
09-26-2008, 12:11 AM
I am working with this script: http://www.doriennesmith.com/peace/mazesmith.js on this page: http://www.doriennesmith.com/peace/maze.html.
The problem I have is that when one initially visits the page, the text outside of the "config" box appears as the colour set by the CSS. However, once the user chooses the "New Maze" option, the same exact text (supposedly using the same code and CSS to populate and style) reverts to black and will stay black even if the user goes back to the "config" box. If the page is refreshed, however, the text becomes the styled colour again, only to repeat the same problem.
I have been perusing the script all day and, while I have little knowledge of javascript, I know enough to tell where the script will load text and that in between a <style> tag in the code, I can edit the CSS accordingly. That said, I cannot understand the where the problem may lie. I know this is not simply an instance of changing the style of the page by itself because the script loads all of the text on the page, so I know somewhere in the script is the answer, I simply cannot find it.
I know this may be asking a lot, but could anyone help me out with this?
Many thanks!
The problem I have is that when one initially visits the page, the text outside of the "config" box appears as the colour set by the CSS. However, once the user chooses the "New Maze" option, the same exact text (supposedly using the same code and CSS to populate and style) reverts to black and will stay black even if the user goes back to the "config" box. If the page is refreshed, however, the text becomes the styled colour again, only to repeat the same problem.
I have been perusing the script all day and, while I have little knowledge of javascript, I know enough to tell where the script will load text and that in between a <style> tag in the code, I can edit the CSS accordingly. That said, I cannot understand the where the problem may lie. I know this is not simply an instance of changing the style of the page by itself because the script loads all of the text on the page, so I know somewhere in the script is the answer, I simply cannot find it.
I know this may be asking a lot, but could anyone help me out with this?
Many thanks!