Vielleicht steckt das Problem in deinen '...'.
Hier der Code, der nach des JS Ausführung im Browser steht
<div class="plugin gallery">
<noscript>
<ol>
<li><img src="userdata/img/humor1.png" alt="MISSING"></li>
<li><a href="__?plugin_gallery=1"><img class="preview" src="userdata/img/humor2.png" alt="MISSING"></a></li>
</ol>
</noscript>
<div id="plugin_gallery">
<div><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span></div>
<img style="margin: 0pt auto; display: block;" alt="MISSINGuserdata/img/humor5.png"></div>
<!-- HIER ^^ sieht man dass src nicht eingetragen ist -->
<script type="text/javascript">
var _gal = new Object;
_gal.img = new Array;
_gal.img[0] = ["userdata/img/humor1.png","MISSINGuserdata/img/humor1.png",];
_gal.img[1] = ["userdata/img/humor2.png","MISSINGuserdata/img/humor2.png",];
_gal.img[2] = ["userdata/img/humor3.png","MISSINGuserdata/img/humor3.png",];
_gal.img[3] = ["userdata/img/humor4.png","MISSINGuserdata/img/humor4.png",];
_gal.img[4] = ["userdata/img/humor5.png","MISSINGuserdata/img/humor5.png",];
_gal.prev = document.createElement("div");
_gal.show = document.createElement("img");
_gal.show.src = _gal.img[0][0];
_gal.show.alt = _gal.img[0][1];
alert(_gal.img[0][0]); // prints fine <-----------
alert(_gal.show.src); // empty <--------------
alert(_gal.show.alt); // prints Fine <-----------
//_gal.show.alt = "DEFAULT";
_gal.show.style.display="block";
_gal.show.style.margin="0 auto";
for( var i=0; i < _gal.img.length; i++ ){
var e = document.createElement("span");
e.innerHTML = (i+1);
e.onclick = function(){
alert(this.firstChild.data);
var c = this.firstChild.data - 1 ;
_gal.show.src = _gal.img[c][0];
_gal.show.alt = _gal.img[c][1];
};
_gal.prev.appendChild(e);
}
_gal.cont = document.getElementById("plugin_gallery");
_gal.cont.appendChild(_gal.prev);
_gal.cont.appendChild(_gal.show);
</script>
</div>
mfg Beat
--
><o(((°> ><o(((°>
<°)))o>< ><o(((°>o
Der Valigator leibt diese Fische
><o(((°> ><o(((°>
<°)))o>< ><o(((°>o
Der Valigator leibt diese Fische