Jump to content

Recommended Posts

Posted

Welcome to the forum, jcrg_satan. :)

 

I tried this a long time ago but I don´t remember how I did it and if I did something more than you did.

 

Have you looked in to similar scripts at hotscripts.com?

Posted

I did find a small php version that I modified that may help.

 

><?php
srand((float) microtime() * 10000000);

 $image[1]['pic']='/img/image1.jpg';
 $image[1]['link']='/folder/page01.html';

 $image[2]['pic']='/img/image05.jpg';
 $image[2]['link']='/folder/page02.html';

 $image[3]['pic']='/img/image19.jpg';
 $image[3]['link']='/folder/page03.html';


 $rnd = array_rand($image);

echo '<a href="'.$image[$rnd]['link'].'" target="_self">';
echo '<img src="'.$image[$rnd]['pic'].'"  >
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...