Forum Moderators: not2easy
$IMAGES = array (
'image1' => '/path/to/image1.jpg',
'image2' => '/path/to/image2.jpg',
'todays-weather' => '/path/to/todays_weather.jpg',
);
<?php include('image_list.php'); ?>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello welcome to</h1>
<img src="<?=$IMAGES['image1']?>" alt="">
<img src="<?=$IMAGES['todays-weather']?>" alt="">
</body>
</html>
.imgclassname {
width:0;/* hide image*/
height:0;/* hide image*/
padding:61px 0 0 160px;/* background image width (160px) and height (61px) */
background:url(image2.png) no-repeat 0 0;/* your new image*/
}
@Paul: IE has always had problems with anything set to zero, be it font size, image height, etc. . . . but you could just as easily use display: none and an .active selector that's display: inline (or block)
. . but you could just as easily use display: none and an .active selector that's display: inline (or block)