HTML/JS

Items 21 to 30 of 66 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Ascending Direction
  1. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 12 Case 2 The VoterWeb

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 12 Case 2 The VoterWeb

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 12 Case 2 The VoterWeb


    VoterWeb is an online source for election news and results from national. state, and local races. Faye Summerall is one manager of the Web site development team. Faye wants to add horizontal bar charts to Web pages displaying election results. The length of each bar should correspond to the percentage of votes that a candidate receives in a given race. She has asked you to develop a JavaScript program that automatically writes the bar chat. Figure 12-37 shows a preview of the Web page for a series of Congressional races.


    The horizontal bar charts will be created within table rows. The length of each bar will be determined by the number of blank table cells it contains. For example, to display a horizontal bar representing 45% of the vote, you'll write 45 blank table cells. The color of each bar is determined by the background color of its table cells. To apply the background color, you'll add class attributes to the blank table cells. A style rule in the results. css style sheet will determine the background color for each class of table cells.
    The data for each election has been stored in arrays in an external file named votes.js. The file includes data from five elections for different Congressional seats. The names of the races have been stored in an array named race. The name1 array contains the candidate names for the first race, thename2 array contains the candidate names for the second race, and so on through the name5array. The party affiliations for the candidates in the first race have been stored in theparty1 array, for the second race in the party2 array, and so forth. The votes1 through votes5 arrays store the votes for each candidate in each of the five races.


    Complete the following:
    1. Using your text editor, open electtxt.htm and bartxt.js from the tutorial.12\case2 folder, enter your name and the datein the head section, and then save the files as election.htm and barchart.js, respectively.


    2. Open the votes.js ile from the tutorial.12\case2 folder in your text editor, study the file to become familiar with the different arrays and their contents, and then close the file. Return to theelection.htmfile in your text editor, and then add two script elements to the head section of the file pointing to thebarchart.js and votes.jsfiles. Save your changes to the document.


    3. Go to the barchart.jsfile in your text editor. Insert a function namedtotalvotes(). The purpose of this function is to calculate the sum of all the values within an array. The function has a single parameter, votes, representing one of the five vote arrays (vote1 through vote5). Add the following commands to the function:
    a. Declare a variable named total, setting its initial value to 0.
    b. Create a for loop that loops through each of the items in the votes array, adding that item's value to the total variable.
    c. After the for loop is completed, return the value of the total variable from the function.

    4. Insert another function named calcPercent(). The purpose of this function is to calculate a percentage, rounded to the nearest integer. The function has two parameters: item and sum. Have the function return the value of the item parameter divided by sum, multiplied by 100, and then rounded to the nearest integer. (Hint: Use the Math.round() method to round the calculated percentage.)


    5. Insert a function named createbar(). The purpose of this function is to write the blank table cells that make up each horizontal bar in the election results. The function has two parameters: partytype and percent. The partyType parameter will be used to store the party affiliation of the candidate (D, R, I, G, or L). The percent parameter will be used to store the percentage the candidate received in the election, rounded to the nearest integer. Add the following commands to the function:
    a. Create a switch statement that tests the value of the partyType parameter. If partyType equals D, store the following text string in a variable named bartext: <td class='dem'> </td> If partyType equals R, barText should equal the following: <td class='rep'> </td> If partyType equals I, barText should equal the following: <td class='ind'> </td>
    If partyType equals G, barText should equal the following: <td class='green'> </td> Finally, if partyType equals L, barText should equal the following: <td class='lib'> </td> Be sure to add a break statement after each case statement so browsers do not attempt to test additional cases after finding a match.
    b. Create a for loop in which the counter variable goes from 1 up through the value of the percent parameter in increments of 1. At each iteration, write the value of the barText variable to the Web document.


    6. Insert a function named showresults(). The purpose of this function is to show the results of a particular race. The function has four parameters: race, name, party, and votes. The race parameter will contain the name of the race. The name parameter will contain the array of candidate names. The party parameter will contain the array of party affiliations. Finally, thevotes parameter will contain the array of votes for each candidate in the race. Add the following commands to the function:
    a. Declare a variable named totalv equal to the value returned by the totalVotes() function using votes as the parameter value.
    b. Write the HTML code <h2>race</h2> <table> <tr> <th>Candidate</th> <th class='num'>Votes</th> <th class='num'>%</th> </tr> to the document, where race is the value of the race parameter.


    7. Next, within the showResults() function, add a for loop in which the counter variable starts at 0 and, while the counter is less than the length of the name array, increase the counter in increments of 1. At each iteration of the for loop, run the commands outlined in the following five steps:
    a. Write the HTML code <tr> <td>name (party)</td> <td class='num'>votes</td> where name, party, and votes are the entries in the name, party, and votes arrays, respectively, for the index indicated by the counter variable.
    b. Create a variable named percent equal to the value returned by the calcPercent() function. Use the current value from the votes array for the value of the item parameter, and use the value from totalV for the value of the sum parameter.
    c. Write the HTML code <td class='num'>(percent%)</td> where percent is the value of the percent variable.
    d. Call the createBar() function using the current value of the party array and percent as the parameter values.
    e. Write a closing </tr> tag to the document.


    8. After the for loop has completed within the showResults() function, write a closing </table> tag to the document.


    9. Write comments throughout your code to document your work.


    10. Save your changes to the file, and then return to theelection.htmfile in your text editor. Scroll down the document. After the Congressional Races h1 heading, insert a script element containing the following commands:
    a. Call the showresults() function using race[0], name1, party1, and votes1 as the parameter values.
    b. Repeat the previous command for the remaining four races, using race[1] through race[4] as the parameter values for the race parameter, party2 through party5 for the party parameter, name2 through name5 for the name parameter, and votes2 through votes5 for the votes parameter.


    11. Save your changes to the file, and then openelection.htm in your Web browser. Verify that the correct percentage appears for each candidate, and that a horizontal bar chart representing the percent value is displayed next to each candidate.


    12. Submit your completed Web site to your instructor, in either printed or electronic form, as requested.

    Learn More
  2. CIS363A Week 3 iLab 3 Create a Web Page Using CSS

    CIS363A Week 3 iLab 3 Create a Web Page Using CSS

    Regular Price: $20.00

    Special Price: $15.00

    CIS363A Week 3 iLab 3 Create a Web Page Using CSS


    A local recruiter wants you to make a Web page for his information technology staffing company. He wants a Web page that has informed recent graduates about careers as Web programmers and Web designers. Create a Web page that will give information about each of the positions mentioned. The page content should be as followed:
    Descriptions about each of the positions
    Skills and/or education required for these positions
    Salaries, benefits associated with these positions
    Professional organizations of which people who hold these positions are typical members


    This page must have at least five graphical elements. You must implement the following CSS features:
    Box Model
    Floating Elements
    Borders
    Remember that the recruiter wants this page to be well organized, informative, and attractive. Use colors and great graphics to make this Web page interesting so that he can attract more business.


    Software Citation Requirements
    This course uses open-source software which must be cited when used for any student work. Citation requirements are on the Open Source Applications page.
    Please review the installation instruction files to complete your assignment


    Deliverables
    Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions. (See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)
    Submit a Week 3 Lab folder, including
    The HTML Web page
    Associated CSS files
    Images and multimedia (if any)


    Category Points
    Use of Box Model, bordering, and floating elements 15
    Completed Web page based on project specifications 15
    Correct External CSS file that attaches to each page 10
    Total 40


    Required Software
    Software Name 1
    Access the software at https://lab.devry.edu.
    Steps: 1, 2, and 3
    Software Name 2
    Access the software at https://devrydesktop.rkon.com.
    Steps: 4 and 5


    Lab Steps
    STEP 1: Gather Web Content
    Create written Web content about each of the positions.
    Gather all images that you will use.


    STEP 2: Create Your Web Page
    Create an informal page layout for the Web page.
    Create the Web page based on criteria mentioned.


    STEP 3: Submit Your Assignment
    Upon completion of this step, upload your site to the Web server and attach a copy of the zipped folder to the Dropbox.
    Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions.

    Learn More
  3. IT 270 HTML Form Module 6 Assignment

    IT 270 HTML Form Module 6 Assignment

    Regular Price: $20.00

    Special Price: $15.00

    IT 270 HTML Form Module 6 Assignment


    In this assignment you need to create an HTML page that meets the following requirements. The theme and content of the page can be of your choice. (Refer to Tutorial 13)


    1. Create an HTML form.
    2. Create and Initialize three arrays.
    3. Use for-loops to populate those arrays.
    4. Add an element to the end of one array.
    5. Remove an element from the end of another array.
    6. Add a new element to the beginning of one array.
    7. Add at least one additional array method of your choice.
    8. Convert an array to a string.
    9. Use the converted string, assign to a string variable, and use it to populate a form field.
    10. Create different functions to handle the operations of steps 4, 5, 6, and 7. (You can create additional array methods.)
    11. Create four or more buttons on the form with different event handlers to start the above functions upon clicking them.
    12. Create an additional button with an event handler to complete the operation in step 10.
    For additional details, refer to the IT 270 Assignments Rubric document in the Assignment Guidelines and Rubrics section of the course.



    Critical Elements Exemplary Proficient Needs Improvement Not Evident Value
    Design
    The design is clean and professional looking and has a high level of creativity.
    (27-30) Most of the design is clean and professional looking and has a moderate level of creativity.
    (24-26) The design is adequate but shows little creativity.
    (21-23) The design is poor and shows no creativity.
    (0-20) 30
    Integration and Application All relevant course and module concepts are correctly applied where required.
    (54-60) Most of the relevant course and module concepts are correctly applied where required.
    (48-53) Some of the relevant course and module concepts are correctly applied where required.
    (44-47) Does not correctly apply any of the course or module concepts where required.
    (0-43) 60
    Writing Mechanics No errors related to organization, grammar and style, and citations
    (9-10) Minor errors related to organization, grammar and style, and citations
    (8) Some errors related to organization, grammar and style, and citations
    (7) Major errors related to organization, grammar and style, and citations


    (0-6) 10
    Earned Total
    Comments: 100%

    Learn More
  4. IT 270 HTML5 Multimedia Assignmemt

    IT 270 HTML5 Multimedia Assignment

    Regular Price: $20.00

    Special Price: $15.00

    IT 270 HTML5 Multimedia Assignment


    Create an HTML webpage that meets the following requirements. The theme and content of the page can be of your choice.
    Use and integrate at least two different audio formats (sound clips).
    Use and integrate at least two different video formats (YouTube videos, Flash players, etc).
    Embed at least one Java applet.
    Use CSS3 to display and rotate an object on your page.

    Learn More
  5. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 3 Kiddergarden

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 3 Kiddergarden

    Regular Price: $20.00

    Special Price: $15.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 3 Kiddergarden


    Kiddergarden Pete Burnham manages the Web site kiddergarden, a family-friendly site containing games, puzzles, stories, and other activities. Pete has asked for your help in developing a Web page containing a number guessing game.
    Pete needs you to create a script that generates a random integer between 1 and 500. A user has up to 10 guesses to guess the number. After each guess, the page will tell the user whether his or her guess is too high, too low, or exactly correct. A preview of the page is shown in the Figure 11-40.


    You will be provided with a function named checkEndGame() that displays an alert box telling the user whether he or she has won the game by guessing the number within the allotted number of guesses, or has a lost by failing to guess the correct number. The rest of the code is left for you to complete.


    Complete the following:
    1. Use your text editor to open the guesstxt.htm file from the tutorial.11\case3 folder included with your Data Files. Enter your name and the date in the comment section of the file and save it as guess.htm. Take some time to study the content and structure of the document, including the elements within the guessform web form.


    2. Within the script element, declare the following four global variables: lowest, size, randNum, and guess. The lowest variable will be used to store the lowest possible random integer in the guessing game. The size variable will store the number of random integers in the game. The randNum variable will store the random number generated by the Web page. The guess variable will store the users current guess. Set the initial values of the lowest and size variable to 1 and 500, respectively. Do not set the initial values for the randNum and guess variables.


    3. Below the four variable declarations you just created, insert the generateRandom() function. The function, will be used to generate a random number, has no parameters. It should contain a single statement to set the value of randNum variable to a random integer between the values of the lowest and size variables. (Hint: Use the code describing how to generate random integers presented in the tutorial to aid you in writing this function.)


    4. Insert a function named reportResult() that display the result of each guess. The function has no parameters and should include the following commands:
    a. Set the value of the guess variable to the value of the guess field in the guessform Web form. Use the eval() method to convert the text in the field to a numeric field.
    b. Declare a variable named result that will contain the result of the users guess. Use nested conditional operator to set the value of result to the text right! if guess equals randNum; if guess is greater than randNum, set the value of result to the text string too high; otherwise, set the value result to the text string too low.
    c. Reduce the value of the guesses field in the guessform Web form by 1 to indicate that the user has one fewer guess left.
    d. Set the value of result field in the guessform Web form to the value of the result variable.
    e. Call the checkEndGame()function to test whether the game has been concluded by the user.


    5. Create a function named resetGame(). The purpose of this function is to reset the game with a new random number and a new set of guesses. The function has no parameters and should include the following commands:
    a. Set the value of the guesses field in the guessform Web form to 10.
    b. Set the value of the guess field in the guessform Web form to an empty text string ("").
    c. Set the value of the result field to an empty text string ("").
    d. Call the generateRandom() function.


    6. Add an onload event handler to the <body> tag to run the generateRandom() function when the browser initially loads the page.


    7. Add an onclick event handler to the input element for the guess button to run the reportResult() function when the button is clicked.


    8. Add an onclick event handler to the Play Again button to run the resetGame() function when the button is clicked.


    9. Save your changes to the file, and then load the guess.htm in your Web browser. Verify that the page generates a random number, and that it reports whether your guess is too high, too low, or correct when you enter a number in a guess field and click the Guess button. Further verify that the number of guesses remaining counts down by 1 starting from 10 and going to 0.


    10. Submit your completed project to your instructor, in either printed or electronic form, as requested.

    Learn More
  6. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 2 The Math Table

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 2 The Math Table

    Regular Price: $20.00

    Special Price: $15.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 11 Case 2 The Math Table


    The Math Table Theresa Kaine runs The Math Table, a Web site containing math resourses for homeschooling families and educators. She wants to add an online calculator to the site and has asked for your help in designing a simple prototype. Theresa already has designed the Web page and would like you to write the JavaScript code to make the calculator work. A preview of Theresa's sample Web page is shown in Figure 11-39.
    The calculator is actually a Web table using CSS styles to give it the appearance of a calculator. Each calculator button is a form button and the calculator screen is a textarea element. When a user clicks a calculator button, the number or symbol represented by the button should be appended to the text on the calculator screen.
    When the user clicks the equal button( = ), the calculator should evaluate the expression and display the calculated value. When the user clicks the Clear button, the text in the calculator screen should be replaced with an empty text string. Finally, when the user clicks the backspace button(<-), the browser should remove the last character on the calculator screen. To aid you in programming the backspace key, Theresa has provided a function named erase(). You will create all of the other JavaScript functions yourself.


    Complete the following:

    1. Use your text editor to open the calctxt.htm file from the tutorial.11\case2 folder included with your Data Files. Enter your name and the date in the comment section of the file. Save the file as calculator.htm in the same folder.
    2. In your text editor, scroll down to the Web table elements and locate the input elements for the 0 through 9 buttons; the /, *, -, and + buttons; the (and) buttons; and the . button. For each of those 17 buttons, and an onclick attribute to run the statement
    calcPress('value')
    where value is the number or character displayed on the button.
    3. Locate the input element for the Clear button and add an onclick attribute to run the clearWin() function when the button is clicked.
    4. Locate the input element for the backspace button (<-) and add an onclick attribute to run the erase() function when the button is clicked.
    5. Add an onclick attribute to the equal button (=) to run the calcExpression() function when the button is clicked.
    6. Scroll to the top of the file and add the calcPress() function to the embedded script element. The purpose of this function is to append a symbol to the text displayed in the calculator screen. The calcPress() function should include the following:
    a. A single parameter named symbol
    b. A command that uses the += operator to add the value of the symbol parameter to the value of the calcwindow field within the calculator form
    7. Create a function named calcExpression(). The purpose of this function is to append the calculated value to the expression displayed on the calculator screen. The function has no parameters. Add the following commands:
    a. Declare a variable named cString that is equal to the text contained in the calcwindow field of the calculator form.
    b. Use the eval() method to store the numeric value of cString in a variabe named cValue.
    c. Change the text string value of the calcwindw field from the calculator form to
    cString = cValue
    where cString is the value of the cString variable and cValue is the value of the cValue variable.
    8. Create a function named clearWinn(). The purpose of this function is to erase the contents of the calculator screen. The function has no parameters but should have a single command that changes the value of the calcwindow field in the calculator field in the calculator to an empty text string ("").
    9. Save your changes to the files.
    10. Open the calculator.htm file in your Web browser. Click the different calculator buttons and verify that you can enter a mathematical expression into the calculator. Click the backspace button (<-) and verify that you can erase the last character from the screen Click the equal button (=) and verify that the calculator adds the calculated numeric value to the expression. Finally, click the Clear button and verify that all of the text is removed from the calculator screen.
    11. Submit your completed project to your instructor, in either printed or electronic form, as requested.

    Learn More
  7. ITCO381 Unit 1 IP assignment

    ITCO381 Unit 1 IP assignment

    Regular Price: $20.00

    Special Price: $15.00

    ITCO381 Unit 1 IP assignment


    In an era where Web sites are highly dynamic, interactive, and database dependent, a static Web page consisting of only HTML may seem archaic. However, Web developers must begin somewhere and a good understanding of the language of the Web (HTML) is the right place to start. You have decided to develop a static Web page that contains valid HTML as the newsletter for an organization that interests you.


    Create a static Web page that includes the basic structure of a valid HTML (not XHTML) document. Make sure to include the language attribute of the html element and the character set attribute of the metadata element. You may want to save this basic document as the starting structure for development of all static Web pages.
    Continue to structure the newsletter using the HTML semantic elements
    header
    section
    footer
    Within the structure of the newsletter add other HTML elements including at least one:
    heading
    paragraph
    image that implements accessibility guidelines
    navigation that includes a
    list of at least
    four links that
    navigate to actual Web pages and
    implement accessibility guidelines
    Use of any inline elements should follow current standards
    No style should be applied
    Validate the finished web page.
    Zip (compress) the into a .zip file.
    Please submit your assignment.


    Grading
    You will be graded on the content, structure, and validity of your final HTML page.

    Learn More
  8. New Perspectives on HTML and CSS Edition 6 Tutorial 7 Case Problem 3 Franklin High School

    New Perspectives on HTML and CSS Edition 6 Tutorial 7 Case Problem 3 Franklin High School

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML and CSS Edition 6 Tutorial 7 Case Problem 3 Franklin High School


    Franklin High School Fractals are geometric objects that closely model the seemingly chaotic world of nature. Doug Hefstadt, a mathematics teacher at Franklin High School in Lake Forest, Illinois, has just begun a unit on fractals for his senior math class. He's used the topic of fractals to construct a Web page to be placed on the school network, and he needs your help to complete the Web page. He has a video clip of a fractal that he wants placed in the Web page, along with a Java applet that allows students to interactively explore the Mandelbrot Set, a type of fractal object. He wants our assistance with putting these two objects in his Web page. A preview of the page you'll create is shown in Figure 7-47.


    Complete the following:
    1. Use your text editor to open the fractaltxt.htm file from the tutorial.07\case3 folder included with your Data Files. Enter your name and the date in the comment section of the file. Save the file as fractal.htm in the same folder.
    2. Scroll down to the figure element. Directly above the figure caption, insert a video element. Set the width and height of the video to 320 pixels by 260 pixels. Add attributes to display the zoom.png file as a poster image for the video, and have the video automatically loop back to the beginning when played. Display the mandel.mp4 and mandel.webm Video files in the player. Display the video controls in the player.
    3. Within the video element, nest an object element displaying the mandel.swf Flash player. Add an attribute and a parameter to loop the player back to the beginning when played.
    4. If the browser does not support flash player, display a message telling the user that he or she must have the Shockwave player. Include a link too the Website where the user can download the player.
    5. Scroll down to the article element, Within the paragraph in this element, insert an object element containing the Java applet for the Mandel.class file; set the width of the Java window to 280 pixels and height to 240 pixels.
    6. If your browser does not support Java, have it display the text Your browser does not support Java applets in place of the Mandel.class applet.
    7. Save your changes to the file.
    8. Open the Web page in an HTML5-enabled browser and verify the video plays correctly.
    9. Open the Web page in a browser that does not support HTML5 but support Flash, and verify that you can play the Flash video. If the browser does not support HTML5 and Flash, verify that the browser displays a message indicating that the user should install Flash. Re-enable Flash if you disabled it.
    10. Test the fractal applet to verify that you can use it to zoom into the Mandelbrot Set at different levels of magnification.
    11. Disable Java support and verify that the browser displays a message indicating that you should install Java. Re-enable Java support in the browser.
    12. Submit your completed files to your instructor, in either printed or electronic form, as requested.

    Learn More
  9. CIS363A Week 3 iLab 3 Create a Web Page Using CSS in Dreamweaver

    CIS363A Week 3 iLab 3 Create a Web Page Using CSS in Dreamweaver

    Regular Price: $12.00

    Special Price: $10.00

    CIS363A Week 3 iLab 3 Create a Web Page Using CSS in Dreamweaver


    iLAB OVERVIEW
    Scenario and Summary
    Create an index.html file and create an external CSS file based on the specifications given in the assignment.
    You will need to create an internal and external CSS.
    You will also need to attach an external CSS file to the original page.


    Deliverables
    index.html with attached external CSS sheet
    style.css file


    iLAB STEPS
    Lab Preparation
    Download the lab3Content.docx document found in Doc Sharing.


    Part A: Create HTML and CSS Files (3 Points)
    Step 1: Create a New HTML File (1 point)
    Open Dreamweaver and create a new HTML page.
    Enter index.html as the web page name.


    Step 2: Copy Content From the Word Document (1 point)
    Open the lab3Content document found in Doc Sharing.
    Paste the content into the index.html page.


    Step 3: Create a CSS File (1 point)
    Create a new CSS page.
    Save the file and name it styles.css.
    Note: If your styles.css file does not show when needed in the remaining steps, then click on the attach stylesheet icon, select browse, locate the styles.css file, and then click OK. (The styles.css will automatically be linked to the index.html file in the head section of the code.)


    Part B: Internal CSS (22 Points)
    Step 1: Create an Internal CSS (10 points)
    Go to the index.html file and create an internal CSS for the following properties. Use the Page Properties option in the Properties Panel.
    Background color for the body A light tan: #FC6
    Font color for all text in the body A dark blue: #039
    Font for all text in the body Comic Sans MS
    Font size for all the text in the body Body: 14 points
    Link color for all links Dark red: #CC0000
    Visited link color for all links Dark red: #CC0000
    Rollover link color for all links Dark green: #060
    Active link color for all links Dark red: #CC0000
    No link should be underlined for all links Never underline


    Step 2: Apply Internal CSS (12 points)
    Your index.html page should reflect the styles from above.
    Go back to Page Properties if the page did not update with your internal CSS.


    Part C: Tag CSS (22 Points)
    Step 1: Create Tag CSS (10 Points)
    For all of the following tags, create the CSS rule from the descriptions below.
    Hint: To create a CSS, you need to click on the New CSS Rule in the CSS panel on the right-hand side. Watch Adobe TV on best practices for creating a style sheet. You will need to enter Style Sheets or CSS in the Adobe TV searchbox (http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7e32a.html).
    H2 Text color: #333, bold
    H3 Background color: #39f
    Border on the bottom with the following rules
    Width: thin
    Style: solid
    Color: #003
    Centered text
    Margin on all sides: 35 pixels
    p Font: Georgia
    Text color: #030
    Padding of 15 pixels on all sides
    li Font family: Arial
    Background color: gray
    Text color:black, bold
    Text size: 18 points


    Step 2: Apply Tag CSS (12 points)
    Apply the new tag CSS to the content on the page.


    Part D: Class CSS (23 Points)
    Step 1: Create a Class CSS (10 points)
    Create a new CSS rule using a class CSS. You will need to select the option to include the class CSS to the styles.css file.


    Navtable: This class will be applied to a navigation table. Font family: Times Roman
    Background color: #0ff
    Text color: bold, center


    example1:This class will be applied to Example 1.
    Background color: #699
    Text color: #033, bold
    Text size: 10 points
    Margin on all sides: 25 pixels
    Padding on all sides: 25 pixels


    example2:This class will be applied to Example 2.
    Background color: #66c
    Border on all sides with the following rules
    Width: 10px
    Style: solid
    Color: #06c
    Text size: 10 pixels
    Text color: #ccc


    header:This class will be applied to the heading "IEBGENER STUDY GUIDE."
    Font family: Arial
    Background color: #6ff
    Text color: 030
    Text size: 36 points
    Margin on all sides: 50 pixels
    Padding on all sides: 50 pixels


    Step 2: Apply the Class CSS (12 points)
    Apply the class CSS as done in the class CSS steps above.


    Step 3: Upload Zipped File (1 point)
    Your index.html page should have all inline, tags, and class CSS applied.
    Create a folder called CIS363A_YourLastName_Lab3.
    Put copies of each required deliverable into the new folder.
    Right-click on the folder and select Send To -> Compressed (zipped) Folder. You can also use other tools to compress the files into a single zip folder (e.g., 7-zip).
    Upload the zip file to the weekly iLab Dropbox in eCollege.

    Learn More
  10. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 13 Case 1 Twin Life Magazine Large Font

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 13 Case 1 Twin Life Magazine

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 13 Case 1 Twin Life Magazine


    Twin Life Magazine Elise Howard is the editor of Twin Life, a magazine for parents of twins, triplets, and other multiple births. The magazine is upgrading its Web site and Elise has approached you to help with the website design. She would like to give readers the ability to increase or decrease the font size of the articles the magazine publishes to make the text easier to read, or to allow readers to view an entire article on the same screen. Although readers can use their Web browsers to zoom in and zoom out of the Web pages, Elise wants an app that will affect only the article text and accompanying photo, while leaving the rest of page features - the magazine logo and list of links - unaffected.
    To create this effect, her sample page has two buttons: one to increase the font size and other to decrease it. All text and page objects that are to be resized have been set using the relative em unit, while the other page text and objects that are to remain fixed in size have been set in pixels. Thus to change the size of all of the resizable objects, your code simply needs to change the default size of the document page body; all of the resizable objects will change proportionally based on the default font size. Figure 13-39 shows a preview of the article and resizing buttons that you'll work on for Twin Life.


    Complete the following:
    1. Using your text editor, open twinstxt.htm, tlmtxt.css, and fonttxt.js from the tutorial.13\case1 folder. Enter your name and the date in the head section, and then save the files as twins.htm, tlm.css, and fontsizer.js, respectively.
    2. Go to the twins.htm file in your text editor and add a script element linking to the fontsizer.js file.
    3. Scroll down the file and locate the fontbuttons div element, which contains two image buttons. Place both image buttons in the fontsizer class. Set the values associated with those buttons to -0.1 for the fontdown.png image and 0.1 for fontup.png.
    4. Save your changes to the file, and then go to the tlm.css file in your text editor.
    5. At the bottom of the file, insert a style rule to set the width of the inline image within the figure box in the article element to 12em.
    6. Add another rule to set the font size of paragraph text within the article element to 1em.
    7. Save your changes to the file, and then go to the fontsizer.js file in your text editor.
    8. Add a command to run the startup() function when the page is initially loaded by the browser.
    9. Create the startup() function. The purpose of this function is to apply onclick event handlers to the two font resize buttons. Create the fontButtons variable containing all of the page elements that belong to the fontsizer class. Loop through that collection and add an event handler to each item in the collection to run the resizeText() function when clicked.
    10. Create the resizeText() function. The purpose of this function is to change the default font size of the document body based on the value of the font button being clicked. When that value is changed, all object sizes based on em units automatically will be resized. Add the following commands to the function:
    a. Using the parseFloat() function, store the numeric value of the button being clicked in the fontChange variable.
    b. Next, you must determine whether an inline style has been used to set the default document body font size. First, test whether the font size of the document body is equal to an empty text string. If it is, set the font size to 1.0em. (Hint: Use the reference document.body to reference the document body.)
    c. Use the parseFloat() function to store the numeric value of the document body font size in the currentFontSize variable.
    d. Change the document body font size to the text string current font size + font change + "em" where current font size is the value of the currentFontSize variable and font change is the value of the fontChange variable.
    11. Document your code with appropriate comments throughout.
    12. Save your changes to the file, and then load twins.htm in your Web browser. Verify that when you click the buttons to increase or decrease the font size, the paragraph text and the size of the author’s photo change in response, but no other part of the Web page changes in size.
    13. Submit your completed files to your instructor, in either printed or electronic form, as requested.

    Learn More

Items 21 to 30 of 66 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Ascending Direction