Get in contact

rAndOm poSitiOn mENu itEms

Something I had in mind for a long time... a script that places menu-items on a random position on a page.

After researching lot's of jQuery and other scripts; none was (getting close) doing the thing I had in mind. The basic concept is in a way simple; Getting the <li> items, attach the random X- and Y- values and render them on the screen. Sounds quite easy and lots of scripts got close, but the result turned out to be a single javascript placed in the <head> and some additional CSS. Make sure that the menu (ul and li) is included between div-tags!

This example only needs one Javascript and some lines of CSS to do the job!
 

Javascript

CSS


This page was last modified on 08/04/2012 at 23:32.

Previous | Home | Next