Click to See Complete Forum and Search --> : integrating JavaScript Menu into html web page


aaalexan
09-11-2003, 10:56 AM
I have some problems with integrating of JavaScript Menu into html web page.

How I can't put it in the right place? No matter where in the body I put this line:
<script type="text/javascript">new COOLjsMenu("menu1",MENU_ITEMS_STYLING)</script>

the menu appears on the top of the page.

Thanks for help.

zachzach
09-12-2003, 07:23 PM
look at the menu code and look for positioning that looks like

position: absolute
or
top:3
or
left:3

delete that and wala!

please atach the code to a post and send it so i can check it and double check my theory
zach


ps: post it with the attachment and then wait until me or someone else tells you what to do

unless you finda note that says:
//this is where we position the code, if you want it to be where you put the code, delet or coimment the next line

lol
zach

aaalexan
09-13-2003, 07:01 PM
Thanks for reply zach,

No longer had I expected the answer. I took the code from http://www.scriptsearch.com/JavaScript/Scripts/Navigation (Cooljsmenu) with hope to use it without learning JavaScript. I customized the appearance very easy. However to make it practically usable one need to solve the following problems:
1. Location in the HTML page ¡V as I described in original message it is impossible to place it in the needed location in the page.
2. The Menu reacts very fast, even when you accidentally move your mouse over it. This is not critical, but would be better to have some control over the time settings.
3. In this Menu design all root and submenu elements expecting some address to be redirected (mouse pointer is a hand). It would be better to remove this feature from some root elements.

So what do you think zach, too many questionsƒº I think solving this wouldn¡¦t be difficult for real professionals. Anyway you give me a hope and I expecting your helpƒº
I¡¦m sending all files in the attachment, just put them in any folder and click on index.htm to test the menu.
I want the picture to be above the menu.

Thanks again.

p.s. By the way I posted this reply 12 hours ago but it never appears in the forum, so I¡¦m posting it second time.

aaalexan

zachzach
09-14-2003, 10:16 AM
ok acually this would have been easy for you if youd known where to look

menuitems.js


var MENU_ITEMS_STYLING =
[
{"pos":[10,10],


to:


var MENU_ITEMS_STYLING =
[
{"pos":[how far from the left,how far from the top],


by the way 60 is about one inch



and those root links...
look at the next line of code in the same file:


{code:"Home",url:"http://www.1001.com",


and all the links, styleing, color, positioning and just about everything else you could posably edit are right there

hope that helps
zach

aaalexan
09-14-2003, 02:35 PM
Thank you very much Zach,

1. Everything is clear about positioning. It is really very easy, I appreciate your help. It seems to me that I will not read JavaScript tutorial. Lol

2. Do you have any clue about my second question – how to change the menu’s reacting time, make it a little slow?

3. About URL-s I new the information that you highlighted. The problem is how to get rid from that hand mouse pointer on some root menu items. Today I found one solution that is possible to use in practice – you put “#” into URL like this: URL:"#”. In this case you still have a hand, but if you click on it nothing happens. This is half solution – better to get rid from the hand.

All the best,
Thanks

aaalexan