Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>UPDATED: using hover instead (per Scott E. comment)</p> <p>I like JQUERY and below is a way, albeit not perfect, but should get you started down the path. The reason that its not perfect is because there is a "fluttering" if you mouseover and out on the right side (interestingly) of the span. </p> <p>Note this is fully functional, but you should get local version of the JQUERY js. Also, after posting this the first time, I discovered I/E does not behave as expected.</p> <p>See <a href="http://docs.jquery.com/Events" rel="nofollow noreferrer">http://docs.jquery.com/Events</a> and <a href="http://docs.jquery.com/Core" rel="nofollow noreferrer">http://docs.jquery.com/Core</a></p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;p&gt;Today is the &lt;span class="date"/&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ // use data object of &lt;span&gt; element with class 'date'. // Do this instead of using "value" attribute in &lt;span&gt; // which is not normal part of &lt;span&gt; element // instead of putting the value directly in &lt;span&gt; above, I'm assigning it here $(".date").data("mydates", { selected : "18/03/2009", normal: "18th of March" } ); // assign the normal value on startup $(".date").html($(".date").data("mydates").normal); // first function is executed on mouseover // second function is executed on mouseout $(".date").hover( function() { $(".date").html($(".date").data("mydates").selected); }, function() { $(".date").html($(".date").data("mydates").normal); } ); }); &lt;/script&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload