Html : aligner deux sondages

Fermé
remi.beuz Messages postés 3 Date d'inscription samedi 5 janvier 2008 Statut Membre Dernière intervention 4 octobre 2008 - 5 janv. 2008 à 11:00
 Utilisateur anonyme - 5 janv. 2008 à 11:05
Bonjour,à tous et bonnes fêtes !

Je débute dans la programmation,en particulier dans le HTML.
j'ai crée il y a peu de temps un tout petit site juste pour faire des tests concernant le HTML.
Dans l'une de ces pages je souhaite insérer plusieurs petits sondages,fait grâce au site > http://www.1001-votes.com/

j'ai réussi à insérer plusieurs de ces sondages mais je n'arrive pas à les alligner horizontalement voici la page du site en question : http://rbesombes.free.fr/sondage

Et voici le code qui ce compose en deux blocs (les deux sondages)

<!-- debut du code sondage 1001v 1.2 -->
<SCRIPT LANGUAGE="JavaScript">

function desactiveFormv11(f) {
if (document.all || document.getElementById) {
for (i = 0; i < f.length; i++) {
var t = f.elements[i];
if (t.type.toLowerCase() == "submit" || t.type.toLowerCase() == "reset")
t.disabled = true;


}
}
return true;
}

function checkv11(f) {
res = desactiveFormv11(f);
return true;
}






</SCRIPT>

<table cellpadding=2 cellspacing=0 width="155" bordercolorlight="#000000" bordercolordark="#CFFEFB" border="1">
<tr valign="bottom" align="center" bgcolor=#b0c4de><td align="center"> <B><FONT face=verdana color=#000000 SIZE=1>Dans quelle tranche d'âge vous situez-vous? </B></td></tr><tr valign="bottom" align="center" bgcolor=#87ceeb><td align="center">
<form onSubmit="return checkv11(this)" method="post" action="http://www.1001-votes.com/vote/mvoteres11.php" target='_blank'><TABLE cellpadding=0 cellspacing=0>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="1" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000> 15 ans</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="2" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>15 - 20 ans </font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="3" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>25 - 34 ans</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="4" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>35 - 44 ans</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="5" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>45 - 54 ans</font>
</TD>
</TR>
<TR>




<TD VALIGN=top>
<input type="radio" name="vote" value="6" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>55 - 64 ans</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="7" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>j'ose même pas vous le dire ..</font>
</TD>







</TR>
</TABLE> <BR> <input type="hidden" name="idv" value="64745">
<input type="hidden" name="lg" value="fr">
<input type="hidden" name="ncom" value="1">
<input type="hidden" name="ce" value="#b0c4de">
<input type="hidden" name="cp" value="#87ceeb">
<input type="hidden" name="pck" value="7">
<input type="hidden" name="dta" value="3598344291">
<input type="hidden" name="io" value="189">
<input type="hidden" name="ct" value=#000000>
<font size=1>
<INPUT TYPE="submit" VALUE=" Je vote » " onClick="this.value='Vote envoyé'" style="font-size: 10; color:#000000; background-color:#87ceeb; border-color:#000000; border-width: 1;" > <BR><BR><a href='http://www.1001-votes.com/vote/mvoteres11.php?idv=64745&lg=fr&ncom=1' target='_blank'><font face=verdana size=1 color=#000000>résultats »</a>
<BR><a href='http://www.1001-votes.com' target='_blank'><font color=#000000>Sondages</a><BR></td>

</table>
<!-- fin du code sondage 1001v 1.2 --> </div>

<p>






</td>






<!-- debut du code sondage 1001v 1.2 -->
<SCRIPT LANGUAGE="JavaScript">

function desactiveFormv11(f) {
if (document.all || document.getElementById) {
for (i = 0; i < f.length; i++) {
var t = f.elements[i];
if (t.type.toLowerCase() == "submit" || t.type.toLowerCase() == "reset")
t.disabled = true;
}
}
return true;
}

function checkv11(f) {
res = desactiveFormv11(f);
return true;
}

</SCRIPT>
<table cellpadding=2 cellspacing=0 width="155" bordercolorlight="#000000" bordercolordark="#CFFEFB" border="1">
<tr valign="bottom" align="center" bgcolor=#b0c4de><td align="center"> <B><FONT face=verdana color=#000000 SIZE=1>Que pensez-vous de la série "plus belle la vie" ? </B></td></tr><tr valign="bottom" align="center" bgcolor=#87ceeb><td align="center">
<form onSubmit="return checkv11(this)" method="post" action="http://www.1001-votes.com/vote/mvoteres11.php" target='_blank'><TABLE cellpadding=0 cellspacing=0>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="1" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>inutile</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="2" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>fade</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="3" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>sa existe toujours?!<IMG
src="http://www.1001-votes.com/vote/images/smileys/smil-cligne.gif"
border='0'></font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="4" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>j'aime bien les séries avec des acteurs amateurs..</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="5" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>vous avez dit?</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="6" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>ce n'est pas une secte ?</font>
</TD>
</TR>
<TR>
<TD VALIGN=top>
<input type="radio" name="vote" value="7" style="border-width: 0; background-color: #87ceeb" >
</TD>
<TD ALIGN=LEFT>
<FONT face=verdana size=1 color=#000000>sans opinion <IMG
src="http://www.1001-votes.com/vote/images/smileys/smil-chut.gif"
border='0'></font>
</TD>
</TR>
</TABLE> <BR> <input type="hidden" name="idv" value="64775">
<input type="hidden" name="lg" value="fr">
<input type="hidden" name="ncom" value="1">
<input type="hidden" name="ce" value="#b0c4de">
<input type="hidden" name="cp" value="#87ceeb">
<input type="hidden" name="pck" value="7">
<input type="hidden" name="dta" value="3598433994">
<input type="hidden" name="io" value="57">
<input type="hidden" name="ct" value=#000000>
<font size=1>
<INPUT TYPE="submit" VALUE=" Je vote » " onClick="this.value='Vote envoyé'" style="font-size: 10; color:#000000; background-color:#87ceeb; border-color:#000000; border-width: 1;" > <BR><BR><a href='http://www.1001-votes.com/vote/mvoteres11.php?idv=64775&lg=fr&ncom=1' target='_blank'><font face=verdana size=1 color=#000000>résultats »</a>
<BR><a href='http://www.1001-votes.com/vote/fond.php?mcat=-1&lg=fr' target='_blank'><font color=#000000></a><BR>
</form>
</table>

<!-- fin du code sondage 1001v 1.2 -->

1 réponse

Utilisateur anonyme
5 janv. 2008 à 11:05
Long code! Je ne m'y conais pas beaucoup en javascript. Personnellement, je vous conseille de mettre dewplayer (c'est du javascript) et de mettre du css de fçon à ce que vos deux lecteurs soient comme vous le souhaitez. Je pense que c'est possible aussi en javascript mais ça doit être assez compliqué.

Ps : pour le css : https://openclassrooms.com/fr/
0

Discussions similaires