Ver Mensaje Individual
  #33 (permalink)  
Antiguo 05/12/2010, 20:13
Avatar de yubertvikel
yubertvikel
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: Venezuela
Mensajes: 928
Antigüedad: 14 años, 11 meses
Puntos: 111
Respuesta: Dudosa cuestion sobre posicionamiento

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script type="text/javascript" language="javascript">
var READY_STATE_UNINITIALIZED=0;
var READY_STATE_LOADING=1;
var READY_STATE_LOADED=2;
var READY_STATE_INTERACTIVE=3;
var READY_STATE_COMPLETE=4;
var peticion_http;

function cargaContenido(url, metodo, funcion) {
peticion_http = inicializa_xhr();
if(peticion_http) {
peticion_http.onreadystatechange = funcion;
peticion_http.open(metodo, url, true);
peticion_http.send(null);
}
}
function inicializa_xhr() {
if(window.XMLHttpRequest) {
return new XMLHttpRequest();
}
else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
function muestraContenido() {
if(peticion_http.readyState == READY_STATE_COMPLETE) {
if(peticion_http.status == 200) {
document.getElementById("Resultado").innerHTML = peticion_http.responseText;
}
}
}
function descargaArchivo(rrr) {
cargaContenido("/tracking.php?id="+rrr, "GET", muestraContenido);
}

</script>

ejemplo de enlace:
<a href="/secciondemiweb/item_25" onclick="descargaArchivo('25')">
<div id="Resultado" align="right" style="visibility:hidden"></div>

sólo queda crear tracking.php
sería un php que recibe por get el identificador de la url dónde se hizo clic, he visto algunas web que trabajan con sistema similar, aún no se lo he colocado a mi web para hacer seguimiento de clic porque aún estoy trabajando con los datos que quiero tomar.
__________________
Buscas posicionamiento en Google con Linneo.net encuentras soluciones SEO, SEM y de Marketing para empresas en Santiago