CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

[Design] problème très gênant

naok
naok
Niveau 10
27 août 2006 à 15:07:38

Bonjour :-d

je travaille sur un new webdesign fait en Css/Xhtml et en javascript, mais j´ai un très très gros problème :snif:

Je vous explique:

J´ai coder mon site comme d´ab en <div></div> ...

Je l´ai tester via le visionneur de notpad++, tout va bien, mais ya 10 minute quand je l´ai uploadé sur mon ftp, malheur le design ressemble pas du tout à se que j´ai vue lors du codage, pourtant je l´ai visionner avec FF.

Mais, quand je le regarde avec IE (sur mon ftp) c´est le zolie ( :o)) ) design que j´ai fait.

Voila se que sa donne sur FF quand je le visionne (quand il n´est pas sur le ftp) :

http://naok.keo.in/host/upload/mincedesign.gif

voila le lien quand il est sur le Ftp (à voir avec FF et IE pour voir le problème ...)

http://naok.keo.in/newkit/InformKit/

code source:

Xhtml >>
http://simmstein.be/wall-eTwVyl17-xhtml.htm
Css >>>
http://simmstein.be/wall-2Wkufycj-css.htm

Si vous pouvez m´aider sa serait sympa, et :merci: d´avance.

Amicalement, naok :)

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:12:14

T´as pas fait beaucoup de fautes, c´est agréable à voir :ok:

Bon je vais chercher le problème.

naok
naok
Niveau 10
27 août 2006 à 15:13:47

merci :)

xhtml >>>
http://simmstein.be/wall-nvEfuQB6-xhtml.htm

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:15:02

<div style="float: top;">

<table colpadding="0" cellspacing="0" style="height: 70px; width: 100%; background-color: #D4D0C8; border-style: solid; border-width: 1px; border-color: #000000;">

<tr>

<td style="width: 50%; height: 70px; border-width: 0px; background-color: #D4D0C8;">
<div align="center">
<a target="_blank" href="
http://www.keoconcept.com&quot;&gt;&lt;img
src="
http://00keoconcept.keogratuit.com/banniere/b
anniere.png" border="0"></a>
</div>
</td>

<td style="width: 50%; border-width: 0px; background-color: #D4D0C8;">
<div align="center">
<a href="http://www.assentek.com/catalog/" target="_blank"><img border="0"
src="
http://00assentek.keogratuit.com/assentek.gif
"></a>
</div>
</td>

</tr>

<tr style="background-color: #000000; text-align: center; height: 20px;">
<td style="border-width: 0px; background-color: #000000;">
<div align="center">
<a target="_blank"
href="
http://00keoconcept.keogratuit.com/joomla/co
mponent/option,com_simplefaq/task,display/Itemid,3
4/catid,6/page,1/#FAQ1"><font color="#ffffff" size="2">Comment faire disparaitre cette publicité ?< /a></font>
</td>
<td style="text-align: center; border-width: 0px; background-color: #000000;"><font color="#ffffff" size="2">Hébergé GRATUITEMENT par <a target="_blank" href="
http://www.keohosting.net&quot;&gt;&lt;font
color="#ffffff">
http://www.keohosting.net&lt;/font&gt;&lt;/
a></font>
</td>
</tr>

</table>
</div>
<br />
<!DOCTYPE html PUBLIC "–//W3C//DTD XHTML 1.0 Stric
t//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1–strict.dtd
">
<html>
<head>
<title>Test design</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design sombre" href="style.css"/>
<style type="text/css">

  1. pscroller1{

width: 200px;
height: 100px;
border: 1px solid black;
padding: 5px;
background-color: lightyellow;
}

  1. pscroller2{

width: 350px;
height: 20px;
border: 1px solid black;
padding: 3px;
}

  1. pscroller2 a{

text-decoration: none;
}

.someclass{ //class to apply to your scroller(s) i
f desired
}

</style>

<script type="text/javascript">
var pausecontent=new Array()
pausecontent[0]=´<a href="#">Img-Host</a><br />L´upload d´image 100% gratuit !! ´
pausecontent[1]=´<a href="#">Pub 2</a><br />##############################.´
pausecontent[2]=´<a href="#" target="_new">#######</a><br />##########.´

var pausecontent2=new Array()
pausecontent2[0]=´<a href="
http://www.news.com&quot;&gt;News.com: Technology and business reports</a>´
pausecontent2[1]=´<a href="
http://www.cnn.com&quot;&gt;CNN: Headline and breaking news 24/7</a>´
pausecontent2[2]=´<a href="
http://news.bbc.co.uk&quot;&gt;BBC News: UK and international news</a>´

</script>

<script type="text/javascript">
function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display
information
this.delay=delay //Delay between msg change, in mi
liseconds.
this.mouseoverBol=0 //Boolean to indicate whether
mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array f
or hidden div
document.write(´<div id="´+divId+´" class="´+divClass+´" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="´+divId+´1">´+content[0]+´</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="´+divId+´2">´+content[1]+´</div></div>´)
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2
browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5
+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM
browsers, just start scroller after 0.5 sec

setTimeout(function(){scrollerinstance.initialize(
)}, 500)
}

//
--------------------------------------------------
-----------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start
up down animation
//
--------------------------------------------------
-----------------

pausescroller.prototype.initialize=function(){

this.tickerdiv=document.getElementById(this.ticker
id)

this.visiblediv=document.getElementById(this.ticke
rid+"1")

this.hiddendiv=document.getElementById(this.ticker
id+"2")

this.visibledivtop=parseInt(pausescroller.getCSSpa
dding(this.tickerdiv))
//set width of inner DIVs to outer DIV´s width min
us padding (padding assumed to be top padding x 2)

this.visiblediv.style.width=this.hiddendiv.style.w
idth=this.tickerdiv.offsetWidth-(this.visibledivto
p*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this

document.getElementById(this.tickerid).onmouseover
=function(){scrollerinstance.mouseoverBol=1}

document.getElementById(this.tickerid).onmouseout=
function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose reference
s in IE
window.attachEvent("onunload",
function(){scrollerinstance.tickerdiv.onmouseover=
scrollerinstance.tickerdiv.onmouseout=null})

setTimeout(function(){scrollerinstance.animateup()
}, this.delay)
}

//
--------------------------------------------------
-----------------
// animateup()- Move the two inner divs of the scr
oller up and in sync
//
--------------------------------------------------
-----------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if
(parseInt(this.hiddendiv.style.top)>(this.visibled
ivtop+5)){

this.visiblediv.style.top=parseInt(this.visiblediv
.style.top)-5+"px"

this.hiddendiv.style.top=parseInt(this.hiddendiv.s
tyle.top)-5+"px"

setTimeout(function(){scrollerinstance.animateup()
}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()

setTimeout(function(){scrollerinstance.setmessage(
)}, this.delay)
}
}

//
--------------------------------------------------
-----------------
// swapdivs()- Swap between which is the visible a
nd which is the hidden div
//
--------------------------------------------------
-----------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, d
iv2){
div1.style.top=this.visibledivtop+"px"

div2.style.top=Math.max(div1.parentNode.offsetHeig
ht, div1.offsetHeight)+"px"
}

//
--------------------------------------------------
-----------------
// setmessage()- Populate the hidden div with the
next message before it´s visible
//
--------------------------------------------------
-----------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently
over scoller, do nothing (pause it)

setTimeout(function(){scrollerinstance.setmessage(
)}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1

this.hiddendiv.innerHTML=this.content[this.hiddend
ivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ /
/get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getP
ropertyValue("padding-top")
else
return 0
}

</script>
</head>
<body>
<center><div id="header">
petit texte de merde pour un super design<br />
(c) 2006 by naok :p)<br />
Welcome in My New Design off Css/ Html :p)
<br /><br />
<div id="slantedmenu">
<ul>
<li><a href="#">index</a></li>
<li><a href="#">lien 1</a></li>
<li><a href="#">lien 2</a></li>
<li><a href="#">lien 3</a></li>
<li><a href="#">lien 4</a></li>
<li><a href="#">lien 5</a></li>
<li><a href="#">lien 6</a></li>
<li><a href="#">lien 7</a></li>
<li><a href="#">lien 8</a></li>
<li><a href="#">lien 9</a></li>
<li><a href="#">lien 10</a></li>
<li><a href="#">lien 12</a></li>
</ul>
</div>
</center>
<div id="menu">
<ul class="glossymenu">
<li><a href="#">index</a></li>
<li><a href="#">lien 1</a></li>
<li><a href="#">lien 2</a></li>
<li><a href="#">lien 3</a></li>
<li><a href="#">lien 4</a></li>
<li><a href="#">lien 5</a></li>
<li><a href="#">lien 6</a></li>
<li><a href="#">lien 7</a></li>
<li><a href="#">lien 8</a></li>
<li><a href="#">lien 9</a></li>
<li><a href="#">lien 10</a></li>
<li><a href="#">lien 12</a></li>
</ul>
<br /><br />
</div>
<div id="corps">
<b>Some title</b> <br />
Some text here.Some text here. Some text here.<br />
Some text here.Some text here. Some text here.<br />
Some text here.Some text here. Some text here.<br />
Some text here.Some text here. <br />
<center><script type="text/javascript">

//new pausescroller(name_of_message_array, CSS_ID,
CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 3000)/*
document.write("<br />")
new pausescroller(pausecontent2, "pscroller2", "someclass", 2000)*/

</script></center>
</div>
</body>
</html>

==> Essaie avec ceci et dis moi ce que ça donne.

naok
naok
Niveau 10
27 août 2006 à 15:17:06

sa fait toujour idem, actualise la page

c´est un probleme trs chian ce truc :malade:

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:25:24

Ben déja, vire moi tout ce JS et met le doctype. On verras après.

naok
naok
Niveau 10
27 août 2006 à 15:26:54

js virer ... mais toujour le probleme :s

BlueFoxRed
BlueFoxRed
Niveau 3
27 août 2006 à 15:32:22

je JS d´en haut est obliguatoire par l´hébergeur. Soie c´est un truck en haut, soie on met [keo_pub_468] :) Après moi je sais pas comment dsl l´Homme Sans Nom ( :lol: ).

naok
naok
Niveau 10
27 août 2006 à 15:33:29

ouai, le tag de ******
ps: stop avec l´homme sans nom :rire: merci :)

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:34:08

Bon maintenant que le JS est viré et que le doctype est mis (enfin j´éspère), je vais plonger dans le code, parce que ton JS il alourdit enormément la page !

naok
naok
Niveau 10
27 août 2006 à 15:38:48

yoshi >>> voila le code coloré:

http://simmstein.be/wall-tvGLzIrj-xhtml.htm

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:39:59

C´est bon, remplace ton CSS par :

body
{
width:990px;
height:760px;
background-color:#808080;
}

  1. header

{
width:100%;
background-color:#808080;
border:1px solid black;
}

/* barre dans le header */

  1. slantedmenu{

font-weight: bold;
font-size:15px;
}

  1. slantedmenu:after{

content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

  1. slantedmenu ul{

text-indent: 10px;
padding: 3px 0;
margin: 0;
background-color: #e0e0e0;
border: 1px solid #bebebe;
text-align: left;
}

  1. slantedmenu ul li{

display: inline;
}

  1. slantedmenu ul li a{

color: #494949;
padding: 3px 0;
padding-right: 25px;
margin: 0;
text-decoration: none;
background: transparent url(img/slantdivider.gif) top right no-repeat;
}

  1. slantedmenu ul li a:visited{

color: #808080;
}

  1. slantedmenu ul li a:hover{

color: black;
}
/* fin des barres */

/* les effets dans le menu */
.glossymenu{
list-style-type: none;
margin: 5px 0;
padding: 0;
width: 150px;
border-bottom-width: 0;
}

.glossymenu li a{
background: white url(img/img1menu.png) repeat-x bottom left;
font: bold 13px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
color: white;
display: block;
width: auto;
padding: 3px 0;
padding-left: 10px;
text-decoration: none;

}

  • html .glossymenu li a{

width: 160px;
}

.glossymenu li a:visited, .glossymenu li a:active{
color: white;
}

.glossymenu li a:hover{
background-image: url(img/img1menu2.png);
color:#0000FF;
}
/*fin des effets */

  1. menu

{
text-align: center;
border:1px solid black;
float:left;
width:150px;
height:100%;
}

  1. corps

{
width:700px;
float:left;
text-align:center;
margin-left:20px;
margin-top:20px;
background-color:#808080;
}

  1. pscroller1{

width: 200px;
height: 100px;
border: 1px solid black;
padding: 5px;
background-color: lightyellow;
}

!! Attention !!

Le codes est assez sale, pas indenté mais ce qui choque le plus c´est certaines balises mal imbriquées.

naok
naok
Niveau 10
27 août 2006 à 15:48:30

:merci:
sa marche
:merci:

le probleme vener d´où ?

comment ca mal imbriquées ?

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 15:54:29

Ca venait de ton CSS a la propriété header, t´avais mis un height or on utilise rarement cette propriété étant donné qu´elle prévoit à l´avance la hauteur du machin. Il suffisait donc de l´enlever.

Dans le html, tu as par exemple : <center><div></center></div>

Sinon, je te conseille de changer d´hebergeur car il rajoute un code html a tes pages avant le doctype ce qui rend forcément tes pages invalides.

naok
naok
Niveau 10
27 août 2006 à 15:58:01

ok merci

pour l´hébérgeur si tu en na un gratuit et sans pub ... je suis prenant :)

Pseudo supprimé
Pseudo supprimé 27 août 2006 à 16:01:34

Fout de moi ? :rire2:

regarde vers le milieu de la page des topics.

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