Skip to content

Instantly share code, notes, and snippets.

@tenman
Created April 13, 2010 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenman/365245 to your computer and use it in GitHub Desktop.
Save tenman/365245 to your computer and use it in GitHub Desktop.
/** move first line
* webpage
* @link http://d.hatena.ne.jp/tenman/20080124/p1
*
*
*/
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.4.2");</script>
<script type="text/javascript">
<!--
(function($){
$(function(){
$("h2,h3").each(function(i){
var num = "test" + i;
$(this).attr("id", num ).prepend('<a href="#">△</a>&nbsp;');
});
});
})(jQuery);
//-->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment