I'm trying to get a cascading menu that will float as I scroll down the page.
Return to Recent Questions
Q:
I don't know anything about what JavaScript is all
about...and I'm currently trying to get a menu that will float as
I scroll down the page. I saw the examples you have and I'd love
to be able to do that on my website, but I don't understand the
scripting that you have written there. Like, what makes it float
from this text...
A:
If you want a floatable menu, you should set an absolute position for
the menu and paste the following code into your html page:
Paste the following code into <head> tag
<script type="text/javascript">var dmWorkPath = "data.files/";</script>
<script type="text/javascript" src="data.files/dmenu.js"></script>
Then set coordinates of top-left menu corner in the data .js file, for
example:
var absolutePos=1;
var posX=30;
var posY=110;
Then set var floatable=1.
The parameter floatable=1 makes a floatable menu.
Also you can change any of menu parameters inside data .js file.
Return to Recent Questions
|