html5实现iphone开机界面示例代码(HTML5 achieve iPhone boot interface sample code).docVIP

  • 1
  • 0
  • 约 18页
  • 2017-08-31 发布于河南
  • 举报

html5实现iphone开机界面示例代码(HTML5 achieve iPhone boot interface sample code).doc

html5实现iphone开机界面示例代码(HTML5 achieve iPhone boot interface sample code)

html5实现iphone开机界面示例代码(HTML5 achieve iPhone boot interface sample code) HTML5 and XHTML2 HTML5 semantic, structured and standardized ? improve the design of the website and provide some suggestions Semantic B and I tags in HTML5 ? reduce memory and CPU usage by optimizing Web pages Key words: Html5 implementation iPhone boot interface sample code Think of using Html5 to copy Apples operating system and make a IOS that runs on the Web platform. Of course, to develop an operating system, so I will you work one hundred years. Today first entertainment, first make a boot interface. Pictures after completion: Worried that the picture was taken by my PS, the student could go directly to the following address test: Http:///yorhom/articles/3163078.html Because the lufylegend package is really good, this development is still done with the engine. Code is not much, interested friends can look directly at. The code in index.html: Copy code The code reads as follows: DOCTYPE html! html head meta charset= UTF-8 / titleiphone/title script src=, ./lufylegend-1.7.7.min.js, /script script src=, ./js/Main.js, /script /head body div id=, mylegend, loading... /div /body /html The code in Main.js: Copy code The code reads as follows: Init (50, mylegend, 450640, main); LGlobal.setDebug (true); Var loadData = [ {path: ./js/Shape.js, type:, JS}, {path: ./js/BootPage.js, type:, JS}, {name: wallpaper, path:, ./images/wall_paper.jpg} ]; Var datalist = {}; VaR, backLayer, iphoneLayer, screenLayer, buttonLayer; Var iosShape; Var bootPage; Function, main () { LLoadManage.load (loadData, null, gameInit); } Function gameInit (result) { Datalist = result; / / initialization layer InitLayer (); Add / / iPhone shell AddShape (); / / add boot interface AddBack (); } Function, initLayer () { Background / layer BackLayer = new, LSprite (); AddChild (backLayer); } Function, addShape () { IosShape = new, Shape (IPHONE, 400600); IosShape.x = 15; IosShape.y = 5; BackLayer.addChild (iosShape); } Function, a

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档