this.init = function() {
var sounds = this.byClass(document, 'dd', 'telemeta-sound');
+ var i;
for (i in sounds) {
- link = sounds[i].getElementsByTagName('a')[0];
- link.onclick = this.togglePlayback;
+ if (typeof(sounds[i].getElementsByTagName) != 'undefined') {
+ link = sounds[i].getElementsByTagName('a')[0];
+ link.onclick = this.togglePlayback;
+ }
}
}
.telemeta-item .telemeta-sound a {
display: block;
- background: url('../images/play.gif') no-repeat left;
+ background: url('../images/play.gif') no-repeat left top;
padding-left: 29px;
height: 22px;
- padding-top: 0.8ex;
+ padding-top: 0.5ex;
}
.telemeta-item .telemeta-position, .telemeta-item .telemeta-separator { display: none; }
font-weight: bold;
color: #000066;
outline: none;
+ padding-bottom: 0.6ex;
}
.telemeta-item dd.telemeta-duration {