Apple browser (Safari) app Combat (v)

Source: Internet
Author: User

Build your own Windows version of ibook

We rarely touched on the "Anchor" tab in the page, and now the <a> tag comes up. Enter the following code and save as an HTML file (for example: bookrack.html):



<title></title>
<meta charset= "gb2312"/>
<style type= "Text/css" >
. page {position:absolute;width:100px;height:130px;border:1px solid #ccc;d Isplay:block;}
Div:hover{background: #fdc; cursor:pointer;}
P,h2{text-align:center;}
H2{color:brown;}
a {text-decoration:none;font-size:12px;color:black;}
</style>
<script type= "Text/javascript" >
var novelstr= "<p> Text Format fiction series </p>";
var titles=novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>
novelstr+ "<p>
novelstr+ "<p>novelstr+ "<p>
novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>novelstr+ "<p>Novelstr+ "<p>novelstr+ "<p>

function Getimgtext () {
Titles=titles.split (",");
var pages=document.getelementsbyclassname ("page"), j=0;
var k=parseint (document.body.clientwidth/100), l=0;
for (Var i=0;i<pages.length;i++) {
if (i<k) {
Pages[i].style.top=0;
Pages[i].style.left= (i*100);
}
else{
if (i>=k* (j+1)) J + +;
pages[i].style.top=j*135;
pages[i].style.left= (i-k*j) *100;
}
Pages[i].innerhtml=titles[i];


}
}

</script>

<body onload= "Getimgtext ()" >
<a href= "novels/deceptpoint.html" ><div class= "page" ></div></a>
<a href= "novels/lastcoyot.html" ><div class= "page" ></div></a>
<a href= "novels/angelflight.html" ><div class= "page" ></div></a>
<a href= "novels/chasingdime.html" ><div class= "page" ></div></a>
<a href= "novels/linconlawer.html" ><div class= "page" ></div></a>
<a href= "novels/swanthief.html" ><div class= "page" ></div></a>
<a href= "novels/grapewrath.html" ><div class= "page" ></div></a>
<a href= "novels/phantoms.html" ><div class= "page" ></div></a>
<a href= "novels/janaic.html" ><div class= "page" ></div></a>
<a href= "novels/rebeeca.html" ><div class= "page" ></div></a>
<a href= "novels/davincicode.html" ><div class= "page" ></div></a>
<a href= "novels/historytime.html" ><div class= "page" ></div></a>
<a href= "novels/universe.html" ><div class= "page" ></div></a>
<a href= "novels/maughamstory.html" ><div class= "page" ></div></a>
<a href= "novels/pridec.html" ><div class= "page" ></div></a>
<a href= "novels/prideand.html" ><div class= "page" ></div></a>
<a href= "novels/lighthouse.html" ><div class= "page" ></div></a>
<a href= "novels/shoot.html" ><div class= "page" ></div></a>
<a href= "novels/coldwhisle.html" ><div class= "page" ></div></a>
<a href= "novels/farewellarms.html" ><div class= "page" ></div></a>
<a href= "novels/farewellarmsc.html" ><div class= "page" ></div></a>
<a href= "novels/wiseguy.html" ><div class= "page" ></div></a>
<a href= "novels/treason.html" ><div class= "page" ></div></a>
<a href= "novels/consent2kill.html" ><div class= "page" ></div></a>
<a href= "novels/extrememeasure.html" ><div class= "page" ></div></a>
<a href= "novels/churchill.html" ><div class= "page" ></div></a>
<a href= "novels/smallisland.html" ><div class= "page" ></div></a>
<a href= "novels/newworld.html" ><div class= "page" ></div></a>
<a href= "novels/intregulation.html" ><div class= "page" ></div></a>
</body>

Run the file to get Figure 1:


Figure 2 Running for Apple browser (Safari):


Figure 3 is a 360 speed browser (equivalent to Chrome browser)


See what the difference is?

The Apple browser has a font smoothing option (close to the tablet display), so we can create a book reader near ibooks in the Windows system:

Figure 4, Figure 5:



The effect is still close to the full. The ipad is very light to run, so the background is set to gray. If the Windows system is running, the background is changed to a brighter setting.

The following are the effects of the program in the windowsxp system and after the computer is running for Lenovo T60:

1. Select a book in the library (for example: Angel Flight) after opening:


Description: Purple Red simulated ipad sliding topic (computer with the mouse hold down drag), on the computer is not used, you can use menus, buttons and other replacement.

The previous few mentioned that the Apple browser supports local file read operation (but does not support Chinese files and paths), the equivalent of a computer to take the role of the server, in the program we can easily add a lot of features,

For example, we can easily add two learning dictionaries (Collins student example dictionary and English-Chinese dictionary) to the reader, and all the examples and words are read aloud by a real person. And it runs very smoothly.




The menu is missing, the mouse is not above the screen, move to the top of the window, you can see.

Dictionary button mouse click to change into an English-English dictionary (Collins Student Example dictionary), click the example (italic sentence will be pronounced)


Does it look like ibooks on the ipad, in the Windows system (because of the Windows version of the Safari browser) so we can create our own Wbooks reader that is close to the tablet's reading effect.

This procedure is for demonstration and learning purposes only. Uploading resources has been proven to be out of review.

The actual combat series from this to the end, began to take these books well with the Windows version of ibook began to read. The actual combat for 5 articles, the text is not many, mainly is the picture, the space is not many. Thank you!











Apple browser (Safari) app Combat (v)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.