Fork me on GitHub

Rapport de message :*
 

Re: Ajout de javascript et css

Titre du sujet : Re: Ajout de javascript et css
par hellboy sur 25/05/2011 02:09:57

Salut,

Eh bien, si tu es capable de le faire fonctionner, je suis bien content de voir que le javascript fonctionne bien, par contre, j'ai de la difficulté de savoir pourquoi ça ne fonctionne pas de mon coté. Il y a certains script qui fonctionnent, mais celui-là, aucun succès pour moi.

voici mon code de départ entre les HEAD
Citation :

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>

<!-- do not remove
framework by bleekk
www.bleekk.com
-->
<!-- Theme name -->
<{assign var=theme_name value=$xoTheme->folderName}>

<!-- Directory html files -->
<{assign var=theme_name value=$xoTheme->folderName|cat:'/xotpl'}>

<!-- Directory html plugins files -->
<{assign var=theme_plugin value=$xoTheme->folderName|cat:'/xoplugins'}>

<!-- Additionals Scripts -->
<{includeq file="$theme_name/xoscripts.html"}>

<!-- Titel und meta -->
<meta http-equiv="Content-Type" content="text/html; <{$xoops_charset}>"/>
<title><{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{/if}><{$xoops_sitename}></title>
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="Xoops" />

<!-- Favicon -->
<link rel="shortcut icon" type="image/ico" href="<{xoImgUrl icons/favicon.ico}>" />
<link rel="icon" type="image/png" href="<{xoImgUrl icons/icon.png}>" />

<!-- CSS -->
<link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoAppUrl xoops.css}>" />
<link rel="stylesheet" type="text/css" media="all" href="<{xoImgUrl style.css}>" />

<!-- Module Header -->
<{$xoops_module_header}>

</head>


et j'ajoute ce code juste après le début du HEAD

Citation :

<SCRIPT LANGUAGE="JavaScript" SRC="http://monsiteweb.com/AnimatedFader.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

//Script submitted to and featured on
//http://www.dynamicdrive.com

/*
* FadingText(divName, numSteps, BGColor)
* divName : Must match the DIV names defined at the end of the BODY)
* numSteps: The number of steps in the fading transition
* BGColor : The background colour of the DIV or document.
*/
FadingText('fade1', 10,"FFFFFF");

/*** The "Frame Interval" Smaller = faster ***/
FadeInterval=30;

</SCRIPT>


J'imagine que tu as mis ça autrement pour que ça fonctionne ?

Le test que tu as fait, c'est uniquement avec les blocs personnalisés ou bien si tu as testé aussi avec le module Page?

Merci
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

31 Personne(s) en ligne (26 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 31 | Plus ...