Skip to content

Instantly share code, notes, and snippets.

@tyrkey
Created April 8, 2012 07:49
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 tyrkey/2335833 to your computer and use it in GitHub Desktop.
Save tyrkey/2335833 to your computer and use it in GitHub Desktop.
<style type="text/css">
/*<![CDATA[*/
#header-menu {
margin-left:310px;
}
#header-menu a: {
text-decoration: none;
}
#header-menu a {font-size:20px;
color: bkack;
}
#header-menu a:hover {font-size:20px;
color: green;
}
/*]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
(function() {
function createHeaderMenu() {
var div = document.createElement('div');
div.id = 'header-menu';
div.innerHTML = '<a href="#">深海魚<\/a> | <a href="#">カエル<\/a> | <a href="#">シュークリーム<\/a>'; var c = document.getElementById('wrapper');
c.parentNode.insertBefore(div, c);
}
var observer = function() {
setTimeout(function() {
if (document.getElementById('wrapper'))
createHeaderMenu();
else
observer();
}, 100);
};
observer();
})();
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment