Hello everyone, I need a code to show an image from my hard drive and after 2 seconds replace it with another.... up to 3 times The images are locating at D:\ (naming 1.jpg 2.jpg 3.jpg) The size of the images are all 1920x1080 Sorry for my bad English Thanks in advance
Your web browser isn't allowed to automatically access your hard drive for security reasons. Those images on your D:\ are going to have to be uploaded somewhere.
JavaScript can access image only till the root of the website or it can access image placed on external domains. So regarding your question of accessing drive "D:\" with JavaScript, it is simply not possible.
I hope answers on stackoverflow page may help you- http://stackoverflow.com/questions/4090712/why-cant-i-do-img-src-c-localfile-jpg C: is not a recognized URI scheme. Try file://c|/... instead. Please let me know if it worked or not.