Public paste
Undefined
By: Guest | Date: Apr 11 2011 09:51 | Format: HTML 4.01 strict | Expires: never | Size: 1.59 KB | Hits: 589

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  3.  
  4.  
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>We are Legion!</title>
  7.  
  8. <script type="text/javascript">
  9. <!--
  10. function MM_swapImgRestore() { //v3.0
  11.  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  12. }
  13. function MM_preloadImages() { //v3.0
  14.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  15.    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  16.    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  17. }
  18.  
  19. function MM_findObj(n, d) { //v4.01
  20.  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  21.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  22.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  23.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  24.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  25. }
  26.  
  27. function MM_swapImage() { //v3.0
  28.  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  29.   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  30. }
  31. //-->
  32. <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','test/bla.jpg',0)"><img src="test/beanon2.jpg" name="Image1" width="936" height="585" border="0" id="Image1" /></a>
  33. </body>
  34. </html>