Forums Archive Index > SmartMenus 5 > Menu onLoad

Author: Kitten

Date: 28 May 2005 12:14 pm

Hi

First off I just want to say this is a brilliant menu :D

Now on to my silly little question. I want to have the menu situated in a <div> in a table. Also I need it to be visible when the page loads, now I'm pretty sure I'm just missing something. Quite possible as I've only been playing with your menu for a couple of hours now. Below is the section of html where I need the menu to be. I've gone through the different examples and I reckon my brain has been fried due to too much javascript as I can't figure out how to get my menu to appear :cry:

Code:

   <!-- Menu system start -->
   
   <tr bgcolor="#EAEDF2">
    <td width="120" height="343" valign="top"><div style="padding-top: 3px; padding-right: 8px; width: 120px;">
   </div></td>
   
   <!-- Menu System End -->


I think it may have something to do with the fact that the menu needs to be "linked" to an image (maybe wrong in my guess here)? If that is the case, is there anyway as I stated above, that the menu can just be positioned in the above <div>? Let me know if you need me to zip up some files, as unfortunately this site I'm creating is nowhere near to going online.

Ta in advance

Edit Note: Nevermind on the menu not displaying...as I thought I was being silly and just forgot to add the directory in the s_loader.js file :roll: However I still need to be able to position the menu either in that <div> tag or in such a manner that it will not move when screen resolution is changed or vary in the different browsers. So help on that would be appreciated still :)


Author: smartmenus

Date: 29 May 2005 12:41 pm

Hi,

Well, you will have to put an image in the div element and then use the position of the image to position your menus relatively to it. Please take a look at the "Samples\Relative Position\Permanent menus" folder and read the instructions on the example page carefully.

Please let me know if you still have problems after that. Or if you want, send me a sample page and I will configure it for you.

Thanks!


Author: Kitten

Date: 29 May 2005 1:12 pm

Hi Vasil

Yes, I kind of figured that out myself today and it works beautifully on all browsers and resolutions :) . I was wondering though if there is a way to use your menu without images and still have it positioned relatively?

No biggie if its not possible, but it would have been nice as I like to try and keep images on a site to as few as possible.

Just a little note as well to say thank you for the hard work you have put into this menu as well as trying to help all the users. You must be really tired at times and I would just like to say from my side that I appreciate your time and effort in helping us all :D

Ta


Author: smartmenus

Date: 29 May 2005 3:55 pm

Kitten wrote:
I was wondering though if there is a way to use your menu without images and still have it positioned relatively?
Yep, it is possible. You will just need a slightly different function for relative positioning. Actually the only thing you have to change in the function is the following code:

document.images["getStart"]

with:

s_getO("getStart")

And then set the id="getStart" attribute in the tag of the div element you want to use for positioning.

Please note, however, that this code will not work in Netscape 4.x and if you make this change in the function, the menu will not appear at all in that browser.

PS: Thanks very much for your kind words! :D


Author: Kitten

Date: 30 May 2005 3:13 am

Aha good to know it is possible :) I reckon I'll just stick to using images, the loading time is so small that I just can't validate losing functionality in Netscape :wink:

Will send you a link to the site as soon as its up and running :)

PS: No probs, I know what its like to have to support a big community and doing it all on your own :o I reckon that makes you pretty much close to superman :wink:


Author: smartmenus

Date: 30 May 2005 11:05 am

Kitten wrote:
I reckon that makes you pretty much close to superman :wink:LOL :D