Tema: Duda de PHP
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2011, 15:54
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 10 meses
Puntos: 336
Respuesta: Duda de PHP

asi:

Código Javascript:
Ver original
  1. <a href="http://www.google.com" target="_blank" onclick="if(this.href=='http://www.google.com'){this.href='http://www.yahoo.com';}else{this.href='http://www.google.com';}">click</a>

pero es javascript XD