Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/12/2005, 05:06
Blashete
 
Fecha de Ingreso: febrero-2005
Mensajes: 171
Antigüedad: 20 años
Puntos: 1
Como conseguir este efecto

Buenas, me gustaria saber como se haria este efecto (ponerlo en un html y cargarlo para er el resultado). Seguro que a mas de uno os seria util

<script type="text/javascript" src="http://www.lawebdelmaestro.net/barrita/izquierda.js"> </script><noscript><a href="http://www.lawebdelmaestro.net/"> http://www.LaWebDelMaestro.Net</a></noscript>

Lo he visto en esta web y me parece curioso, pero no se que codigo tengo que hacer:

este es el codigo del js

Código HTML:
function getURL(uri) {
uri.dir = location.href.substring(0,location.href.lastIndexOf('\/'));
uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
uri.page = location.href.substring(uri.dir.length+1,location.href.length+1);
pos = uri.page.indexOf('?');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
pos = uri.page.indexOf('#');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
uri.ext = ''; pos = uri.page.indexOf('.');if (pos > -1) {uri.ext =uri.page.substring(pos+1); uri.page = uri.page.substr(0,pos);}
uri.file = uri.page;
if (uri.ext != '') uri.file += '.' + uri.ext;
if (uri.file == '') uri.page = 'index';
uri.args = location.search.substr(1).split("?");
return uri;
}

var uri = new Object();
getURL(uri);

document.write('<style><!-- @import url(http://www.lawebdelmaestro.net/barrita/estilo.css); --></style>'
+ '<div class="MPHWhiteBandSmallLeft"><img src="http://www.lawebdelmaestro.net/barrita/blanco.gif" width="163" height="163" border="0" usemap="#MPHLinkMapSmallLeft"></div>'
+ '<map name="MPHLinkMapSmallLeft"><area shape="poly" coords="163,0,0,163,0,133,133,0" href="http://www.lawebdelmaestro.net" target="_blank"></map>'
);
pero, de ahí no saco de donde sale lo que se muestra en la imagen... ni nada mas :)

Un saludo y gracias
__________________
Webs:
Foro de Ayuda Sexual
Pajarracos !