CSSを中心とした本の画像を使用していますが、本の向かい合う2つの「ページ」に2つのテキスト領域を列として表示する必要があります。
また、これらのテキスト領域をJavaScriptで追加して、ページの下部にある[次へ]ボタンと[戻る]ボタンで変更できるようにしたいと思います。
私はあなたが見ることができるサンプルページを持っています。
このページのHTMLは次のとおりです。
<html>
<head>
<title>BookPopUp</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=2.0)">
<link rel="stylesheet" type="text/css" href="css/popup.css" />
</head>
<body background="images/bg.jpg">
<div id="bookpop">
<span></span>
</div>
</body>
</html>
このページのCSSは次のとおりです。
/*website BookPopUp Image Center*/
#bookpop {
position: absolute;
text-align: center;
left: 50%;
top: 50%;
margin: -368.5px auto 0 -512px; /* value of top margin: height of the image divide by 2 (ie: 240 / 2), value of left margin: width of the image divide by 2 (ie: 260 / 2) */;
width: 1024px; /* same as the image width */
}
#bookpop span {
display: block;
width: 1024px;
height: 737px;
margin: 0 auto;
position: relative;
background: transparent url(../images/bookpopup.png) 0 0 no-repeat;
text-indent: -5000em;
outline: 0;
}
また、写真の近くまたは上に2つのボタンを配置したいと思います。彼らは「次へ」と「戻る」と言い、本の次のページと前のページにリンクします。
これを行う簡単な方法がある場合は、私に知らせてください。
とにかく事前に感謝します。