Hi! Is it possible to build a photogallery usin only HTML5 and JS? CSS3 wuldbe use to make it look good. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Hi! Is it possible to build a photogallery usin only HTML5 and JS? CSS3 wuldbe use to make it look good.

Photo gallery

1st Feb 2017, 6:06 PM
Mauro T
Mauro T - avatar
3 Antworten
+ 9
Put image sources in an array in JS (var arr = ["img.jpg",http…"];) and create an <img> tag with html. make the "src" of that image change with events or time……
1st Feb 2017, 6:14 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
Yes, it is possible, as previously said... BUT: It's preferable on contrary to try to do it using only Html (5 accessory) and CSS (3 same)... By this way, all users will always benefits of your gallery, while with help of JS, gallery don't be available for those who don't have JS ( per choice or not ) ^^ Else, only Html and JS to do that, it's way of facility ;) ( not even a bad way :P ) Look at w3schools.com, they have useful tuto's, among which any for building at least kind of slideshows, as well only Html+Css as Html+JS :)
2nd Feb 2017, 5:12 AM
visph
visph - avatar
+ 2
yes there are many ways to achieve this, take what valentinhacker said, most libraries use thos method aswell
1st Feb 2017, 7:12 PM
Andre van Rensburg
Andre van Rensburg - avatar