I'm trying to get a dynamic menus 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 dynamic menus that will float when
I scroll down the page. What makes dynamic menus float
from this text? 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.
A:
If you want to create a floatable menu, you should set an absolute position for
the dynamic menus and paste the following code into the <head> tag of your html page:
<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 dynamic menus corner in the data .js file, for
example:
var absolutePos=1;
var posX=30;
var posY=110;
Then you should set var floatable=1 parameter.
This parameter makes a floatable menu.
You can also change any of dynamic menus parameters inside data .js file.
Return to Recent Questions
Related:
|