フッターを下部にくっつけたい

footerFixed.js
http://blog.webcreativepark.net/2007/11/16-012253.html

フッターより上に、「floatしてない」実体のある要素が無いと、フッターのtopのマージン分の空白がbody上部に出るという不都合アリます。テキストでもなんでもいいんだけど。
普通に組んでれば意識されることはないだろうけど、要調査だな。

iOSとAndroidの表示振り分け

暫定。もっと綺麗に書き換えられる気もする。

<!-- 表示の出し分け --> 
<script type="text/javascript">
$(function(){
	var ua = navigator.userAgent;
	if ((/iPhone/.test(ua) || /iPad/.test(ua)) && (/OS 6/.test(ua) || /OS 7/.test(ua) || /OS 8/.test(ua))) {
		 // iOS6~8向けの処理
	} else {
		if (/Android 4/.test(ua) || /Android 5/.test(ua) || /Android 6/.test(ua)) {
			// Android4~6向けの処理
		} else {
		 // それ以外向けの処理
		}
	}
	return false;
	});
</script>

thisについていろいろ

jQueryのthisの処理がよくわからないので調べている。。。

http://mayoneco.com/blog/2011/01/jquery_parent_child/
http://blog.livedoor.jp/eeu/archives/55307897.html
http://baseviews.com/program/jquery-get-child-elements-of-this.html

イベントハンドラ指定はonとoffを使うといい

□Before
$(‘.trigger’).click(function(){…});
□After
$(‘a.trigger’).on(‘click’, function(){…});
以下にすれば昔の live と同じ挙動になる

$(document).on(‘click’, ‘a.trigger’, function(){…});

 

http://c-brains.jp/blog/wsg/11/11/08-161217.php

http://ginpen.com/2011/11/04/jquery-1-7/#post639-on

http://the-zombis.sakura.ne.jp/wp/?p=1283