Advertisement
muymusicacom

script para rotar anuncios

Apr 26th, 2013
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. paso 1 o Html
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7. <title>Instrucciones para Descargar / Instructions For The Download </title>
  8. </head>
  9. <frameset frameborder="0" rows="0,*"><frameset cols="0,*" frameborder="0"><frame src="" name="vacio1" height="1" scrolling="no"><frame src="" name="vacio2" height="1" scrolling="no"></frameset><frame frameborder="1" bordercolor="#0000ff" resizable="1" location="0" src="http://www.descargasdiarias.com/adsdesc/contenido.html" name="popup" scrolling="no"></frameset></html>
  10.  
  11. paso 2 o Html
  12.  
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml">
  15.  
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  18. <title>Instrucciones para Descargar / Instructions For The Download </title>
  19. </head>
  20.  
  21. <body BGCOLOR="#ffffff">
  22. <script language=JavaScript>
  23. <!--
  24. function inhabilitar(){
  25.     alert ("Click Derecho Desabilitado.")
  26.     return false
  27. }
  28. document.oncontextmenu=inhabilitar
  29. // -->
  30. </script>
  31.  
  32. <div id='outer-wrapper'><div id='wrap2'><div id='sidebar-wrapper'><div class='widget HTML' id='HTML4'>
  33. <div class='widget-content'><div style="position: absolute;">
  34. <span onMouseUp="document.getElementById('floatLayer').style.display='none'"><img original-title="Descargar" src="http://i.imgur.com/Rh3Ba.png" alt="Descargar"></span></div></div>
  35. <div style="position:absolute; width:430px; height:92px; z-index:1000; vertical-align:middle; opacity:0.005; filter:alpha(opacity=05); background-color:#333333; overflow:hidden; id="adsdiv">
  36. <table align="center" height="92" width="430" cellpadding="0" cellspacing="0" border="0">
  37. <tr><td>
  38. <IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=430 HEIGHT=92 SRC="http://www.descargasdiarias.com/adsdesc/1.html"></IFRAME></tr></td>
  39. </div></div></div></div></div></body></html>
  40.  
  41. paso 3 o Html
  42. <html>
  43. <head>
  44. <style type="text/css">
  45. body {
  46.     display: block;
  47.     margin: 1px;
  48. }
  49. </style>
  50.  
  51. <script>
  52. var sitio= new Array(5)
  53. sitio[0] = "http://www.descargasdiarias.com/adsdesc/anuncio.html"
  54. sitio[1] = "http://www.descargasdiarias.com/adsdesc/anuncio.html"
  55. sitio[2] = "http://www.descargasdiarias.com/adsdesc/anuncio.html"
  56. sitio[3] = "http://www.descargasdiarias.com/adsdesc/anuncio.html"
  57. sitio[4] = "http://www.descargasdiarias.com/adsdesc/anuncio.html"
  58.  
  59.  
  60. function otroSitio(){
  61. azar=Math.floor(Math.random()*5);
  62. document.getElementById("marco").src=sitio[azar];
  63. document.getElementById("ruta").innerText=sitio[azar];
  64. }
  65. </script>
  66. </head>
  67. <body onload="otroSitio()">
  68. <iframe id="marco" src="" width="100%" height="92" frameborder=0 marginwidth=0 marginheight=0 scrolling=no ></iframe>
  69. <p>
  70. <div id="ruta"></div>
  71. </p>
  72. </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement