+ 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

10th Feb 2018, 10:39 PM
Sam Hughlett
Sam Hughlett - avatar
12 Answers
+ 4
@Jayden Lecorps i am testing this now. i do have it set to onload in the header.
10th Feb 2018, 11:03 PM
Sam Hughlett
Sam Hughlett - avatar
+ 4
@Faiscal sure enough! thanks
10th Feb 2018, 11:08 PM
Sam Hughlett
Sam Hughlett - avatar
+ 2
@Faisal I am not seeing the missing quotations.
10th Feb 2018, 11:03 PM
Sam Hughlett
Sam Hughlett - avatar
+ 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.
10th Feb 2018, 11:07 PM
Faisal
Faisal - avatar
+ 2
@josimov dejan that leaves the nav div open and visible.
12th Feb 2018, 11:15 PM
Sam Hughlett
Sam Hughlett - avatar
+ 2
Okay I will check that out.
13th Feb 2018, 10:05 AM
Sam Hughlett
Sam Hughlett - avatar
+ 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.
10th Feb 2018, 10:59 PM
Faisal
Faisal - avatar
+ 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,
12th Feb 2018, 5:22 PM
Josimov Dejan
Josimov Dejan - avatar
+ 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.
12th Feb 2018, 6:01 PM
Sam Hughlett
Sam Hughlett - avatar
+ 1
@josimov dejan whatā€™s that for?
12th Feb 2018, 11:03 PM
Sam Hughlett
Sam Hughlett - avatar
0
Try remove <body onload="Onopen(), OnloadOpenPage()"> or set in comment and add <meta charset=" UTF-8">
12th Feb 2018, 6:45 PM
Josimov Dejan
Josimov Dejan - avatar
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.
13th Feb 2018, 12:07 AM
Josimov Dejan
Josimov Dejan - avatar