Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: xhtml, w3c validation, and javascript

  1. #11
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    92
    Thanks
    34
    Thanked 0 Times in 0 Posts

    Default

    Well let me say first of all that my aesthetic sensitivities are, admittedly lacking. What I do with my sites may, therefore, be heavily influenced by this dialogue. In that vein, I pose another thought. Should w3c be treated differently than, let us say, Dynamic Drive icons. Look at the footer of www.marainlaw.com. The icons for both (as well as some others) are there. Do they look out of place? Is it inappropriate for commercial sites to publicize Dynamic Drive, the volunteers of which are helpful to me and to so many others? If not, how would w3c be different?

    BTW, getting back to the issue that prompted my original question, I did move the script to a linked file as suggested, and the page (http://www.marainlaw.com/page.php?here=quotations) now validates. Thank you!

    A.

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    27,537
    Thanks
    42
    Thanked 2,876 Times in 2,848 Posts
    Blog Entries
    12

    Default

    I'm not much of a designer either, but on those pages, those logos don't look out of place.

    You do have one CSS validation error though, in an on page stylesheet:

    Code:
     . . . me="revisit-after" content="5 days" />
    <meta name="distribution" content="Global" />
    
    <link rel="stylesheet" type="text/css" href="css/marainlaw.css" />
    
    <style type="text/css">
    .intro{
    position:absolute;
    left:0;
    top:0;
    layer-background-color:#ffff00;
    
    /* #ffff00 = yellow  */
    
    background-color:black;
    border:8.0px solid blue;
    z-index:10;
    }
    </style>
    <script language="JavaScript" type="text/javascript" src="js/popwin.js"></script>
    
    </head> . . .
    I couldn't find any element on the page with the "intro" class though, so you should be able to just get rid of it. See:

    http://www.blooberry.com/indexdot/cs...g/lbgcolor.htm

    for more info on layer-background-color, which it appears from that should be dropped and the background-color should be set to the preferred color, which in this case appears to be #ffff00;

    Netscape, at least the versions they're talking about there (4.0, 4.x) are no longer in use. And I know for almost an absolute fact that current Netscape, and for absolute fact it's step children (Mozilla, including Firefox), no longer require this hack.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #13
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    92
    Thanks
    34
    Thanked 0 Times in 0 Posts

    Default

    I think I need to look at it more closely before deleting it. php puts some code into the header, so it does appear to be in use:

    [CODE]

    <?php
    .
    .
    .

    if ( $here === 'quotations' ) {
    echo '<style type="text/css">
    .intro{
    position:absolute;
    left:0;
    top:0;
    layer-background-color:#ffff00;

    /* #ffff00 = yellow */

    background-color:black;
    border:8.0px solid blue;
    z-index:10;
    }
    </style>';
    }

    ?>

    [CODE]

    So it will be either delete or correct (if it's correctable), but I'll very likely not have a chance to study that today.

    A.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •