Menu Images will not load!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Menu Images will not load!

Post by sp21674 »

I have a page at: http://www.CompbenHR.com

It uses Image swapping on the vertical menu - however the images wont load until i run my mouse over them!

Anyone tell me whats wrong please?

Many Thanks,

Steve :roll:
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

Your menu_data.js file needs do be terminated by

drawMenus();


Hope this helps

Michael
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Thank you for your reply!

Post by sp21674 »

My Menu_data file looks like this:

fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;

with(menuStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
padding=3;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=3;
}


with(milonic=new menuname("profp")){
style=menuStyle;
aI("text=Amanda Hatter;url=profpa.htm;");
aI("text=Mike White;url=profpm.htm;");
aI("text=Karen Manby;url=profpk.htm;");
aI("text=Brian Symcox;url=profpb.htm;");
aI("text=Julie Rees;url=profpj.htm;");
}
drawMenus();

As you can see I have drawMenus(); at the bottomas suggested!

Any other ideas?

Many Thanks,

Steve
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

in the main menu, try this:

insert

Code: Select all

itemwidth=232;
(maybe even more, e.g. 255)

hope this helps

Michael
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Thank You once again

Post by sp21674 »

Thank You for trying but unfortunately it is still not working as you can see at http://www.CompbenHR.com

Any more ideas please?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

just for testing

comment out

//subimage="arrow.gif";
//subimagepadding=3;


and see if this works.

Michael
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Can´t find the

subimage="arrow.gif";

is it in the folder?

Definitely, it worked in FF as well as in IE, when I commented out the subimage, setting the itemwidth to 232, but you need to control your images. I tested it only with two images (Reward-on and off, which I downloaded into my local folder for testing)

I believe its a design problem, as the subimage plus padding need additional space and the table width should be set accordingly.

Michael
Last edited by Migru on Wed Mar 29, 2006 12:06 pm, edited 1 time in total.
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Still Not Working :-(

Post by sp21674 »

Hi,

Thank you so much for your perseverance.

I have deleted those two lines from the MenuData file and as you can see it still isn't working!

Any more ideas will be very greatfully received!

All the best,

Steve
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Please comment out the preloadimages for testing
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Stil No Joy!

Post by sp21674 »

Sorry Still No Joy :cry:

All the best,

Steve
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Everything is working as it should here in my working environment.
Don´t know what the reason is, when it is called from your site its different.

Uploaded into a test directory, will immediately delete it, please see

http://www.dhyg.de/test/CompBenhr.htm


Michael

The files are zipped (not the Milonic files, hope you have a license...)

http://www.dhyg.de/test/testit.ZIP
sp21674
Beginner
Beginner
Posts: 7
Joined: Wed Aug 17, 2005 7:30 pm

Thank You

Post by sp21674 »

I copied your files onto my system and tested it and it still didn't work! This didn't make sense as I had seen it working at yours!

The only thing different was my milonic files! I have just downloaded the latest versions and it works fine now thank you!

Many Thanks for all your time & patience!

All the best,

Steve
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

You´re welcome-

Michael
Post Reply