<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html lang="en">
<head>
<title>Jquery</title>
<meta http-equiv="content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
*{padding:0;margin:0;}
#d0{width:50px;text-align:center;padding:10px;}
a,a img{text-decoration:none;}
a:hover span{color:#f00;text-decoration:underline;}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#d0 a').attr('href','http://google.com');
});
</script>
</head>
<body>
<div id="d0">
<a href="?1">
<img src="http://javascript.ru/forum/image.php?u=7013&dateline=1279889551" alt="img1"/>
<span>Text1</span>
</a>
<a href="?2">
<img src="http://javascript.ru/forum/image.php?u=7013&dateline=1279889551" alt="img2"/>
<span>Text2</span>
</a>
<a href="?3">
<img src="http://javascript.ru/forum/image.php?u=7013&dateline=1279889551" alt="img3"/>
<span>Text3</span>
</a>
</div>
</body>
</html>