2012年2月21日火曜日

mawlsを準備する方法

図4-6のように、ブラウザウィンドウの背景に画像が表示されているのも見たことはありませんか? このように背景に画像を表示するにはタグではなく、別のタグを使います。

ウィンドウ全体に関わるものですから、本文の開始を指定するタグの属性として指定するのです。たとえば、リスト4-1のようにします。この9行目でタグのbackground属性に先ほどと同じsamgaetang.gifを指定しています。


誰かを奪う方法

リスト4-1 background-image.html 背景画像

  1   2   3   4   5    6 蔘鶏湯 </t itle>   7 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">   8 </head>  9 <body background="images/samgaetang.gif">  10 
<div class='singleinfo'></div>
<div style='clear: both;'></div>
<div class='similiar'>
<div class='widget-content'>
<h3>Related Posts</h3>
<div id='data2007'></div><br/><br/>
<script type='text/javascript'>
var homeUrl3 = "http://bakattackx.blogspot.com/";
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;
maxNumberOfPostsPerLabel = 100;
maxNumberOfLabels = 3;
function listEntries10(json) {
var ul = document.createElement('ul');
var maxPosts = (json.feed.entry.length <= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i < maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
alturl = entry.link[k].href;
break;
}
}
var li = document.createElement('li');
var a = document.createElement('a');
a.href = alturl;
if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
a.appendChild(txt);
li.appendChild(a);
ul.appendChild(li);
}
}
for (var l = 0; l < json.feed.link.length; l++) {
if (json.feed.link[l].rel == 'alternate') {
var raw = json.feed.link[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k<20; k++) label = label.replace("%20", " ");
var txt = document.createTextNode(label);
var h = document.createElement('b');
h.appendChild(txt);
var div1 = document.createElement('div');
div1.appendChild(h);
div1.appendChild(ul);
document.getElementById('data2007').appendChild(div1);
}
}
}
function search10(query, label) {
var script = document.createElement('script');
script.setAttribute('src', query + 'feeds/posts/default/-/'
+ label +
'?alt=json-in-script&callback=listEntries10');
script.setAttribute('type', 'text/javascript');
document.documentElement.firstChild.appendChild(script);
}
var labelArray = new Array();
var numLabel = 0;



</script>
</div>
</div>
<div style='clear: both;'></div>
</div>
<div class='post-footer'>
<div class='post-footer-line post-footer-line-1'><span class='post-author vcard'>
投稿者
<span class='fn'>Max</span>
</span>
<span class='post-timestamp'>
時刻:
<a class='timestamp-link' href='http://bakattackx.blogspot.com/2012/02/mawls.html' rel='bookmark' title='permanent link'><abbr class='published' title='2012-02-21T09:33:00+09:00'>9:33</abbr></a>
</span>
<span class='post-comment-link'>
</span>
<span class='post-icons'>
<span class='item-control blog-admin pid-1906668033'>
<a href='https://www.blogger.com/post-edit.g?blogID=4648990846491401038&postID=2081773522786512531&from=pencil' title='投稿を編集'>
<img alt='' class='icon-action' height='18' src='http://www.blogger.com/img/icon18_edit_allbkg.gif' width='18'/>
</a>
</span>
</span>
</div>
<div class='post-footer-line post-footer-line-2'><span class='post-labels'>
</span>
</div>
<div class='post-footer-line post-footer-line-3'></div>
</div>
</div>
<div class='comments' id='comments'>
<a name='comments'></a>
<h4>
0
コメント:
        
</h4>
<dl class='avatar-comment-indent' id='comments-block'>
</dl>
<p class='comment-footer'>
<div class='comment-form'>
<a name='comment-form'></a>
<h4 id='comment-post-message'>コメントを投稿</h4>
<p>
</p>
<a href='https://www.blogger.com/comment/frame/4648990846491401038?po=2081773522786512531&hl=ja' id='comment-editor-src'></a>
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'></iframe>
<!--Can't find substitution for tag [post.friendConnectJs]-->
<script src='https://www.blogger.com/static/v1/jsbin/2315299244-comment_from_post_iframe.js' type='text/javascript'></script>
<script type='text/javascript'>
      BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html', '0');
    </script>
</div>
</p>
<div id='backlinks-container'>
<div id='Blog1_backlinks-container'>
</div>
</div>
</div>
<!--Can't find substitution for tag [adEnd]-->
</div>
<div class='blog-pager' id='blog-pager'>
<span id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' href='http://bakattackx.blogspot.com/2012/02/blog-post_21.html' id='Blog1_blog-pager-newer-link' title='次の投稿'>次の投稿</a>
</span>
<span id='blog-pager-older-link'>
<a class='blog-pager-older-link' href='http://bakattackx.blogspot.com/2012/02/blog-post_9565.html' id='Blog1_blog-pager-older-link' title='前の投稿'>前の投稿</a>
</span>
<a class='home-link' href='http://bakattackx.blogspot.com/'>ホーム</a>
</div>
<div class='clear'></div>
<div class='post-feeds'>
<div class='feed-links'>
登録:
<a class='feed-link' href='http://bakattackx.blogspot.com/feeds/2081773522786512531/comments/default' target='_blank' type='application/atom+xml'>コメントの投稿 (Atom)</a>
</div>
</div>
</div></div>
</div>
</div>
<div id='sidebar2-wrapper'>
<div class='sidebar section' id='sidebar2'><div class='widget Followers' data-version='1' id='Followers1'>
<h2 class='title'>Followers</h2>
<div class='widget-content'>
<div id='Followers1-wrapper'>
<div style='margin-right:2px;'>
<div><script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
<div id="followers-iframe-container"></div>
<script type="text/javascript">
    window.followersIframe = null;
    function followersIframeOpen(url) {
      gapi.load("gapi.iframes", function() {
        if (gapi.iframes && gapi.iframes.getContext) {
          window.followersIframe = gapi.iframes.getContext().openChild({
            url: url,
            where: document.getElementById("followers-iframe-container"),
            messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
            messageHandlers: {
              '_ready': function(obj) {
                window.followersIframe.getIframeEl().height = obj.height;
              },
              'reset': function() {
                window.followersIframe.close();
                followersIframeOpen("https://www.blogger.com/followers/frame/4648990846491401038?colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByMwNjRCOEMiByMwNjRCOEMqByNGMEY2RkIyByMwNjRCOEM6ByMwNjRCOENCByMwNjRCOENKByMwNjRCOENSByMwNjRCOENaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26hl\x3dja\x26origin\x3dhttp://bakattackx.blogspot.com");
              },
              'open': function(url) {
                window.followersIframe.close();
                followersIframeOpen(url);
              },
              'blogger-ping': function() {
              }
            }
          });
        }
      });
    }
    followersIframeOpen("https://www.blogger.com/followers/frame/4648990846491401038?colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByMwNjRCOEMiByMwNjRCOEMqByNGMEY2RkIyByMwNjRCOEM6ByMwNjRCOENCByMwNjRCOENKByMwNjRCOENSByMwNjRCOENaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26hl\x3dja\x26origin\x3dhttp://bakattackx.blogspot.com");
  </script></div>
</div>
</div>
<div class='clear'></div>
</div>
</div><div class='widget Attribution' data-version='1' id='Attribution1'>
<div class='widget-content' style='text-align: center;'>
Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>.
</div>
<div class='clear'></div>
</div><div class='widget Profile' data-version='1' id='Profile1'>
<h2>About Me</h2>
<div class='widget-content'>
<dl class='profile-datablock'>
<dt class='profile-data'>Max</dt>
</dl>
<a class='profile-link' href='https://www.blogger.com/profile/18251001887004122447'>詳細プロフィールを表示</a>
<div class='clear'></div>
</div>
</div>
<div class='widget BlogArchive' data-version='1' id='BlogArchive1'>
<h2>Blog Archive</h2>
<div class='widget-content'>
<div id='ArchiveList'>
<div id='BlogArchive1_ArchiveList'>
<ul>
<li class='archivedate expanded'>
<a class='toggle' href='javascript:void(0)'>
<span class='zippy toggle-open'>

        ▼ 
      
</span>
</a>
<a class='post-count-link' href='http://bakattackx.blogspot.com/2012/'>2012</a>
<span class='post-count' dir='ltr'>(22)</span>
<ul>
<li class='archivedate collapsed'>
<a class='toggle' href='javascript:void(0)'>
<span class='zippy'>

        ► 
      
</span>
</a>
<a class='post-count-link' href='http://bakattackx.blogspot.com/2012/04/'>4月</a>
<span class='post-count' dir='ltr'>(1)</span>
</li>
</ul>
<ul>
<li class='archivedate collapsed'>
<a class='toggle' href='javascript:void(0)'>
<span class='zippy'>

        ► 
      
</span>
</a>
<a class='post-count-link' href='http://bakattackx.blogspot.com/2012/03/'>3月</a>
<span class='post-count' dir='ltr'>(12)</span>
</li>
</ul>
<ul>
<li class='archivedate expanded'>
<a class='toggle' href='javascript:void(0)'>
<span class='zippy toggle-open'>

        ▼ 
      
</span>
</a>
<a class='post-count-link' href='http://bakattackx.blogspot.com/2012/02/'>2月</a>
<span class='post-count' dir='ltr'>(9)</span>
<ul class='posts'>
<li><a href='http://bakattackx.blogspot.com/2012/02/fottball.html'>fottballフィールドのトラックの周りの距離は何ですか?</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/skateing.html'>skateingランプを作る方法</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/10.html'>トップ10はほとんどのスポーツをプレイ</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/blog-post_23.html'>ティーボールをコーチする方法</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/blog-post_21.html'>あなたのラクロススティックを文字列にする方法</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/mawls.html'>mawlsを準備する方法</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/blog-post_9565.html'>行進狂気は何ですか?</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/blog-post_19.html'>スケボーノウハウスミスグラインドを行うには</a></li>
<li><a href='http://bakattackx.blogspot.com/2012/02/blog-post.html'>芸能スポーツニューススパ : 【フィギュアスケート】世界選手権の代表選手は男子が高橋大輔&小塚崇彦&...</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class='clear'></div>
</div>
</div></div>
</div>
<!-- spacer for skins that want sidebar and main to be the same height-->
<div class='clear'> </div>
</div>
<!-- end content-wrapper -->
<div id='footer'>
<p>
2009 <a href='http://bakattackx.blogspot.com/'>notebook</a> All Rights Reserved<br/>
Free Blogger Template
	</p>
</div>
</div></div>
<!-- end outer-wrapper -->

<script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/984859869-widgets.js"></script>
<script type='text/javascript'>
window['__wavt'] = 'AOuZoY5K3DuerM80z14gCADsaOD6rMrjhA:1732333143823';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d4648990846491401038','//bakattackx.blogspot.com/2012/02/mawls.html','4648990846491401038');
_WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '4648990846491401038', 'title': 'notebook', 'url': 'http://bakattackx.blogspot.com/2012/02/mawls.html', 'canonicalUrl': 'http://bakattackx.blogspot.com/2012/02/mawls.html', 'homepageUrl': 'http://bakattackx.blogspot.com/', 'searchUrl': 'http://bakattackx.blogspot.com/search', 'canonicalHomepageUrl': 'http://bakattackx.blogspot.com/', 'blogspotFaviconUrl': 'http://bakattackx.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'ja', 'localeUnderscoreDelimited': 'ja', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22notebook - Atom\x22 href\x3d\x22http://bakattackx.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22notebook - RSS\x22 href\x3d\x22http://bakattackx.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22notebook - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/4648990846491401038/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22notebook - Atom\x22 href\x3d\x22http://bakattackx.blogspot.com/feeds/2081773522786512531/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': false, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/d78375fb222d99b3', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': '\u30ea\u30f3\u30af\u3092\u53d6\u5f97', 'key': 'link', 'shareMessage': '\u30ea\u30f3\u30af\u3092\u53d6\u5f97', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Facebook \u3067\u5171\u6709', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': '\xd7', 'key': 'twitter', 'shareMessage': '\xd7 \u3067\u5171\u6709', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Pinterest \u3067\u5171\u6709', 'target': 'pinterest'}, {'name': '\u30e1\u30fc\u30eb', 'key': 'email', 'shareMessage': '\u30e1\u30fc\u30eb', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27ja\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': '\u7d9a\u304d\u3092\u8aad\u3080', 'pageType': 'item', 'postId': '2081773522786512531', 'pageName': 'mawls\u3092\u6e96\u5099\u3059\u308b\u65b9\u6cd5', 'pageTitle': 'notebook: mawls\u3092\u6e96\u5099\u3059\u308b\u65b9\u6cd5'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': '\u7de8\u96c6', 'linkCopiedToClipboard': '\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002', 'ok': 'OK', 'postLink': '\u6295\u7a3f\u306e\u30ea\u30f3\u30af'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': '\u30ab\u30b9\u30bf\u30e0', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'mawls\u3092\u6e96\u5099\u3059\u308b\u65b9\u6cd5', 'description': '   \u56f34-6\u306e\u3088\u3046\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u80cc\u666f\u306b\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3082\u898b\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u3000\u3053\u306e\u3088\u3046\u306b\u80cc\u666f\u306b\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u306b\u306f \u30bf\u30b0\u3067\u306f\u306a\u304f\u3001\u5225\u306e\u30bf\u30b0\u3092\u4f7f\u3044\u307e\u3059\u3002    \u30a6\u30a3\u30f3\u30c9\u30a6\u5168\u4f53\u306b\u95a2\u308f\u308b\u3082\u306e\u3067\u3059\u304b\u3089\u3001\u672c\u6587\u306e\u958b\u59cb\u3092\u6307\u5b9a\u3059\u308b \u30bf\u30b0\u306e\u5c5e\u6027\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u306e\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30ea...', 'url': 'http://bakattackx.blogspot.com/2012/02/mawls.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 2081773522786512531}}]);
_WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog23', 'meta1', document.getElementById('Blog23'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/2484140117-lbx__ja.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/1964470060-lightbox_bundle.css'}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/2484140117-lbx__ja.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/1964470060-lightbox_bundle.css'}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_FollowersView', new _WidgetInfo('Followers1', 'sidebar2', document.getElementById('Followers1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'sidebar2', document.getElementById('Attribution1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_ProfileView', new _WidgetInfo('Profile1', 'sidebar2', document.getElementById('Profile1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar2', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': '\u8aad\u307f\u8fbc\u307f\u4e2d\x26hellip;'}, 'displayModeFull'));
</script>
</body>
</html>