0
Hi! Is it possible to build a photogallery usin only HTML5 and JS? CSS3 wuldbe use to make it look good.
Photo gallery
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……
+ 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 :)
+ 2
yes there are many ways to achieve this, take what valentinhacker said, most libraries use thos method aswell