From: Eric.Reiter@ic.lu
Date: 20/08/2002 - 14:12
Bonjour
En SVG, je dispose du texte suivant :
<text fill="#CBC6B5" x="425" y="325" onclick="fr()">VERSION FRANCAISE
<animate attributeName="fill" from="#CBC6B5" to="black" dur="2s" begin="20s"
fill="freeze"/>
</text>
Je souhaiterais lui ajouter un lien http. Pour cela, j ai ajoute a la balise
<text> l attribut onclick="fr()" et j ai defini la fonction fr() dans le
fichier SVG de la maniere suivante :
<script><![CDATA[
function fr()
{open.location(http://www.imprimerie-centrale.lu/html_fr/presentation/index.
html);
}
]]></script>
Mais cela ne marche pas. Au chargement de la page, IE me donne une erreur de
compilation JS (manque ")") et lorsque je clique sur le texte le message
"Object expected" s affiche.
Quelqu un pourrait il m aider??
merci
eric
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|