changeset 34:ce1e14b5d2a9

Re-enabled rollover image by public demand!
author Martin Geisler <mg@daimi.au.dk>
date Tue, 19 Feb 2008 21:26:51 +0100
parents 4800789fd621
children 0c5cba5e53d8
files images/viff-dog-alert.png index.txt
diffstat 2 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file images/viff-dog-alert.png has changed
--- a/index.txt	Tue Feb 19 20:38:15 2008 +0100
+++ b/index.txt	Tue Feb 19 21:26:51 2008 +0100
@@ -17,9 +17,18 @@
 .. raw:: html
    :file: news.html
 
-.. image:: images/viff-dog.png
-   :align: right
-   :alt: The VIFF dog
+.. raw:: html
+
+   <!-- Preload rollover image. -->
+   <script type="text/javascript">
+     dog = new Image();
+     dog.src = "images/viff-dog-alert.png";
+   </script>
+
+   <img src="images/viff-dog.png" name="dog" alt="The VIFF dog"
+        class="align-right" align="right"
+        onmouseover="javascript:dog.src='images/viff-dog-alert.png'"
+        onmouseout="javascript:dog.src='images/viff-dog.png'" />
 
 .. |Zp| replace:: **Z**\ *p*
 .. |GF256| replace:: **GF**\ (2\ :sup:`8`)