tout petit probleme d'affichage

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : tout petit probleme d'affichage

par lefox88500 » 13 juil. 2005, 15:37

le code si dessus c'est le bon

merci

Re: tout petit probleme d'affichage

par mere-teresa » 13 juil. 2005, 14:23


Si le problème ne vient pas de là...vire tout le Javascript du HTML...et montre nous juste le code source HTML du menu. Tout simplement.

par lefox88500 » 13 juil. 2005, 14:20

je les remplacer par sa
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}

var text=new Array();
var thelink=new Array();


text[0]="Liste des News"
text[1]="Rediger des News";
text[2]="3";
text[3]="4";
text[4]="5";


thelink[0]="identification1.php";
thelink[1]="identification2.php";
thelink[2]="1";
thelink[3]="2";
thelink[4]="3";

var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}

for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL>&nbsp;'+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL>&nbsp;<A HREF="'+thelink[i]+'" target="'+linktarget+'">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}


</script>
mais sa ne marche toujours pas

je en compren pa la avan il marchait

Re: tout petit probleme d'affichage

par mere-teresa » 13 juil. 2005, 14:11


Si le problème ne vient pas de là...vire tout le Javascript du HTML...et montre nous juste le code source HTML du menu. Tout simplement.

par lefox88500 » 13 juil. 2005, 14:10

oui je sais mais je savais pas comment isolé mon probelme je suis un vrai debutant de 1 semaine a peine

je comprend pas pourquoi y a tout ces poin dinterogation

une idée ???

Re: tout petit probleme d'affichage

par mere-teresa » 13 juil. 2005, 14:06

<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}

var text=new Array();
var thelink=new Array();


tex?????????? ?????†??†???†????5???????????????????????††????????††?????????????????†???????????????????
bility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};



</script>
Tu as remarqué qu'il y avait plein de points d'interrogation dans ton Javascript ?

Si le problème ne vient pas de là...vire tout le Javascript du HTML...et montre nous juste le code source HTML du menu. Tout simplement.

par zeus » 13 juil. 2005, 13:53

Je vais me permettre de te le re-signaler le fait que poster ton code en entier n'est d'aucune utilité.

Je t'avoue même que je n'ai pas envie de lire une telle tartine

Je veux bien t'aider mais essaye d'isoler le problème

tout petit probleme d'affichage

par lefox88500 » 13 juil. 2005, 13:46

bonjour

j'ai juste un petit probleme d'affichage avec ce code
le menu sur le coté sur la gauche n'affiche pas ce que je veux il affiche MENU en gros et nom les differents liens
<html>
<head>
<title>MVM - Manufacture Vosgienne de Meubles</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.popper
{
position : absolute;
visibility : hidden;
}
</style>


<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};


var fromtop=200

function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+fromtop}
else {eval(document.object1.top=eval(window.pageYOffset+fromtop));}
setTimeout("makeStatic()",0);}
</script>

<style>
.nounderline	{
	text-decoration:none
	}
.hl	{
	background-Color : yellow;
	cursor:hand;
	}
.n	{
	cursor:hand;
	}
-->
</style>
</head>
<body>
<table width="1006" height="512" border="2" bgcolor="eef2f2" >
  <tr> 
    <td width="711"bgcolor="eef2f2" ><font size="-3"  face="Verdana, Arial, Helvetica, sans-serif"><img src="logo.jpg" width="62" height="62"><img src="menu_02.gif" width="587" height="62"><img src="index4_02.gif" width="62" height="62"><img src="menu_13.gif" width="711" height="33"></font></td>
    <td width="277" valign="middle" align="middle" bgcolor="eef2f2" height="98"> 
      <p><font size="-3"  face="Verdana, Arial, Helvetica, sans-serif"> 
        <?
$date = date("d-m-Y");
Print("Nous sommes le $date");
?>
        <br>
        <?
$heure = date("H:i");
Print("il est $heure");
?>
        </font></p></td>
  </tr>
  <tr> 
    <td colspan="2">
	<p align="center"><b><font size="3" ><u>News du Site</u></p>
<?
mysql_connect("localhost", "root", "");
mysql_select_db("news");

$retour = mysql_query('SELECT * FROM news ORDER BY id DESC LIMIT 0, 5');
while ($donnees = mysql_fetch_array($retour))
{
?>

<div class="news">
    <h3>
        <? echo $donnees['titre']; ?>
        <em>le <? echo date('d/m/Y \à H\hi', $donnees['timestamp']); ?></em>
    </h3>

   
    <?
    $contenu = nl2br(stripslashes($donnees['contenu'])); 
    echo $contenu;
    ?>

</div>
<?
}
?>	
	</td>
  </tr>
</table>

</body>
<DIV ID="topdeck" CLASS="popper"> </DIV>

<SCRIPT>
var nav = (document.layers); 
var iex = (document.all);
var skn = (nav) ? document.topdeck : topdeck.style;
if (nav) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = get_mouse;

function pop(msg,bak) {
var content ="<TABLE WIDTH=130 BORDER=2 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#000080><TR><TD><TABLE WIDTH=100% BORDER=2 CELLPADDING=2 CELLSPACING=0 BGCOLOR="+bak+"><TR><TD><FONT COLOR=#000000 SIZE=2><CENTER>"+msg+"</CENTER></FONT></TD></TR></TABLE></TD></TR></TABLE>";
if (nav) { 
skn.document.write(content); 
skn.document.close();
skn.visibility = "visible";
}
else if (iex) 
{
document.all("topdeck").innerHTML = content;
skn.visibility = "visible";  
}
}

function get_mouse(e) 
{
var x = (nav) ? e.pageX : event.x+document.body.scrollLeft; 
var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
skn.left = x - 60;
skn.top  = y+20;
}

function kill() 
{
skn.visibility = "hidden";
}
</SCRIPT>


<LAYER visibility="hide" top="20" name="object1" bgcolor="black" left="0" onmouseover="move(214)" onmouseout="move(-214)">

<script language="JavaScript1.2">
function positionmenu(){
move(-214)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 10px ;Z-Index : 20" onmouseover="move(214)" onmouseout="move(-214)">')}
</script>

<table border="0" cellpadding="0" cellspacing="1" width="230" bgcolor="#000000">
<tr><td bgcolor="#0099FF"> <font size="3" face="Arial"><b>Menu</b></font></td>

<script language="JavaScript1.2">
document.write('<td align="center" rowspan="214" width="16" bgcolor="#FF6666"><span style="font-size:11px"><p align="center"><font face="Arial"><B>C<br>o<br>n<br>t<br>e<br>n<BR>u<BR> <BR>d<BR>u<BR> <BR>s<BR>i<BR>t<BR>e</B></font></p></span></TD>')
</script>

</tr>

<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}

var text=new Array();
var thelink=new Array();


tex?????????? ?????†??†???†????5???????????????????????††????????††?????????????????†???????????????????
bility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};


var fromtop=200

function makeStatic() {
if (t[0]="Liste des News"
text[1]="Rediger des News";
text[2]="3";
text[3]="4";
text[4]="5";


thelink[0]="identification1.php";
thelink[1]="identification2.php";
thelink[2]="1";
thelink[3]="2";
thelink[4]="3";

var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}

for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL>&nbsp;'+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL>&nbsp;<A HREF="'+thelink[i]+'" target="'+linktarget+'">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}


</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial">&nbsp; </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
</LAYER>
</tr>
</table>
</html>

merci d'avance