+ 4
error
i am getting an error on line 179 i dont even have a line 179 here is the code please help https://code.sololearn.com/Wj8mbHgxDG2f/#html
12 ответов
+ 4
@Jayden Lecorps i am testing this now. i do have it set to onload in the header.
+ 4
@Faiscal sure enough! thanks
+ 2
@Faisal I am not seeing the missing quotations.
+ 2
@Sam Hughlett on line 37, where it says document.getElementById, "pageName" should be in quotes, just so that it knows you're referencing to the id of the element.
+ 2
@josimov dejan that leaves the nav div open and visible.
+ 2
Okay I will check that out.
+ 1
On line 37, you also forgot to add quotation marks around the id of the element, so the program doesn't recognize what you're trying to do.
+ 1
HTML
line 6 (<body onload="Onopen(), OnloadOpenPage()"> ) cut and replace line 10 ( body ), below paste <title> , and you have duplicate id="navicon".
<center> tag is obsolete. Try to avoid using it ( for example text-align: center; ).
So I would recommend you put script just before the closing body tag.
<script src="http://plinknfun.sdf.org/swmo/build2/js/snakes.js"></script>
</body>
CSS
line 24 ul margin-bottom not have value,
line 30 ul duplicate margin-top,
line 53 class tabpage border not have value,
line 103 ul margin-top not have value,
+ 1
@Josimov Dejan the null css values are there but are null for testing. I will move the script on load to the end for optimization of page performance.
+ 1
@josimov dejan what’s that for?
0
Try remove <body onload="Onopen(), OnloadOpenPage()"> or set in comment and add <meta charset=" UTF-8">
0
Ok. If you want to keep both functions replace
<body onload="Onopen(), OnloadOpenPage()">
with
<body onload="Onopen() && OnloadOpenPage()">.
When I tried that, in my browser console I didn't have error.