2005-03-03から1日間の記事一覧

Javascriptの勉強の成果

javascript: q=location.href; p=/http:\/\/d\.hatena\.ne\.jp\/\w+/; p2=/http:\/\/(\w+\.)?g\.hatena\.ne\.jp\/\w+/; if(p.test(q)==true){ location.href='http://g.hatena.ne.jp/'+q.split("/")[3]+'/'; } else if(p2.test(q)==true){ location.href='ht…