1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
<?php
//--connexion base
?>
<html>
<head>
<script type="text/javascript">
var submitRolls = new Object();
function submitroll(src, oversrc, name){
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Submit Query";
this.write=submitroll_write;
}
function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;
document.write
(
'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' +
' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' +
' HREF="javascript:'
);
if (this.sendfield){
if (! this.sendvalue)
this.sendvalue = 1;
document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
}
document.write(thisform + '.submit();void(0);"');
if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');
document.write('>');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield){
document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
document.forms[document.forms.length - 1].elements[this.sendfield].value='';
}
}
</script>
<link href="../../ibe40/acceuil/fra/style_fr.css" rel="stylesheet" type="text/css">
</head>
<body>
<form method="post" action="fonction.php">
<tr>
<td><input type="text" name="nom"></td>
<td>
<script type="text/javascript">
var sr = new submitroll("../../ibe40/image/site_internet/bouton_supprimer.png","../../ibe40/image/site_internet/bouton_supprimer_survol.png","mysubmit1");
sr.write();
</script>
</td>
</tr>
<tr>
<td>
<script type="text/javascript">
var sr = new submitroll("../../ibe40/image/site_internet/panier_valider.png","../../ibe40/image/site_internet/panier_valider_survol.png","mysubmit2");
sr.write();
</script>
</td>
</td>
</form>
</body>
</html> |
Partager