Recent Questions Tree Menu With More Javascript Prototype
Q: I am creating my website on Frontpage. When I put my drop down menu in the centre of the page, it will be in the explorer browsers in the centre of the page, but when I look at other browers it isn't in the centre but on theright. I cant fix the problem. I cant find it.
A: Try to set exact width for the menu in "px":
var menuWidth="400px";
Q: I have been trying to get ‘Content’ in to the float tab, and I cannot find how that is done.
A: You should specify any Object ID name of the DIV.
See, for each item you should assign the ID property of the contentDIV (see data file with your menu parameters).
["Style Name","contentName", "", "", "", "", "1", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Style Description","contentDescription", "", "", "", "", "", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Style Variations","contentVariations", "", "", "", "", "", "", "", ],
["-","", "", "", "", "", "0", "", "", ],
["Empty","", "", "", "", "", "2", "", "", ],
And on your html page you should create DIV's with such ID. You canset background image for these DIV's in styles.
<div id="contentName" style="height: 0%; visibility: hidden; background-image: url('img/back.jpg'); background-repeat:repeat-y;" class="tabPage">
<p align=center><img src="img/style01_title.gif" width=140 height=90 alt="Glass Style Tabs"></p>
You should paste your content here!!!!!
</div>
<div id="contentDescription" style="height: 0%; visibility: hidden;" class="tabPage">
<p align=center><img src="img/style01_title.gif" width=140 height=90 alt="Glass Style Tabs"></p>
You should paste your description here!!!!!
</div>
Q: Hi I recently bought a menu from you - which is great.
However, i have been told that search engines will find it hard to crawl through the menu and find the other parts of my site.
Is it possible for me to create my menu to make it easier for search engines to crawl through?
A: JavaScript Tree Menu is a search engine friendly menu since v1.12.
To create a search engine friendly menu you should add additional html code within your html page:
< div id="dmlinks">
< a href="http://deluxe-menu.com"> menu_item_text1< /a>
< a href="http://deluxe-tree.com"> menu_item_text2< /a>
...etc.
< /div>
To generate such a code use Deluxe Tuner application.
You can find this GUI in the trial package.
Run Tuner, load your menu and click Tools/Generate SE-friendly Code (F3).
Q: Just wondering if you could help.I wish to put a script java menu on every page of my site - through all the folders etc.
How do I set it so that they all 'feed' from the same dmenu.js file?
How do I set the file path to that file from all pages of my website?
A: 1) How do I set it so that they all 'feed' from the same dmenu.js file?
You should use absolute path here:
1. Paste the following code into a tag of your page:
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "http://site.com/menudir/";</script>
<script type="text/javascript" src="http://site.com/menudir/dmenu.js"></script>
<!-- (c) 2009, http://deluxe-menu.com -->
2. Paste the following code where you want to have the menu:
<script type="text/javascript" src="http://site.com/menudir/data.js"></script>
2) How do I set the file path to that file from all pages of my website?
If you don't want to create your menu on each page, you can try to useframes, the menu has a cross-frame mode.
Also you can use aserver-side script (php, asp, vb, etc.) to generate html pages fromtemplates on your server.