実行結果
設置サンプルのソース
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<title>設置サンプル</title>
<link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
<!-- JS -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" ></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.illuminate.0.7.js" ></script>
<script type="text/javascript">
$(function(){
$('#email').illuminate({'outerGlowSize': '10px'});
$('#btn_login').illuminate({'outerGlowSize': '10px',"outerGlowColor":"#ffffff"});
var defaultvalue="メールアドレス";
$("#email").bind("click",function(){
if($(this).val()==defaultvalue){
$(this).val("");
}else{
}
}).bind("blur",function(){
if($(this).val()==""){
$(this).val(defaultvalue);
}
});
});
</script>
<!-- CSS -->
<link href="/content/lib/jquery/galleria.css" rel="stylesheet" type="text/css">
<style media="screen,projection" type="text/css">
#demo {
background:#333;
padding:20px;
color:#fff;
width:400px;
}
input,span { -webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px; }
input#email { padding:5px; border:1px solid #ccc!important; }
input#btn_login { padding:5px 10px; border:0; background:darkorange; color:#fff; font-weight:bold; }
</style>
<link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
<body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
<div id="wrap">
<h1>設置サンプル</h1>
<p>参照:<a href='http://www.tonylea.com/2011/jquery-illuminate/'>jQuery illuminate</a></p>
<p>input要素をグロー表示。</p>
<!-- CODE -->
<div id="demo">
<form>
<label for="email">RSSをメール送信: <input id="email" name="email" type="text" value="メールアドレス" /></label>
<input id="btn_login" name="btn_login" type="button" value="登録" />
</form>
</div>
<!-- / CODE -->
</div>
</body>
</html>