PDA

View Full Version : Javascript CSS Help


bufhal
03-04-2006, 04:19 PM
Hello;
I hope an experienced person can help me.
Our website at: http://www.attotech.com
has a top menu that currently works in Internet Explorer but does not in Firefox. I have used HTML Tidy for my index page and now it looks ok in Firefox but not IE.
I have three CSS files, one Javascript and the index page. I am a bit new at this and really need someone to take a peek at the files and please tell me where the code needs to be modified so it will work in IE and Firefox.
I know this is asking a bit but I am hoping a "guru" can share their wisdom and help me get this menu functioning.
I cannot attach some of the files because they are CSSor the "tidied" index page which works in Firefox. I can zip and email if someone can take a look.
The link to our site, attotech.com has the index page that is rendering correctly in IE but not Firefox.
I really appreciate any and all help..
I great thank you in advance.

videotoys
03-05-2006, 01:42 AM
What did you use to make the menu? I use Deluxe-Menu.com (http://deluxe-menu.com/) and I had a problem at first, I contacted the software developers and they replied with me with 2 fixes, the was to remove all the margin attributes from your css this may mess up your FF though, the second was a little harder to fix and was what I finally got the script working back in FF and that was to fix one line of code in the script that the software made and that was to set:
var dm_writeAll=1;
before it was set to 0 and worked in IE but not in FF hope that helps a little

bufhal
03-05-2006, 10:43 AM
Thanks. The menu is gostomenu(a prewritten). Is that line of code you altered in my code or code your software generated?
Thanks

videotoys
03-05-2006, 01:35 PM
Not sure if youd see that var dm_writeall=1; in your code then, that was kind of a long shot to see if you were using the same menu designer I do but I am able to modify the code since the deluxemenu creates javascript files and that is what I finally needed to change to make it work in both IE and FF, the problem I had was that the sub-sub menu items would be offset by enough space that you couldnt get to the sub-sub menu items. Is that what problem your having? Like I said the first thing that helped to fix that problem was to remove all the margin attributes from my CSS container. That seemed to fix the problem I was having in FF but then changed the problem to IE so I had to change that final var from 0 to 1, hope thats not too confusing. But you might not have the same problem as I was since I was using a different software so maybe just removing the margins will help, thats about all the ideas I have for now without seeing any code.

bufhal
03-05-2006, 02:47 PM
I attached the files in a zip. The menu is mygosto, it is a premade menu on the web. We treied to incorporate it into our site but are running into a few snags. Please take a look and try to point out where I should modify the code.
Thank you for your time.

videotoys
03-06-2006, 02:47 AM
this is just a guess but I would try and remove this from your default.css

margin: 0px;

Now see what happens in FF, it might reverse the problem from working in IE to working in FF, if so then something in your js file is effecting the position of the submeuns, but it might just fix the issue your having. let me know I can try and help more if necessary.

GarrettW
03-06-2006, 11:27 AM
doesn't work in firefox, eh?
works for me, though.

i'll try to keep my other comments about your site to myself, since this isn't the website review forum.

bufhal
03-06-2006, 09:02 PM
Thanks for your help. I think this may take a bit of work...
Thanks again..