Results 1 to 4 of 4

Thread: Help w/ Opencube-type menu

  1. #1
    Join Date
    Aug 2005
    Posts
    115
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Help w/ Opencube-type menu

    I am making my own website ( http://spinethetic.net.tc ) and I want to jazz my menu up a little with the type of 'follow-mouse' effect as used on the very top horizontal menu on http://www.opencube.com/ where the little green square graphic follows the mouse when it passes over the menu. Any help would be greatly appreciated

    Best Regards
    ~Spine

  2. #2
    Join Date
    Aug 2005
    Posts
    115
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    So I'am assuming either its extremely hard or maybe somebody is thinking it is considered 'plagerizing' of sorts to implement the same type of menu. If it is the latter rest assured that I will customize it enough so that it will not be nearly the same.

    Best Regards
    ~Spine

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <html>
    <head>
    <script language="javascript">
    function moveMarker() {
    marker.style.display='block'
    marker.style.left = event.clientX - 2
    }
    </script>
    <style type="text/css">
    .header {
    width:100px;
    border:1px solid black;
    border-top:none;
    text-align:center;
    font:12px arial
    }
    #marker {
    width:10px;
    font-size:3px;
    border:1px solid black;
    background:silver;
    position:absolute;
    top:15px;
    display:none
    }
    #line {
    width:500px;
    font-size:3px;
    border:1px solid black;
    background:rgb(200,220,200)
    }
    </style>
    </head>
    <body>
    <div id="marker"></div>
    <div id="line"></div>
    <span class="header" onmousemove="moveMarker()" onmouseout="marker.style.display='none'">
    Header 1
    </span>
    <span class="header" onmousemove="moveMarker()" onmouseout="marker.style.display='none'">
    Header 2
    </span>
    <span class="header" onmousemove="moveMarker()" onmouseout="marker.style.display='none'">
    Header 3
    </span>
    </body>
    </html>
    - Mike

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Sorry, but I'm not going to be able help you with the dropdown menu Hopefully that script (above) was what you were looking for
    - Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •