Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1504 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Javascript help!

Thread title: Javascript help!
Closed Thread    
    Thread tools Search this thread Display Modes  
09-30-2005, 07:23 PM
#1
Winters is offline Winters
Status: Member
Join date: Aug 2005
Location: Toronto, Canada
Expertise:
Software:
 
Posts: 213
iTrader: 0 / 0%
 

Winters is on a distinguished road

Send a message via AIM to Winters Send a message via MSN to Winters

  Old  Javascript help!

Hello there,

Alright here is my situation, I recently had a javascript menu created for me and tested it everything works fine, here is the link to the files http://www.riotdesigns.net/clients/wjs/menu.html As you can see the drop down menus come down in color, but for somereason when I intergrated them into the full site the colors have dissapeared in firefox, IE works perfectly. Here's the link to the site http://www.visualprofx.com/Client/WWT/Index.php as you can see the red background colors on the drop down menu dissapeared.

I don't think it is a cross browser issue seeing as how the first link i post of the menu by itself works fine in firefox yet when intergrated it doesn't

Help please? Thanks

10-01-2005, 12:09 AM
#2
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Guh, talk about unreadable code.

Tried including menu.js too?

[edit] Ignore that ;o, I'll look into it some more.

10-01-2005, 12:14 AM
#3
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

From a very quick dig into the code (thank God for the web dev toolbar and DOM Inspector in Firefox) it seems that your menu JavaScript is forcing certain background colours to be used.

You'll probably have to edit said menu script(s) to alter/remove the style properties applied to menu items so that you can use your original and proper CSS.

But Jon's right, that code is a horrible mess to try and debug!

10-01-2005, 12:36 AM
#4
Winters is offline Winters
Status: Member
Join date: Aug 2005
Location: Toronto, Canada
Expertise:
Software:
 
Posts: 213
iTrader: 0 / 0%
 

Winters is on a distinguished road

Send a message via AIM to Winters Send a message via MSN to Winters

  Old

Alright I aint good with CSS so do I make something like this

#dropdown {
background-color: #99000;
}
#dropdown a:hover {
background-color: #CC000;
}

And then do this?
<td colspan="14" id="dropdown"><script type="text/javascript" language="JavaScript1.2" src="menu.js"></script></td>

But that doesnt explain why the menu works when it is by itself but when I intergrated it it doesnt work :S

10-01-2005, 12:41 AM
#5
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old

I was going to say that it would be something with your CSS but it seems that’s what others think as well, try running it past the w3c CSS validater, maybe it can point you in the correct direction, also I think you should move the services drop down menu over a few pixels, it doesn't line up with the line in the bar.

10-01-2005, 01:40 AM
#6
Winters is offline Winters
Status: Member
Join date: Aug 2005
Location: Toronto, Canada
Expertise:
Software:
 
Posts: 213
iTrader: 0 / 0%
 

Winters is on a distinguished road

Send a message via AIM to Winters Send a message via MSN to Winters

  Old

I didn't use CSS thats the thing.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed