bonjour
j'ai trouvé un script (text défilant) Je voudrai mettre le code js dans un fichier séparé .js
1 J'ai créé un fichier text_défilant.js avec le code javascript sans les balises<script></script>
2 j'ai mis le code suivant dans le <head>dans ma page accueil.html
mais je ne vois pas comment le fichier text_defi.js peut être appelé
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <head> <script language="JavaScript" type="text/javascript" src="text_defi.js"></SCRIPT> </head> <body> <div style="visibility: visible; position:absolute; left:0px; top:5px; width:488px" id="divNewsCont"> <div style="font-family: arial,helvetiva; font-size: 10px; color: rgb(255, 255, 255); left: 0px; top: 41px; position:absolute; width:391px" id="divNews"><a id="divNewsObjectlink" target="_top" style="text-decoration: none; font-size: 10px; color: rgb(0, 0, 0);" href="http://www.">October 30, 2007<br>The design of the template pages is now more informative.</a></div> </div> </body>
merci pour votre aide
Partager