TAILIEUCHUNG - advanced Flex Application Development Building Rich Media X phần 10

Sau khi bảng phong cách nút gốc, , đó là nơi tôi bắt đầu xác định nội dung. Để giữ cho nó đơn giản và tương đối, tôi đang sử dụng các thẻ mà tôi sẽ nếu mã HTML. Thẻ chứa tất cả các dữ liệu mà tôi muốn xuất hiện trong của trang HTML: tiêu đề cộng với mô tả và thẻ từ khóa. | SEARCH ENGINE OPTIMIZATION FOR FLEX The preceding code is a pure XML representation of the example HTML content. First I have my XML declaration specifying my version and encoding choices. Next I load or attach an XSL style sheet to my content more on that in a minute . After the style sheet is the root node html which is where I start defining the content. To keep it simple and relative I m using the same tags that I would if coding HTML. The head tag contains all the data that I want to appear in the head of the HTML page title plus description and keywords meta tags. Following that is a series of company tags. Think of these as the HTML body. This is the data that will be rendered inside the Flex application. Now back to the style sheet. Here s the code for that xml version encoding ISO-8859-1 xsl stylesheet version xmlns xsl http 1999 XSL Transform xsl output method html version encoding UTF-8 xsl template match html head meta http-equiv Content-Type content text html charset utf-8 title Flex Directory title script type text javascript src http script script type text javascript CDAtA function writeView var so new SWFObject http fxtxsl 100 100 9 191919 scale noscale xmlurl http flexcontent logger .src script style type text css hide from ie on mac html height 100 overflow hidden flexcontent height 100 end hide body height 100 439 CHAPTER 17 margin 0 padding 0 background-color 191919 style head body scroll no onload writeView div id flexcontent div iframe id logger style visibility hidden body html xsl template xsl stylesheet This style sheet instructs browsers on how to render the XML data model. Notice the JavaScript in this XSL because that is what takes care of outputting the Flex application as well as passing in a .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.