W3c me recalle pour un petit script....
LaBuse-Franzz
Messages postés
2
Statut
Membre
-
LaBuse-Franzz Messages postés 2 Statut Membre -
LaBuse-Franzz Messages postés 2 Statut Membre -
Bonjour à tous !
C'est mon premier post sur ce Forum...
Bonjour, je suis en train de construire ma page, et celle ci est validée.
Pour finaliser j'insère une script, genre "scrollable content", mais le w3c validator me liste une foule d'erreurs... Je n'ai pas de compétences en ce domaine. Auriez-vous une idée afin que ce script soit valide?
Je suis pas doué en Javascript, alors un coup de main, ou une bopnne explication ne serait pas de trop....
Merci d'avance !
• Page sans le script valide
http://validator.w3.org/...
• Page avec le script non valide
http://validator.w3.org/...
C'est mon premier post sur ce Forum...
Bonjour, je suis en train de construire ma page, et celle ci est validée.
Pour finaliser j'insère une script, genre "scrollable content", mais le w3c validator me liste une foule d'erreurs... Je n'ai pas de compétences en ce domaine. Auriez-vous une idée afin que ce script soit valide?
Je suis pas doué en Javascript, alors un coup de main, ou une bopnne explication ne serait pas de trop....
Merci d'avance !
• Page sans le script valide
http://validator.w3.org/...
• Page avec le script non valide
http://validator.w3.org/...
A voir également:
- W3c me recalle pour un petit script....
- Script vidéo youtube - Guide
- Petit point vert snap ✓ - Forum Snapchat
- Petit 2 ✓ - Forum Windows
- Mas script - Accueil - Windows
- Ghost script - Télécharger - Polices de caractères
2 réponses
Bonjour
la solution :
entre les balise <script language="JavaScript1.2">
<![CDATA[
// et ici le code de ton script
]]>
</script>
la solution :
entre les balise <script language="JavaScript1.2">
<![CDATA[
// et ici le code de ton script
]]>
</script>
Salut Lapinkiller!!!
Merci poour le post... Je viens d'esssayer la solution, mais celle ci ne fonctionne pas, certainement du à mon " novicisme" en la matière... Le validator me retourne blindé d'erreurs, et mon script ne fonctionne plus...
Je me demandais, pour cette page, est il possible de faire un script externe?
Lors de mes tests de débutant, j'ai essayé de faire des feuilles externes .js, et cela marche, par exemple, pour un simple inffet, genre reflet ou coins arrondis... ( il faut bien commencer par le début... )
Dans ce cas, je n'arrive pas à faire ma feuille de style externe, aurais tu une piste pour moi ? je peux te copier coller mon code
( clair que si tu maches le travail, cela pourrait parraitre comme de la fénéantise, moi, je le vois polutot comme un truc du genre, que si une personne me montre la bonne manière de procéder, je pourrai la répéter facilement, et de ce fait l'intégrer )...
</head>
<body onload="MM_preloadImages('btn01.gif','btn11.gif','btn22.gif','btn33.gif')">
<div id="global">
<div id="gauche">
<h1>Construction d'un site </h1>
<h2>Micro Paiement
Mettre cette page dans mes accès direct</h2>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=2
if (iens6){
document.write('<div id="container" style="position:relative;width:430px;height:300px;border:0px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:430px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=430 height=160 clip="0,0,400,300">
<layer name="nscontent" width=430 height=300 visibility=hidden>
<!--INSERT CONTENT HERE-->
<h3>Congratulations !</h3>
<h4>This means that the resource in question identified itself as "XHTML 1.0 Transitional" and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used).
"valid" Icon(s) on your Web page To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:</h4>
<h5>A full list of icons, with links to alternate formats and colors, is available: If you like, <br /><br />
you can download a copy of the icons to keep in your local web directory, and
change the HTML fragment above to reference your local image rather than the
one on this server. Validating CSS Style Sheets This means that the you like,
you can download a copy of the icons to keep in your local web directory, and
change the HTML fragment above to reference your local image rather than the
one on this server. Validating CSS Style Sheets This means that the resource
in question identified itself as "XHTML 1.0 Transitional"
If you use CSS in your document, you can using the W3C CSS Validation Service.</h5>
<!--END CONTENT-->
</layer>
</ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="400px"><td><p align="center">
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="down.gif" border=0></a></p></td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
Purée, pas facile àçà gérer tout cela...
Bah, merci d'avance !
Merci poour le post... Je viens d'esssayer la solution, mais celle ci ne fonctionne pas, certainement du à mon " novicisme" en la matière... Le validator me retourne blindé d'erreurs, et mon script ne fonctionne plus...
Je me demandais, pour cette page, est il possible de faire un script externe?
Lors de mes tests de débutant, j'ai essayé de faire des feuilles externes .js, et cela marche, par exemple, pour un simple inffet, genre reflet ou coins arrondis... ( il faut bien commencer par le début... )
Dans ce cas, je n'arrive pas à faire ma feuille de style externe, aurais tu une piste pour moi ? je peux te copier coller mon code
( clair que si tu maches le travail, cela pourrait parraitre comme de la fénéantise, moi, je le vois polutot comme un truc du genre, que si une personne me montre la bonne manière de procéder, je pourrai la répéter facilement, et de ce fait l'intégrer )...
</head>
<body onload="MM_preloadImages('btn01.gif','btn11.gif','btn22.gif','btn33.gif')">
<div id="global">
<div id="gauche">
<h1>Construction d'un site </h1>
<h2>Micro Paiement
Mettre cette page dans mes accès direct</h2>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=2
if (iens6){
document.write('<div id="container" style="position:relative;width:430px;height:300px;border:0px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:430px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=430 height=160 clip="0,0,400,300">
<layer name="nscontent" width=430 height=300 visibility=hidden>
<!--INSERT CONTENT HERE-->
<h3>Congratulations !</h3>
<h4>This means that the resource in question identified itself as "XHTML 1.0 Transitional" and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used).
"valid" Icon(s) on your Web page To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:</h4>
<h5>A full list of icons, with links to alternate formats and colors, is available: If you like, <br /><br />
you can download a copy of the icons to keep in your local web directory, and
change the HTML fragment above to reference your local image rather than the
one on this server. Validating CSS Style Sheets This means that the you like,
you can download a copy of the icons to keep in your local web directory, and
change the HTML fragment above to reference your local image rather than the
one on this server. Validating CSS Style Sheets This means that the resource
in question identified itself as "XHTML 1.0 Transitional"
If you use CSS in your document, you can using the W3C CSS Validation Service.</h5>
<!--END CONTENT-->
</layer>
</ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="400px"><td><p align="center">
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="down.gif" border=0></a></p></td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
Purée, pas facile àçà gérer tout cela...
Bah, merci d'avance !