1 / 59

Using Visual Studio 2005

Using Visual Studio 2005. Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005. Choose the type of project you are most likely to be writing. Warning to the impatient: starting Visual Studio for the first time at a particular computer can take a few minutes. File/New File.

Download Presentation

Using Visual Studio 2005

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using Visual Studio 2005

  2. Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005

  3. Choose the type of project you are most likely to be writing

  4. Warning to the impatient: starting Visual Studio for the first time at a particular computer can take a few minutes.

  5. File/New File

  6. Select the HTML Page Template and click Open

  7. File/Save HTMLPage1.htm As … (only use Save as some single files like this, never for anything more complicated)

  8. Use Save in drop-down, New Folder button (if needed) and File name TextBox to determine name and location of file.

  9. Add an HTML comment with your name. HTML comments begin with "<!--", end with "-->" and generally do not contain "--" or ">".

  10. Add a meta tag. Note the IntelliSense drop-down list of options.

  11. There is also IntelliSense for the tag attributes, choose name.

  12. Finish the meta tag. Notice the color coding brown for tag name, red for attribute name, blue for attribute value, green for comment.

  13. If one places the cursor in or between the body tags, then the document’s properties appear in the Properties Window. If the Properties Window is not present go to View/Properties Window on the menu. One can view the properties of other items by selecting them from the Properties Window’s drop-down list.

  14. Place the cursor in the BgColor TextBox, then click on the ellipsis button that appears.

  15. Use the Color Picker dialog box to select a color.

  16. Note the corresponding change in the HTML Source Code.

  17. Click on the Design tab at the bottom to get a sense of what the page will look like.

  18. Enter some instructions at the top.

  19. Click on the ellipsis that results when the cursor is placed next to Text in the document’s properties.

  20. Choose a color for the text.

  21. Note the message suggesting that what we have done is old fashioned. Let’s redo it.

  22. Click on the ellipsis button that appears when the cursor is placed next to Style.

  23. Click on Background and then ellipsis

  24. Choose color.

  25. Choose Font and then click the ellipsis button next to Color.

  26. Choose a color and click OK.

  27. Change the size of the font. If one is happy with the sample text, click OK.

  28. Delete the “old” code.

  29. Click the Save button.

  30. On the Design tab, click on Layout/Insert Table

  31. Use the Insert Table dialog to assign the table properties. Click Cell Properties.

  32. Set the Cell properties.

  33. Result in Design

  34. Result in Source.

  35. Place the cursor inside the first cell and double click on the Image button on the Toolbox. If you don’t have the Toolbox, go to View/Toolbox. To keep the Toolbox in place, click on the icon that looks like a tack (look near the top of the Toolbox).

  36. One should be able to click on the ellipsis button that appears after placing the cursor in the Src TextBox, but I had problems which I reported to IT.

  37. Go to Source and type the file name including the extension. The file should be in the same folder as Memory.htm.

  38. It’s too big, better add a width attribute.

  39. Added image attributes. <img src="Memory.gif" id="Card11" width="100" alt="memory card image"/> width: To control the size of the image. (There is also a height attribute, but if only the width is assigned, the aspect ratio of the original image will be maintained.) id: So we can distinguish one thing from another. alt: Some text in case an image cannot be found. May also be used by visually impaired users.

  40. Result in Design. Next copy image code into each cell. The ids must be changed. No two ids can be the same.

  41. Result of adding image tags to each cell.

  42. Result in Design.

  43. Adding a click event to the image tag. Now when user clicks the first image The function FlipCard11 is called. We must now define it!

  44. Start adding a script tag in the <head> region.

  45. Write an alert just to test the calling of the function.

  46. Security message about scripts

  47. Security Warning (Cont.)

  48. Result of user clicking on first image.

  49. Replace test code with more realistic code

More Related