Avatar billede mortensf Nybegynder
12. september 2006 - 20:35 Der er 5 kommentarer og
1 løsning

Hjælp til W3 validering er ved at blive sindssyg

Jeg kan simpekthen ikke fatte hvordan jeg skal få de sidste 3 errors væk? Jeg har vedlagt kode her. Please hjælp.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Umbrolly Danmark Aps - paraplyer, paraply automat, billige paraplyer, paraply, umbrollys</title>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<script type="text/javascript">

function newImage(arg) {
    if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

function changeImages() {
    if (document.images && (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

var preloadFlag = false;
function preloadImages() {
    if (document.images) {
        home_02_over = newImage("images/home_02-over.jpg");
        home_04_over = newImage("images/home_04-over.jpg");
        home_07_over = newImage("images/home_07-over.jpg");
        home_10_over = newImage("images/home_10-over.jpg");
        home_12_over = newImage("images/home_12-over.jpg");
        home_14_over = newImage("images/home_14-over.jpg");
        home_23_over = newImage("images/home_23-over.jpg");
        home_25_over = newImage("images/home_25-over.jpg");
        home_27_over = newImage("images/home_27-over.jpg");
        preloadFlag = true;
    }
}

</script>
</head>
<!-- End Preload Script -->
<body bgcolor="#FFFFFF" onLoad="preloadImages();">
<!-- ImageReady Slices (header.psd) -->
<table id="Table_01" width="741" height="100" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td rowspan="6">
            <img src="images/home_01.jpg" width="20" height="99" alt=""></td>
        <td rowspan="2">
            <a href="#"
                onmouseover="changeImages('home_02', 'images/home_02-over.jpg'); return true;"
                onmouseout="changeImages('home_02', 'images/home_02.jpg'); return true;"
                onmousedown="changeImages('home_02', 'images/home_02-over.jpg'); return true;"
                onmouseup="changeImages('home_02', 'images/home_02-over.jpg'); return true;">
                <img name="home_02" src="images/home_02.jpg" width="83" height="62" border="0" alt=""></a></td>
        <td colspan="3">
            <img src="images/home_03.jpg" width="94" height="1" alt=""></td>
        <td rowspan="4">
            <a href="#"
                onmouseover="changeImages('home_04', 'images/home_04-over.jpg'); return true;"
                onmouseout="changeImages('home_04', 'images/home_04.jpg'); return true;"
                onmousedown="changeImages('home_04', 'images/home_04-over.jpg'); return true;"
                onmouseup="changeImages('home_04', 'images/home_04-over.jpg'); return true;">
                <img name="home_04" src="images/home_04.jpg" width="84" height="64" border="0" alt=""></a></td>
        <td colspan="13">
            <img src="images/home_05.jpg" width="459" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td rowspan="5">
            <img src="images/home_06.jpg" width="3" height="98" alt=""></td>
        <td rowspan="2">
            <a href="#"
                onmouseover="changeImages('home_07', 'images/home_07-over.jpg'); return true;"
                onmouseout="changeImages('home_07', 'images/home_07.jpg'); return true;"
                onmousedown="changeImages('home_07', 'images/home_07-over.jpg'); return true;"
                onmouseup="changeImages('home_07', 'images/home_07-over.jpg'); return true;">
                <img name="home_07" src="images/home_07.jpg" width="85" height="62" border="0" alt=""></a></td>
        <td rowspan="5">
            <img src="images/home_08.jpg" width="6" height="98" alt=""></td>
        <td rowspan="5">
            <img src="images/home_09.jpg" width="3" height="98" alt=""></td>
        <td rowspan="3">
            <a href="#"
                onmouseover="changeImages('home_10', 'images/home_10-over.jpg'); return true;"
                onmouseout="changeImages('home_10', 'images/home_10.jpg'); return true;"
                onmousedown="changeImages('home_10', 'images/home_10-over.jpg'); return true;"
                onmouseup="changeImages('home_10', 'images/home_10-over.jpg'); return true;">
                <img name="home_10" src="images/home_10.jpg" width="85" height="63" border="0" alt=""></a></td>
        <td rowspan="5">
            <img src="images/home_11.jpg" width="3" height="98" alt=""></td>
        <td rowspan="3">
            <a href="#"
                onmouseover="changeImages('home_12', 'images/home_12-over.jpg'); return true;"
                onmouseout="changeImages('home_12', 'images/home_12.jpg'); return true;"
                onmousedown="changeImages('home_12', 'images/home_12-over.jpg'); return true;"
                onmouseup="changeImages('home_12', 'images/home_12-over.jpg'); return true;">
                <img name="home_12" src="images/home_12.jpg" width="86" height="63" border="0" alt=""></a></td>
        <td rowspan="5">
            <img src="images/home_13.jpg" width="4" height="98" alt=""></td>
        <td colspan="2" rowspan="3">
            <a href="#"
                onmouseover="changeImages('home_14', 'images/home_14-over.jpg'); return true;"
                onmouseout="changeImages('home_14', 'images/home_14.jpg'); return true;"
                onmousedown="changeImages('home_14', 'images/home_14-over.jpg'); return true;"
                onmouseup="changeImages('home_14', 'images/home_14-over.jpg'); return true;">
                <img name="home_14" src="images/home_14.jpg" width="85" height="63" border="0" alt=""></a></td>
        <td colspan="6" rowspan="4">
            <img src="images/home_15.jpg" width="193" height="71" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="61" alt=""></td>
    </tr>
    <tr>
        <td rowspan="4">
            <img src="images/home_16.jpg" width="83" height="37" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td rowspan="3">
            <img src="images/home_17.jpg" width="85" height="36" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2">
            <img src="images/home_18.jpg" width="84" height="35" alt=""></td>
        <td rowspan="2">
            <img src="images/home_19.jpg" width="85" height="35" alt=""></td>
        <td rowspan="2">
            <img src="images/home_20.jpg" width="86" height="35" alt=""></td>
        <td colspan="2">
            <img src="images/home_21.jpg" width="85" height="8" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="8" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/home_22.jpg" width="1" height="27" alt=""></td>
        <td colspan="2">
            <a href="#"
                onmouseover="changeImages('home_23', 'images/home_23-over.jpg'); return true;"
                onmouseout="changeImages('home_23', 'images/home_23.jpg'); return true;"
                onmousedown="changeImages('home_23', 'images/home_23-over.jpg'); return true;"
                onmouseup="changeImages('home_23', 'images/home_23-over.jpg'); return true;">
                <img name="home_23" src="images/home_23.jpg" width="97" height="27" border="0" alt=""></a></td>
        <td>
            <img src="images/home_24.jpg" width="4" height="27" alt=""></td>
        <td>
            <a href="#"
                onmouseover="changeImages('home_25', 'images/home_25-over.jpg'); return true;"
                onmouseout="changeImages('home_25', 'images/home_25.jpg'); return true;"
                onmousedown="changeImages('home_25', 'images/home_25-over.jpg'); return true;"
                onmouseup="changeImages('home_25', 'images/home_25-over.jpg'); return true;">
                <img name="home_25" src="images/home_25.jpg" width="90" height="27" border="0" alt=""></a></td>
        <td>
            <img src="images/home_26.jpg" width="4" height="27" alt=""></td>
        <td>
            <a href="#"
                onmouseover="changeImages('home_27', 'images/home_27-over.jpg'); return true;"
                onmouseout="changeImages('home_27', 'images/home_27.jpg'); return true;"
                onmousedown="changeImages('home_27', 'images/home_27-over.jpg'); return true;"
                onmouseup="changeImages('home_27', 'images/home_27-over.jpg'); return true;">
                <img name="home_27" src="images/home_27.jpg" width="78" height="27" border="0" alt=""></a></td>
        <td>
            <img src="images/home_28.jpg" width="4" height="27" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="27" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/spacer.gif" width="20" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="83" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="3" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="85" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="6" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="84" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="3" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="85" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="3" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="86" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="4" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="84" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="13" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="4" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="90" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="4" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="78" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="4" height="1" alt=""></td>
        <td></td>
    </tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
Avatar billede gider_ikke_mere Nybegynder
12. september 2006 - 20:52 #1
<link rel="stylesheet" type="text/css" href="styles.css"/>
skal være
<link rel="stylesheet" type="text/css" href="styles.css">
Avatar billede stenger Nybegynder
12. september 2006 - 21:00 #2
Og ifølge W3C valideringen kan du ikke bruge height i linje 46, ihvertfald ikke med den type doctype. Det er ikke et svar, da det er ret tydeligt :) Men tror ikke du slipper uden om den, uden at kigge lidt på hvilken doctype du evt. skal bruge!
Avatar billede mortensf Nybegynder
12. september 2006 - 21:18 #3
Tak akyhne, det hjalp, nu har jeg kun problemer med height? Hvad vil i foreslå? Skal jeg positonere det i CSS istedet?
Avatar billede gider_ikke_mere Nybegynder
12. september 2006 - 21:27 #4
Egentlig er det jo ikke nødvendig med en height på table. Den giver sig i de billeder du har i TD'erne, som jeg ser det. Men jeg har jo heller ikke dine billeder her.
Avatar billede mortensf Nybegynder
12. september 2006 - 21:56 #5
Akyhne jeg har fået det hele til at fungere endeligt :-) jeg blev nød til at lave en table og så lave et <div> tag der refererer til mit CSS dokument. Jeg vil gerne tildele dig point
Avatar billede gider_ikke_mere Nybegynder
12. september 2006 - 22:00 #6
Tak for det!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester