+ 1
16th Apr 2020, 10:47 PM
Dominic
Dominic - avatar
16 odpowiedzi
+ 1
Whole script
16th Apr 2020, 11:06 PM
Abhay
Abhay - avatar
+ 1
You won't get the error after putting it into that function ,it loads the html document first then JavaScript is executed
16th Apr 2020, 11:08 PM
Abhay
Abhay - avatar
+ 1
Dominic You should use window.load which has been suggested earlier put the entire script in there for right now. You also need to add some dimensions to your divs (width and height) preferably with CSS. Maybe use <img> instead up to you. https://www.w3schools.com/cssref/css3_pr_background-size.asp https://code.sololearn.com/WaM7Bx9Hmh3M/#css
17th Apr 2020, 1:04 AM
ODLNT
ODLNT - avatar
0
@visph
16th Apr 2020, 10:49 PM
Dominic
Dominic - avatar
0
Window.onload=function(){ Place that JavaScript in this function }
16th Apr 2020, 11:01 PM
Abhay
Abhay - avatar
0
The image only or the whole script? ... because I just tried placing the whole JavaScript and it's still not loading
16th Apr 2020, 11:05 PM
Dominic
Dominic - avatar
0
It's still unable to load
16th Apr 2020, 11:14 PM
Dominic
Dominic - avatar
0
well you were getting an error ,now it won't ,rest there maybe some coding problem with script if it doesn't loads the images you want ,it loads a blue background just and with no error ,rest I am not good with these arrays thing ,maybe someone will help you or just delete the question if you won't get any other response and put it again at some other day !
16th Apr 2020, 11:22 PM
Abhay
Abhay - avatar
0
Ok. Thanks
16th Apr 2020, 11:25 PM
Dominic
Dominic - avatar
0
Stil the same
17th Apr 2020, 12:01 AM
Dominic
Dominic - avatar
17th Apr 2020, 8:17 AM
Bibek
Bibek - avatar
0
Hope you've solved yours too
21st Apr 2020, 5:14 PM
Dominic
Dominic - avatar
- 1
Still getting the blank page
17th Apr 2020, 12:06 AM
Dominic
Dominic - avatar