Hola estoy empezando a hacer mis pinitos con AJAX y me vi un nini-tutorial que hay por la red que mediante un select carga en un DIV unas paginas determinadas, yo lo modifique, para que en vez a traves de un select lo haga por un <a href... también dentro del DIV del índice le puse un texto para que surja, al principio, pues bien mi pregunta es esta, primero os pongo el codigo:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Mini-tutorial AJAX</title>
<script src="ajax.js" language="JavaScript"></script>
<style>
#detalles {
margin: 20px;
border: 1px solid #F0F0F0;
padding: 10px;
font-size: 10px;
}
</style>
</head>
<body>
<h4>Mini-tutorial AJAX</h4>
<a href="#" name="001.html" onclick="cargaXML(this.name)">001</a><br />
<a href="#" name="002.html" onclick="cargaXML(this.name)">002</a><br />
<a href="#" name="003.html" onclick="cargaXML(this.name)">003</a>
<a href="#" inicicio
<!-- <select onchange="cargaXML(this.value)">
<option value="">Elige...</option>
<option value="001.html">001</option>
<option value="002.html">002</option>
<option value="003.html">003</option>
</select> //-->
<div id="detalles">
Prueba
</div>
</body>
</html>
Como hago para que cuando le de al enlace (que e destacado) me aparezca, lo que hay dentro del DIV, por defecto, osea la palabra "Prueba"???
Gracias de antemano
bichomen