AW: Welches Plugin (o.ä.) wurde hier verwendet?
Javascript ....
onclick="changeColor(this);return false;
<script type="text/javascript">
function changeColor(id)
{
var dic = "/
shop/pics/aktionen/farbgelfinder/finger/finger-";
var olddict = $(id).down('img').readAttribute('src').replace("/shop/pics/aktionen/farbgelfinder/farbpunkte/", "")
$('farbnail').setStyle({ background: 'url('+dic+olddict+')' });
$('colorname').update($(id).down('img').readAttribute('alt'));
myRand=parseInt(Math.random()*99999999); //
cache buster
new Ajax.Updater('expressinfobox','ajax/v3/expressshopper-gelfinder.php?pid='+$(id).down('img').readAttribute('rel')+'&update=' +myRand, {
method: 'get',
onLoading: function() { $('expressinfobox').update("Daten werden geladen..."); }
});
}
function addExpressProduct(produkt, anzahl)
{
myRand=parseInt(Math.random()*99999999); // cache buster
new Ajax.Updater('expressaddprod2','ajax/v3/request2.php?a=a&userid='+pns_uid+'&menge='+anzahl+'&id='+produkt+'&update='+myRand, {
method: 'get',
onComplete: function() { window.setTimeout("updatecart()",500)
if(!$('expressaddprod2').visible()){
Effect.BlindDown('expressaddprod2', { duration: 0.3, queue:'end'}) }
else { Effect.Pulsate('expressaddprod2', { pulses: 1 ,duration: 0.5, queue:'end'}) }}
});
}
function showPal(element)
{
myRand=parseInt(Math.random()*99999999); // cache buster
new Ajax.Updater('farbpalette','ajax/v3/fgfarbpalette.php?cat='+element+'&update='+myRand, {
method: 'get',
onLoading: function() {
$('farbpalette').update("<div align=\"center\" style=\"margin:12px;\"><img src=\"/shop/pics/aktionen/carboncolors/theme/ajaxload.gif\"></div>");
}
});
}
/**
* Render a tabbed menu
*/
var tabids = [];
var containerids = [];
function create_tabs()
{
$$('.tab').all( function( el ) {
tabids.push( el.id );
containerids.push( el.id.replace( 'tab_', '' ) );
el.observe( 'click', handle_tab_click );
return true;});
}
/**
* Hande a clicked tab
*/
function handle_tab_click( event )
{
// Get container id
containerid = this.id.replace( 'tab_', '' );
// Set active tab menu point
tabids.all( function( tab ) {
$(tab).removeClassName( 'active' );
return true;
} );
this.addClassName( 'active' );
// Set active tab content container
containerids.all( function( container ) {
$(container).hide();
return true;});
$(containerid).show();
}
function ccVorteil(element)
{
$$('.ccinfobox').each(function(index) {
if($(index).visible())
{
new Effect.Fade(index, { duration:0.2, afterFinish:function() {
$('ccinfo'+element).appear({ duration:0.2}); } });
}
} );
}
/**
* Init tabbing
*/
Event.observe( window, 'load', create_tabs );
$("img.lazy").lazyload();
</script>
Wirst wohl nicht drum herumkommen das selbst zu Programmieren (lassen?)