Reply LinkBack Thread Tools Search this Thread
Old 24-03-2008, 03:35   #1 (permalink)
Zygote76
Senior Member
 
Zygote76's Avatar
 
Join Date: Oct 2007
Location: Ohio
Posts: 160
CSS Glitch? and evil javascript validation

Hey guys, I am having two new problems, well one really the other one is a glitch I think and may only be something with my computer.

I am trying to validate the site and I have a javascript that is causing an error and I believe that once I get it right the last couple of errors will be corrected. Heres the site link: Clicky

When I go to web validator I get this message

Quote:
Line 9, Column 29: required attribute "type" not specified.

Code:
<script language="javascript">



The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are
Code:
type="text/css" for <style> and type="text/javascript" for <script>.

Here's the code for the document:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>5point | Self-Service Kiosk Design and Manufacturing</title> <link href="MainStyle.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" language="JavaScript" src="js/scroll.js"></script> <script language="JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script>
BTW I have changes "JavaScript" to "javascript" and the problem still invalidates.
Any help as to what I am doing wrong would be appreciated.

OK the final problem. I noticed that when I have multiple tabs open in FF the CSS dropdown menus have a little glitch. Part way down the flyout the menu has a tiny shift to the left. This also cause the text in one of the other submenus to scrunch together a bit.

Here is an image to show you what I mean,



I think it might be something on my computer causing it but I'm not sure =(

You guys have been really helpful and I appreciate it. Thanks again for reading this and any advice you can give

Zygote
  Reply With Quote
Old 24-03-2008, 07:18   #2 (permalink)
rampagegfx
BOLLOX!
 
rampagegfx's Avatar
 
Join Date: Aug 2007
Location: 508, Massachusetts
Posts: 240
Send a message via AIM to rampagegfx Send a message via MSN to rampagegfx
<script type="text/javascript">
will properly validate it.
  Reply With Quote
Old 24-03-2008, 08:16   #3 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,816
Quote:

The Fonz rocks
  Reply With Quote
Old 24-03-2008, 11:12   #4 (permalink)
seen.to
unusual suspect ™
 
seen.to's Avatar
 
Join Date: Jul 2004
Location: DE, USA
Posts: 2,711
The answers right there on the w3c validation page, the content of which you included in your original post. If you can't find the answer in that then you don't have an easy time ahead of you.
__________________
  Reply With Quote
Old 24-03-2008, 12:55   #5 (permalink)
Zygote76
Senior Member
 
Zygote76's Avatar
 
Join Date: Oct 2007
Location: Ohio
Posts: 160
I wondered about that. I also could have sworn that I had tried that before but I must have messed something up. It was pretty late and I probably should not have been trying to fix stuff then There were a few minor things that I needed to fix as well (like closing the img tag and uppercase no no's) but I got it to validate. Thanks again for your help.

By the way, did any of you see that little shift in the submenu if you were viewing in FF with tabs open? It's driving me batty.
  Reply With Quote
Old 24-03-2008, 13:17   #6 (permalink)
pgo
i'm done, son
 
Join Date: Jan 2005
Posts: 12,262
Your dropdown problem has nothing to do with tabs being open (and it's also broken in IE, but not the same way). It seems to occur at the same height on the two menus affected. That's strange.

Did you use the good method of doing dropdowns? Son of Suckerfish Dropdowns | HTML Dog

Quote:
Originally Posted by seen.to
The answers right there on the w3c validation page, the content of which you included in your original post. If you can't find the answer in that then you don't have an easy time ahead of you.
Seriously. It's called reading. 5 seconds of reading vs. 5 minutes posting a thread?
  Reply With Quote
Old 24-03-2008, 14:34   #7 (permalink)
Zygote76
Senior Member
 
Zygote76's Avatar
 
Join Date: Oct 2007
Location: Ohio
Posts: 160
Well I was trying to use a pure CSS dropdown and wanted to avoid as much javascripting as I could. I used a method I found here a while back. I knew about the IE problem and realized I forgot to include the csshover.htc along with the IE sniffer. Although so far that doesn't appear to be going over so hot at the moment. I'm still trying to fix that.

I'm going to take a look at the sons of suckerfish and see if I'm better off with that.

That little shift that occurs at the same height appears to be happening right about where that text field starts in the right column. I have a javascripted scrolling text there as they are going to add more content and the scroll bar is supposed to be styled. Again that is me still learning how to use and implement the script properly. I have some reading and practice ahead of me

Thanks again guys
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8