A voir également:
- Besoin d'aide pour html
- Editeur html - Télécharger - HTML
- Espace html ✓ - Forum HTML
- [**] Balise pour un espace vide en hml. Merci ✓ - Forum Webmastering
- /Var/www/html/index.html ✓ - Forum Linux / Unix
- Html download - Télécharger - HTML
2 réponses
Il faut passer par du DHTML pour faire ca.
Voici un exemple:
<html>
<head>
</head>
<body>
<center>
<p>Besoin d'aide pour html ?</p>
<p><img src="http://wtmgroup.free.fr/images/ghaleb_m.gif" border="2"></p>
</center>
<script>
var largeur = screen.width;
var pos = 150;
document.write('<DIV ID="comment" STYLE="position:absolute; left:');
document.write((largeur / 2) - pos);
document.write('px; top:480px; width:300px; height:30px;"><font color=red>Et voila du texte sur une image.<br>tu n as plus qu a rajouter un code pour recalculer la position du div en fonction de la resolution de l ecran du visiteur et de la taille de son ecran<br>Bonne chance :)</font></DIV>');
</script>
</body>
</html>
Bonne soiree.
--
julien barbier
Voici un exemple:
<html>
<head>
</head>
<body>
<center>
<p>Besoin d'aide pour html ?</p>
<p><img src="http://wtmgroup.free.fr/images/ghaleb_m.gif" border="2"></p>
</center>
<script>
var largeur = screen.width;
var pos = 150;
document.write('<DIV ID="comment" STYLE="position:absolute; left:');
document.write((largeur / 2) - pos);
document.write('px; top:480px; width:300px; height:30px;"><font color=red>Et voila du texte sur une image.<br>tu n as plus qu a rajouter un code pour recalculer la position du div en fonction de la resolution de l ecran du visiteur et de la taille de son ecran<br>Bonne chance :)</font></DIV>');
</script>
</body>
</html>
Bonne soiree.
--
julien barbier