<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.jflad.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>JFLAD Blog: Recherche &amp; développement: Ajax, Javascript, CSS, XHTML, Flash, Référencement, Webmarketing, Open Source, gestion de projet - effets</title>
  <link>http://blog.jflad.com/</link>
  <description>JFLAD Blog présente les travaux de veille et recherche sur les technologies: Ajax, Javascript, CSS, XHTML, Flash, Ria, Application riche, Référencement, Webmarketing, Gestion de projet, Open Source.</description>
  <language>fr</language>
  <pubDate>Wed, 15 Feb 2012 08:08:23 +0000</pubDate>
  <copyright>jflad</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Effet de survol sur vos éléments avec mootools</title>
    <link>http://blog.jflad.com/post/Effet-de-survol-sur-vos-elements-avec-mootools</link>
    <guid isPermaLink="false">urn:md5:1207f2ed82fbaf0a477083fbdaa62a60</guid>
    <pubDate>Mon, 16 Jun 2008 10:15:00 +0000</pubDate>
    <dc:creator>julien lavault</dc:creator>
        <category>Ajax</category>
        <category>boutons</category><category>effets</category><category>illustrations</category><category>images</category><category>mootools</category><category>progressif</category>    
    <description>    &lt;p&gt;Pour enrichir vos sites internet, il peut être sympa d'ajouter des &lt;a href=&quot;http://blog.jflad.com/tag/effets%20&quot;&gt;effets &lt;/a&gt;de survol &lt;a href=&quot;http://blog.jflad.com/tag/progressif%20&quot;&gt;progressif &lt;/a&gt;à vos liens, &lt;a href=&quot;http://blog.jflad.com/tag/boutons&quot;&gt;boutons&lt;/a&gt;, &lt;a href=&quot;http://blog.jflad.com/tag/images&quot;&gt;images&lt;/a&gt;, &lt;a href=&quot;http://blog.jflad.com/tag/illustrations&quot;&gt;illustrations&lt;/a&gt;... Pour cela, &lt;a href=&quot;http://blog.jflad.com/tag/mootools%20&quot;&gt;mootools &lt;/a&gt;est parfaitement adapter et permet très facilement d'ajouter un gestionnaire d'évènement sur certains éléments ! &lt;br /&gt;&lt;br /&gt;Prenons l'exemple d'un effet de changement de couleur &lt;a href=&quot;http://blog.jflad.com/tag/progressif%20&quot;&gt;progressif &lt;/a&gt;de la couleur d'un texte d'un lien au survol de celui ci:&lt;/p&gt;
&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span class=&quot;kw2&quot;&gt;&lt;br /&gt;	var&lt;/span&gt; fx = &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; Fx.&lt;span class=&quot;me1&quot;&gt;Styles&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;$('idElement'), &lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;duration:&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;, wait:&lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;	$('idElement').&lt;span class=&quot;me1&quot;&gt;addEvent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'mouseenter'&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;br /&gt;		fx.&lt;span class=&quot;me1&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;st0&quot;&gt;'background-color'&lt;/span&gt;: &lt;span class=&quot;st0&quot;&gt;'#666'&lt;/span&gt;	&lt;br /&gt;		&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;	&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;	$('idElement').&lt;span class=&quot;me1&quot;&gt;addEvent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'mouseleave'&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;br /&gt;		fx.&lt;span class=&quot;me1&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;br /&gt;		    &lt;span class=&quot;st0&quot;&gt;'background-color'&lt;/span&gt;: &lt;span class=&quot;st0&quot;&gt;'#333'&lt;/span&gt;&lt;br /&gt;		&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;	&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Voila, l'exemple est assez simple, il ne reste plus qu'a paramétrer le &lt;a hreflang=&quot;fr&quot; href=&quot;http://blog.jflad.com/post/Enrichir-vos-formulaires-avec-FxStyles-de-Mootools&quot;&gt;Fx.Styles&lt;/a&gt; et le tour est joué !&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.jflad.com/post/Effet-de-survol-sur-vos-elements-avec-mootools#comment-form</comments>
      <wfw:comment>http://blog.jflad.com/post/Effet-de-survol-sur-vos-elements-avec-mootools#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.jflad.com/feed/rss2/comments/33</wfw:commentRss>
      </item>
    
</channel>
</rss>
