+ 1
Using your files in JS
I have been wondering for a while if I could use images I made on my laptop for characters in my javascript program. If you can do this could someone inform me on how to do so.
13 Answers
+ 2
Zakariya You have to have server or another way to put page on Internet (like some hosting ser ices), there you put page and all resources like img, vid... Then you refer to them like you said before
+ 2
In HTML make 'img' element then use its 'src' attribute to point to website/cloud where you store your image
+ 1
So as an example src="car.img"
+ 1
Just make sure the file is private otherwise the page won't ave acces and won't work
+ 1
On PC, it is easier, just put it in same folder
0
What do you mean private
0
Like only stored in my pc
0
Fx. In cloud drives only you (with password) have acces.
0
Or you have to store the img on server together with page
0
How do i do that
0
Also sorry for the hassle
0
Ok cool. Thanks
0
For nothing