开发者

Is there a way to 'call' a image from an API in HTML5?

开发者 https://www.devze.com 2023-01-30 09:18 出处:网络
I have an idea in mind. I want to get a random picture from the public archives in Flickr, Picasa and other开发者_开发问答 photo-sharing sites. Is there a way, in HTML5, to do that? Yeah, I know HTML5

I have an idea in mind. I want to get a random picture from the public archives in Flickr, Picasa and other开发者_开发问答 photo-sharing sites. Is there a way, in HTML5, to do that? Yeah, I know HTML5 isn't quite finished yet, but I would rather not use JavaScript. And would it also be posible to have it auto-refresh after a specified amount of time?


"but I would rather not use JavaScript"....then the answer is no, HTML5 alone can't do this, with JavaScript, sure some JSONP and that's cake.

HTML is a markup language, it's not for logic at all. You'll need to use JavaScript for this (that's why it's there/available)...and I can't think of anything HTML5 offers that makes this any easier, it would be the same operation in JavaScript in either HTML4 or HTML5.

0

精彩评论

暂无评论...
验证码 换一张
取 消