My (sucky) website

This is a discussion on My (sucky) website within the A Brief History of Cprogramming.com forums, part of the Community Boards category; need javascript to get drop down and slide out menus to work for IE? not likely. here, Stu Nicholls has ...

  1. #16
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    need javascript to get drop down and slide out menus to work for IE?
    not likely.

    here, Stu Nicholls has a validating drop down and slide out css only menu that works cross browser.

    http://www.cssplay.co.uk/menus/dd_valid.html
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  2. #17
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Jaqui
    need javascript to get drop down and slide out menus to work for IE?
    not likely.

    here, Stu Nicholls has a validating drop down and slide out css only menu that works cross browser.

    http://www.cssplay.co.uk/menus/dd_valid.html
    It is sad but true. In IE6 :hover only works for <a> elements as I already said, but a little javascript file fixes that in IE6.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  3. #18
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Validating doesn't necessarily mean valid. Sure, the page validates and is even valid when looking at Firefox's DOM tree. But IE's DOM tree is not valid.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #19
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    But the menu I posted the url to doesn't use js, and does function with IE.

    it validates against the w3c xhtml/xml and css validation tools, which was what I meant by it is validating.
    I never worry about browser specific dom trees, since to have a page be valid in the browser trees you need to have a page for each browser. If the W3C's tools say it's valid, then that is good enough for me.
    [The standards setting body takes precidence over application developers choices ]
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  5. #20
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    On that page there's a special CSS file for IE, where the :hover is not on the LI element, but on the A.
    But more complex dropdown menus (multi-level etc.) need :hover to work with LI too.

    Also, look at this part of source code, this makes me laugh (it's taken from that site):
    Code:
    <br /><br />
    <h3>NO javascript - just CSS - and it validates</h3>
    
    
    <div id="adsie">
    <script type="text/javascript">
    google_ad_client = "pub-6651950180071236";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "aa4400";
    google_color_url = "ff9933";
    google_color_text = "555555";
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    Last edited by maxorator; 10-24-2006 at 01:19 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  6. #21
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    yup, the advertisements are google, which is js.

    the menu part is not js based.

    since I turn off js by default, I just don't see the advertisements.

    I actually do not enable any clientside scripting.
    most of the time, I use lynx to browse online, so no images either.
    or tables
    or frames
    only the textual content of the site.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  7. #22
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    The site uses conditional comments to give IE different source code than other browsers. This is ingenious, I will admit, but the result is still that IE sees invalid code.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #23
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,602
    This is ingenious, I will admit, but the result is still that IE sees invalid code.
    How does that matter?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How's my new Website
    By asbo60 in forum General Discussions
    Replies: 53
    Last Post: 07-10-2009, 10:10 AM
  2. Replies: 4
    Last Post: 07-31-2007, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21