|
|
|
|
Bonjour tout le monde,
Alors j'ai deux problèmes avec mon site,
le premier,
je voudrai mettre de la pub pour plusieurs autres sites, avec des bannières que je trouve sur ces sites, mon problème c'est que elle ne se mettent pas là où je veux. J'ai fait la structure de mon site avec des tableaux, j'ai donc dabord essayer de mettre ma bannière quelque part dans mon tableau, ca n'a pas marché. j'ai ensuite essayé de la positioner avec position absolute, je l'ai fait avec div, span et en css, ca n'a jamais marché, chaque fois ma bannière s'affichait au milieu de ma page. Si vous pouviez m'aider ce serai cool :D
ensuite,
je voudrai mettre des spoilers dans mon site. un spoiler qui se présenterai comme ça.
un ligne de texte Il était blablablablablablablablalba. [+] << et quand on cliquerai sur "+" et ben un texte de par exemple 5 lignes se déplierai juste en dessous de cette ligne.
j'utilise deamweaver MX 2004 et j'ai quelques connaissances en html et css.
Voilà j'espère que vous pourriez m'aider merci d'avance!
Configuration: Windows Vista Firefox 2.0.0.15
Bonjour.
displaydu spoiler. Si il est invisible, on l'affiche. Sinon on le cache. <html>
<head>
<style>
.spoiler {
display:none;
}
</style>
<script language="JavaScript">
function SwitcherTexte(id) {
switch (document.getElementById(id).style.display) {
case 'inline':
document.getElementById(id).style.display ='none';
break;
default :
document.getElementById(id).style.display = 'inline';
}
}
</script>
</head>
<body>
Un exemple de spoiler
<a href=# id="spoil" onClick="SwitcherTexte('spoil_s')" >+</a><br /><span id="spoil_s" class="spoiler">le texte à montrer est ici...</span>
</body> |
Merci mac c'est cool ca marche.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- TemplateBeginEditable name="doctitle" --> <title></title> <!-- TemplateEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; color: #ffffff; } .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #7d7878; } --> </style> <style type="text/css"> <!-- a { text-decoration: none; color:#0000FF; } //.style4 {font-size: medium} .style8 {color: #ffffff} .style10 {color: #000000} .style13 {font-size: large} .style16 {font-family: Verdana, Arial, Helvetica, sans-serif} --> </style> <meta name="Description" content="Ce site est un annuaire de toutes les pétitions qui pourraient aider au destin du monde, car le monde est en danger!" /> <meta name="Keywords" content="site, annuaire, pétition, pétitions, ppm, pétitions pour le monde, destin, actualité, pplm" /> <META HTTP-EQUIV="Content-Language" content="en"> <meta name="reply-to" content="petitionspourlemonde@gmail.com"> <meta name="category" content="Actualités"> <meta name="robots" content="index, follow"> <meta name="distribution" content="global"> <meta name="revisit-after" content="7 days"> </head> <body> <table width="100%" height="167%" border="0"> <tr> <td width="18%" height="113"><a href="http://pplm.hostarea.org" title="petitionspourlemonde" target="_top"><img src="../images/logoppm.jpg" width="206" height="164" alt="logoppm.jpg" border="0"></a></td> <td width="71%"><marquee Class="Scroller" behavior="scroll" direction="left" width="100%" height="19" scrollamount="4" scrolldelay="0" onmouseover="this.stop()" onmouseout="this.start()"> <font size="2" face="Arial, Helvetica, sans-serif"><strong><em>Bonjour et bienvenue!!! Le site est en cours de développement!</em></strong></font> </marquee></td> <td width="11%"> </td> </tr> <tr> <td height="940"> <table width="100%" style="position: absolute; top: 187px; left: 14px; width: 206px;" border="0"> <tr> <td bgcolor="#990000" class="style1" scope="row"><div align="top" class="style3"><a href="../nouveau.htm"class="style8">Site</a></div></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../index.htm" class="style3">Accueil</a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../contacts.htm" class="style3">Contacts </a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../pub.htm" class="style3">Publicité</a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../news.htm" class="style3">Newsletter</a></td> </tr> <tr> <td bgcolor="#990000" class="style1" scope="row"><a href="../petitions.htm" class="style8">Pétitions</a></td> </tr> <tr> <td bgcolor="#ededed" scope="row" class="style3"><div align="top" class="style3"><a href="../ddl.htm" class="style3">Droits de l'homme </a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../environnement.htm" class="style3">Environnement</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../poletsol.htm" class="style3">Politique et Social</a> </div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../international.htm" class="style3">International</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../anim.htm" class="style3">Protection animale</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../divers.htm" class="style3">Divers</a></div></td> </tr> <tr> <td bgcolor="#990000" scope="row"><div align="top" class="style1">Actualité</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Articles</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Manifestations</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Sensibilation</div></td> </tr> <tr> <td height="20" bgcolor="#ededed" class="style3" scope="row">Autres actions </td> </tr> </table> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p></td><td><table width="100%" border="0"> <tr> <td bgcolor="#990000" class="style1"><!-- TemplateBeginEditable name="EditRegion1" --><span class="style13">EditRegionz</span>1<!-- TemplateEndEditable --></td> </tr> </table> <!-- TemplateBeginEditable name="EditRegion2" --> <p class="style1 style10">EditRegion2<br/> <br/> <br/> end </p> <!-- TemplateEndEditable --> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> <div align="right"><?php @include('http://services.hostarea.org/pub/3329.key'); ?></div> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p></td> <td> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <!-id:-!> <!-end:-!></td> </tr> </table> </body> </html> |
Répondre à nefty
|
Je connais pas très bien le php je suis en train de l'apprendre.
|
J'avais aussi pensé à ça ca avait pas marché. chez moi le truc s'affiche aussi un peu a droite, mais tout en haut.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- TemplateBeginEditable name="doctitle" --> <title></title> <!-- TemplateEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; color: #ffffff; } .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #7d7878; } --> </style> <style type="text/css"> <!-- a { text-decoration: none; color:#0000FF; } //.style4 {font-size: medium} .style8 {color: #ffffff} .style10 {color: #000000} .style13 {font-size: large} .style16 {font-family: Verdana, Arial, Helvetica, sans-serif} --> </style> <meta name="Description" content="Ce site est un annuaire de toutes les pétitions qui pourraient aider au destin du monde, car le monde est en danger!" /> <meta name="Keywords" content="site, annuaire, pétition, pétitions, ppm, pétitions pour le monde, destin, actualité, pplm" /> <META HTTP-EQUIV="Content-Language" content="en"> <meta name="reply-to" content="petitionspourlemonde@gmail.com"> <meta name="category" content="Actualités"> <meta name="robots" content="index, follow"> <meta name="distribution" content="global"> <meta name="revisit-after" content="7 days"> </head> <body> <table width="100%" height="167%" border="0"> <tr> <td width="18%" height="113"><a href="http://pplm.hostarea.org" title="petitionspourlemonde" target="_top"><img src="../images/logoppm.jpg" width="206" height="164" alt="logoppm.jpg" border="0"></a></td> <td width="71%"><marquee Class="Scroller" behavior="scroll" direction="left" width="100%" height="19" scrollamount="4" scrolldelay="0" onmouseover="this.stop()" onmouseout="this.start()"> <font size="2" face="Arial, Helvetica, sans-serif"><strong><em>Bonjour et bienvenue!!! Le site est en cours de développement!</em></strong></font> </marquee></td> <td width="11%"> </td> </tr> <tr> <td height="940"> <table width="100%" style="position: absolute; top: 187px; left: 14px; width: 206px;" border="0"> <tr> <td bgcolor="#990000" class="style1" scope="row"><div align="top" class="style3"><a href="../nouveau.htm"class="style8">Site</a></div></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../index.htm" class="style3">Accueil</a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../contacts.htm" class="style3">Contacts </a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../pub.htm" class="style3">Publicité</a></td> </tr> <tr> <td bgcolor="#ededed" class="style3" scope="row"><a href="../news.htm" class="style3">Newsletter</a></td> </tr> <tr> <td bgcolor="#990000" class="style1" scope="row"><a href="../petitions.htm" class="style8">Pétitions</a></td> </tr> <tr> <td bgcolor="#ededed" scope="row" class="style3"><div align="top" class="style3"><a href="../ddl.htm" class="style3">Droits de l'homme </a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../environnement.htm" class="style3">Environnement</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../poletsol.htm" class="style3">Politique et Social</a> </div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../international.htm" class="style3">International</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../anim.htm" class="style3">Protection animale</a></div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3"><a href="../divers.htm" class="style3">Divers</a></div></td> </tr> <tr> <td bgcolor="#990000" scope="row"><div align="top" class="style1">Actualité</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Articles</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Manifestations</div></td> </tr> <tr> <td bgcolor="#ededed" scope="row"><div align="top" class="style3">Sensibilation</div></td> </tr> <tr> <td height="20" bgcolor="#ededed" class="style3" scope="row">Autres actions </td> </tr> </table> <td><table width="100%"> <tr> <td width="100%" bgcolor="#990000" class="style1"><!-- TemplateBeginEditable name="EditRegion1" --><span class="style13">EditRegionz</span>1<!-- TemplateEndEditable --></td> </tr></table> <!-- TemplateBeginEditable name="EditRegion2" --> <p class="style1 style10">EditRegion2<br/> <br/> <br/> end </p> <!-- TemplateEndEditable --> <p> </p> <div align="right"><?php @include('http://services.hostarea.org/pub/3329.key'); ?></div> </td> <td> <img src="../images/wwf.jpg" /> </td> </tr> </table> </body> </html> |
Répondre à nefty
|