F
F
FostyFost2014-02-04 19:44:09
Google
FostyFost, 2014-02-04 19:44:09

Request to Google to search and display only one random image, how to implement?

Is there a way to implement a search for a random image for a specific query (for example, "Cats"), and in such a way that only one image is displayed in the browser window?
Required to implement the extension for Google Chrome. Accordingly, a function similar to this is needed:

function loadImage() {
  var i = Math.floor((Math.random() * 365) + 1);
  var cat = 'http://www.iscalio.com/cats/' + i + '.jpg';
....
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mykola Dzedzinskyi, 2014-02-05
@FostyFost

need to use google api
https://code.google.com/p/google-api-javascript-client/

S
Sergey, 2014-02-04
@begemot_sun

cats.jpg.to
facepalm.jpg.to

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question