Aller au contenu

Vincentow

Messages recommandés

Membre, 31ans Posté(e)
Vincentow Membre 12 messages
Baby Forumeur‚ 31ans‚
Posté(e)

Comment importer un script javascript et une feuille de style pour alleger mon code.Merci

Voici mon code:

<style type="text/css">

#tableau {

width: 185px;

height: 25px;

border-top:1px solid #404040;

border-right:1px solid #404040;

border-bottom:1px solid #404040;

background: #f0f0f0;

overflow: hidden;

}

.text {

color: red;

}

.button {

border: 1px solid;

background: #97b9e6;

}

</style>

<script type="text/javascript">

var doit = true

function showm(oa,plus,ob,oc) {

if(doit) {

document.getElementById(oa).style.height = '80';

doit = false

if(document.getElementById(ob).style.visibility == 'visible') {

document.getElementById(oa).style.height = '200';

doit = false

}

if(document.getElementById(oc).style.visibility == 'visible') {

document.getElementById(oa).style.height = '175';

doit = false

}

}

else {

document.getElementById(oa).style.height = '25';

doit = true

}

}

function ouvrir(oa,ob,oc) {

if (document.getElementById(oa).style.visibility == 'hidden')

{

if (document.getElementById(oc).style.visibility == 'visible') {

document.getElementById(oc).style.visibility = 'hidden';

document.getElementById(oc).style.display = 'none';

}

if (oa == 'compte') {

document.getElementById(ob).style.height = '200';

}

if (oa == 'connexion') {

document.getElementById(ob).style.height = '175';

}

document.getElementById(oa).style.visibility = 'visible';

document.getElementById(oa).style.display = 'inline';

}

else

{

document.getElementById(ob).style.height = '80';

document.getElementById(oa).style.visibility = 'hidden';

document.getElementById(oa).style.display = 'none';

}

}

function info()

{

if (document.form1.pseudo1.value!="") {

document.form1.pseudo1.style.color = 'green';

}

else {

document.form1.pseudo1.style.color = 'red';

}

if (document.form1.passe1.value!="") {

document.form1.passe1.style.color = 'green';

}

else {

document.form1.passe1.style.color = 'red';

}

if (document.form1.passe2.value!="") {

if (document.form1.passe2.value==document.form1.passe1.value) {

document.form1.passe2.style.color = 'green';

}

else {

document.form1.passe2.style.color = 'red';

}

}

else {

document.form1.passe2.style.color = 'red';

}

}

function alert(oa,ob) {

document.getElementById(oa).style.height = '225';

document.getElementById(ob).style.visibility = 'visible';

document.getElementById(ob).style.display = 'inline';

}

</script>

Lien à poster
Partager sur d’autres sites

Annonces
Maintenant
Membre, 31ans Posté(e)
Vincentow Membre 12 messages
Baby Forumeur‚ 31ans‚
Posté(e)

C'est bon,j'ai trouvé ! C'est :

<style type="text/css">

@import url(http://[...].css);

</style>

<script type="text/javascript" src="[...].js"></script>

Lien à poster
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×