Skip to content

Instantly share code, notes, and snippets.

@tyrkey
Created April 26, 2012 01:11
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/2494979 to your computer and use it in GitHub Desktop.
Save tyrkey/2494979 to your computer and use it in GitHub Desktop.
予備並びメニュー ロールオーバー改造用
<style>
#header-menu {
margin-left: 20px;
margin-bottom: 20px;
}
#header-menu a {
text-decoration: none !important;
font-size: 20px;
color: black !important;
}
#header-menu a:hover {
font-size: 20px;
color: green !important;
}
</style>
<script type="text/javascript">
//<![CDATA[
(function() {
function createHeaderMenu() {
var div = document.createElement('div');
div.id = 'header-menu';
div.innerHTML = '<a href="http://www.saroma3732.com/">最新のお知らせ</a> | <a href="http://goo.gl/M57JX">ダウンロード</a> | <a href="http://goo.gl/9EXIR">お問い合わせ</a> | <a href="http://goo.gl/Iwg9X">プライバシーポリシー</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