Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

random image on click

 

Indexhibit version: 2.0
Thread is not resolved.

pablov
FRANCE
12 month(s) ago
Permalink Post

This may be useful to make the random image refresh the image when you click... it is based on code by arsondpi on a previous thread, but that code was not working on firefox. This one is working for all browsers I have tried so far...

find line 45 in the format.random_image.php file and change it from:
$s .= "";
to:
$s .= "";

pablov
FRANCE
12 month(s) ago
Permalink Post

This may be useful to make the random image refresh the image when you click... it is based on code by arsondpi on a previous thread, but that code was not working on firefox. This one is working for all browsers I have tried so far...

  1. find line 45 in the format.random_image.php file and change it from:
  2. $s .= "<img src='" . $OBJ->vars->images[0][$rand]['media_path'] . "' />";
  3. to
  4. $s .= "<a href='location.reload(true); '><img src='" . $OBJ->vars->images[0][$rand]['media_path'] . "' /></a>";
Showing 1 - 2 of 2 posts in Forum » Customize » random image on click
 

This thread has been closed, thank you.