Do My Javascript Assignment and write functions in javascript to change color
Question - In assignment 3, we are going to work with arrays and objects. information in the comment section. with id 'font'. These should have an onchange that calls the function changeColor, with one string argument, either 'background' or 'font'. The values assigned in the options in the select for the colors will be outlined in step 4. function, use an if statement to determine what the user is trying to change, and process appropriately. Inside the if statement, call a function getColor that passes a numeric value, and returns a color code. The array will need to be in a specific order that corresponds with the order of the select box you created. So, if you created the select box with options like: blue Then you will need your array to have
...Read More
'#ff0000' in array position 1, and '#0000ff' in array position 2. You'll need more than 2 colors - you should have at least 5. Give each one a unique id, but the same class name. E.G. "". Give them whatever text you want, just so they are different. Give them each a unique ID. Give them the same 'class' and inside the CSS, set the visibility:hidden; attribute for each of them. E.G.: "" Put a couple of lines of text (this can be whatever you want) inside them. NOTE: if you load the page at this point, they should NOT show up. appropriate menu item shows up in the main area. All other items should disappear. Hints: use
getElementsByTagName and look at the 'class' and 'id' attributes. You'll also need to use javascript to adjust the visibility, as well as the left and top margin positioning, to really get it to show up the right way. - Allow the user to select the background and font color - Have 5 top level horizontal menu items that are 'clickable' - When the user clicks a menu item, the content associated with that item should be displayed in the page. Any other content (besides the dropdowns) should disappear, but should be able to reappear again if the user clicks the menu item associated with them. assignment submission. ...Read Less
Solution Preview - No Preview Available. <b>Check Original File</b>
Original Question Documents
N/A
Struggling with your pending homework and want expert help? Come at AllAssignmentHelp.com to receive the complete homework help in a blink. We understand how much it is difficult for students to complete the homework on-time. Due to a hectic schedule, they fail to submit the homework with correct solutions. At allassignmenthelp.com you will get the perfect solutions for the homework of all subjects. We provide plagiarism free homework help along with the report. Get the best homework help in subjects like Mathematics, Statistics, Algebra, etc.
Found What You Need?
Scroll down to find more if you need to find our more features
Place Your Order