+ 1
The image is unable to display
16 odpowiedzi
+ 1
Whole script
+ 1
You won't get the error after putting it into that function ,it loads the html document first then JavaScript is executed
+ 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
0
@visph
0
Window.onload=function(){
Place that JavaScript in this function
}
0
The image only or the whole script? ... because I just tried placing the whole JavaScript and it's still not loading
0
It's still unable to load
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 !
0
Ok.
Thanks
0
Stil the same
0
Here you go
https://code.sololearn.com/W1yVmabTfSJ8/?ref=app
0
Hope you've solved yours too
- 1
Still getting the blank page