Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/06/2006, 08:42
jossss
 
Fecha de Ingreso: mayo-2006
Mensajes: 475
Antigüedad: 17 años, 11 meses
Puntos: 58
OK. Si este código si que puedes modificarlo copia las lineas que está en rojo para centrar la imagen con el texto y para ponerle el fondo transparente.


Cita:
if(typeof(Delicious) == 'undefined') Delicious = {}
Delicious.Mp3 = {
playimg: null,
player: null,
go: function() {
var all = document.getElementsByTagName('a')
for (var i = 0, o; o = all[i]; i++) {
if(o.href.match(/\.mp3$/i)) {
var img = document.createElement('img')
img.src = 'http://url/play.gif'; img.title = 'Play'
img.height = img.width = 12
img.style.marginRight = '0.5em'
img.style.cursor = 'pointer'
img.style.verticalAlign = 'middle' //---> linea que añadimos para centrar verticalmente
img.style.backgroundColor= 'transparent' //---> fondo transparente
img.style.border = '0'
img.onclick = Delicious.Mp3.makeToggle(img, o.href)
o.parentNode.insertBefore(img, o)
}}},

Última edición por jossss; 07/06/2006 a las 08:56