Newsletter
Liste des sujets

Comment centrer mon code HTLM ??

gt007
gt007
Niveau 11
14 mai 2003 à 00:26:20

salut

j´ai 1 code htlm qui est diaporama de photos...
mais quand je le mais il est pas centrer il est sur la gauche que fo t´il que je rajoute et ou ? ?

voila le code

< BODY><table border="0" cellpadding="0">
< caption><strong></strong></caption>
< tr>
< td width="100%"><img
src="http://membres.lycos.fr/gt007/hpbimg/ME000025<BR>1005_2.jpg" width="579" height="434" name="photoslider"></td>
< /tr>
< tr>
< td width="100%"><form method="POST" name="rotater">
< div align="center"><center><p>
< SCRIPT language="JavaScript" title="G1SCRIPT">
//Script Généré sur le Site http://www.G1SCRIPT.COM
// © genered by tanguy@crollen.com

var photos=new Array()
var text=new Array()
var which=0
var what=0

//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="http://"
photos[1]="http://"
photos[2]="http://"
photos[3]="http://"

//change coresponding description
text[0]=""
text[1]=""
text[2]=""

window.onload=new
Function("document.rotater.description.value=text[
0]")

function backward(){
if ( which>0){
window.status=´´
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];
}
}

function forward(){
if ( which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];
}
else window.status=´Fin de la Gallerie --> Visiter G1Script.Com´
}

function type()
{
alert("This textbox will only display default comments")
}
//Identifiant du script: 62
//Mis en ligne: 26/09/02
//By TANGUY
< /SCRIPT>
< p><input type=text name="description" style="width:100px" size=50>

< p><input type="button" value="<<Back" name="B2"
onClick="backward()"> < input type="button" value="Next>>" name="B1"
onClick="forward()"><br></p>
< /center></div>
< /form>
< /td>
< /tr>
< /table>
< /BODY>

à+

gt007
gt007
Niveau 11
14 mai 2003 à 22:03:18

SVP

buz-l-orage
buz-l-orage
Niveau 10
14 mai 2003 à 23:20:42

flemme de tout lire mais essaies de mettre align="center" ds la table

Pseudo supprimé
Pseudo supprimé 15 mai 2003 à 07:03:42

plus simple tu mets

< center>

au début de ton code
et tu mets

< /center>

à la fin . ..

gt007
gt007
Niveau 11
15 mai 2003 à 11:25:42

merci ; -)

Sous forums
  • Aide à l'achat Mac
  • Macintosh
  • Création de Jeux
  • Programmation
  • Création de sites web
  • Linux
  • Internet
  • Steam Deck
  • Hardware
La vidéo du moment