jumpto et nouvelle fenetre???
Posté : 23 nov. 2010, 15:36
Bonjour à tous,
voilà, je suis une hyper-débutante en php.
Sur ma page en html, j'ai inclus ce code php:
Dans le head:
Dans body:
J'aimerais que le visiteur ouvre une nouvelle fenetre quand il clique sur les boutons , comme _blank en html.
Que dois-je ajouter au code et où?
Merci pour votre aide.
voilà, je suis une hyper-débutante en php.
Sur ma page en html, j'ai inclus ce code php:
Dans le head:
Code : Tout sélectionner
<script>
function change(color){
var el=event.srcElement
if (el.tagName=="INPUT"&&el.type=="button")
event.srcElement.style.backgroundColor=color
}
function jumpto2(url){
window.location=url
}
</script>Code : Tout sélectionner
<td align="center" width="100%" bordercolor="#000000" colspan="3">
<form onMouseover="change('#EEEEF0')" onMouseout="change('#E1E1E4')">
<input type="button" value="Mes galeries en extérieur " class="initial2" onClick="jumpto2('http://c******.com/galeries/index.php?')">
<input type="button" value="Mes galeries en interieur " class="initial2" onClick="jumpto2('http://c******.com/galeries/index.php?')">
<input type="button" value="Les galeries de mes invité(e)s " class="initial2" onClick="jumpto2('http://www.c*******.com/galeriesinvits/index.php?')">
<input type="button" value="Le forum " class="initial2" onClick="jumpto2('http://www.c*******.com/phpBB3/index.php')">
<input type="button" value="Le livre d'or " class="initial2" onClick="jumpto2('http://livredor.hiwit.org/index.php?*****)">
</form> </td>Que dois-je ajouter au code et où?
Merci pour votre aide.