こいつらを助けて、
ここに、body タグに ID を追加するスクリプトがあります
これが私が見た結果です
<body id="xxx-cat">
以下で使用しているスクリプトで
<script>
$(document).ready(function(){
// Edit xxx-cat to match desired category link id:
$('body').attr("id","xxx-cat");
if ($('body[id]')) {
var bid = $("body").attr("id");
// Keep the next command on one line
$('div.droplinebar li a[class='+bid+']').addClass('current');
}
})
</script>
4ページがあり、次のようにしたいので、ID(1,2,3,4)を作成するにはどうすればよいですか
<body id="1"> for the home page
<body id="2"> for the about
<body id="3"> for the clients
<body id="4"> for the contact
ところで、これは tumblr のカスタム ページです。ここでは PHP を使用できません。