Styles:
Code:
<style>
.menu_item {position: relative; font-family: arial; font-size: 14px; color: white; width: 170px; border: 1px solid gray; display: inline-block; background: darkred}
.menu_item:hover{background: yellow; color: black; cursor: pointer}
</style>
Script:
Code:
<script>
var my_menu=
'<div style="position: fixed; text-align: center; right: 275px; top: 175px; height:0px">'+
'<a style="background: lightblue; border: 1px solid gray">Menu</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com\'" style="background: green">Dynamic Drive</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com/new.htm\'">What\'s New?</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com/hot.htm\'">What\'s Hot?</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.codingforums.com/\'">Message Forum</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com/faqs.htm\'">FAQs</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com/link.htm\'">Link to us</a><br>'+
'<a class="menu_item" onclick="location.href=\'http://www.dynamicdrive.com/contact.htm\'">Email us</a><br>'+
'<a class="menu_item" href="javascript:;" id="playlist-setPlaylist-heavy">Heavy Metal</a><br>'+
'</div>'
document.write(my_menu) //document.write is outdated, but will do in this case.
</script>
The default background is darkred (see styles). You can change that of course. You can change the background for each individual item by doing something similar to what I've done for the DynamicDrive link (style=...)..
Refresh code:
Just above this:
Code:
<div class="jp-current-time">00:00</div>
add this:
Code:
<div style="text-align: center; font-size: 11px; font-weight: bold">Click <a style="color: gray" href="javascript: void(0)" onclick="window.location.reload()">here</a> to start all over</div>
I'm glad to help you. To thank me, just login then click on the thanks-button at the bottom (left). No bucks.
Bookmarks