Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 18th, 2013  |  syntax: None  |  size: 2.23 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Untitled Document</title>
  6. <script type="text/javascript">
  7. function MM_preloadImages() { //v3.0
  8.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  9.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  10.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  11. }
  12.  
  13. function MM_swapImgRestore() { //v3.0
  14.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  15. }
  16.  
  17. function MM_findObj(n, d) { //v4.01
  18.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  19.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  20.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  21.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  22.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  23. }
  24.  
  25. function MM_swapImage() { //v3.0
  26.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  27.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  28. }
  29. </script>
  30. </head>
  31.  
  32. <body onLoad="MM_preloadImages('2.png','3.png','4.png','5.png','banner/2.png','banner/3.png','banner/4.png','banner/5.png')">
  33. <img src="banner/main.png" alt="" width="930" height="332" usemap="#Map" id="Image1" longdesc="file:///Macintosh HD/Users/rock_queen_06/Desktop/main.png" border="0">
  34. <map name="Map" id="Map">
  35.   <area shape="rect" coords="639,0,928,88" href="#" onMouseOver="MM_swapImage('Image1','','2.png',1);MM_swapImage('Image1','','banner/2.png',1)" onMouseOut="MM_swapImgRestore()">
  36.   <area shape="rect" coords="640,87,929,173" href="#" onMouseOver="MM_swapImage('Image1','','3.png',1);MM_swapImage('Image1','','banner/3.png',1)" onMouseOut="MM_swapImgRestore()">
  37.   <area shape="rect" coords="641,171,928,258" href="#" onMouseOver="MM_swapImage('Image1','','4.png',1);MM_swapImage('Image1','','banner/4.png',1)" onMouseOut="MM_swapImgRestore()">
  38.   <area shape="rect" coords="640,257,930,341" href="#" onMouseOver="MM_swapImage('Image1','','5.png',1);MM_swapImage('Image1','','banner/5.png',1)" onMouseOut="MM_swapImgRestore()">
  39. </map>
  40. </body>
  41. </html>