I'm using a random image script to rotate images each time you refresh.
It works ok but i'm also using it as a link and I can't figure out how to get rid of the nasty blue border around it.
i think i need to put something in my style sheet but I'm not sure what? I have text decoration=none or whatever in there for the links and also border:0 for the {img] tag but its not in an image tag so it doesnt work. But perhaps theres a php way to do this...?
what should i do? Thanks for your help/suggestions:)
heres the code i have in the index...
Code: Select all
<div style="e;position:absolute;left:263px;top:245px;width:100px;height:260px;z-index: 2"e;>
<a href="e;pictures.html"e; target="e;frame"e;>
<?php include "e;randomimage.php"e;; ?></a> <br></div>and heres randomimage.php...
Code: Select all
<?php
/*
*
*
*
*
*/
// Change this to the total number of images in the folder
$total = "e;2"e;;
// Change to the type of files to use eg. .jpg or .gif
$file_type = "e;.gif"e;;
// Change to the location of the folder containing the images
$image_folder = "e;pictures/lil"e;;
// You do not need to edit below this line
$start = "e;1"e;;
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
echo "e;<img src=\"e;$image_folder/$image_name\"e; alt=\"e;$image_name\"e; />"e;;
?>