hi,
hab die funktion jetzt ins ce_mooquee4ward.html5 importiert aber es funzt leider nicht.
PHP-Code:
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<div id="mooquee<?php echo $this->id;?>" class="mooquee">
<?php foreach($this->images as $img):?>
<div class="mooquee_item">
<?php if($img['link']): ?>
<a title="<?php echo $img['title'].'::'.$img['description'];?>" href="<?php echo $img['link']; ?>"<?php if($this->fullsize):?> data-lightbox="mooquee4ward<?php echo $this->id;?>"<?php endif;?>>
<?php endif; ?>
<img src="<?php echo (($this->imgSize) ? $this->getImage($img['image'],$this->imgSize[0],$this->imgSize[1],$this->imgSize[2]) : $img['image']); ?>" alt="<?php echo $img['title'];?>"/>
<?php if($img['link']): ?>
</a>
<?php endif; ?>
</div>
<?php endforeach;?>
</div>
<script>
window.addEvent('domready',function(){
var curr = 0;
var items = 0;
var cont = document.id('projectDetailImgs<?php echo $this->id; ?>');
var objMooquee29 = new Mooquee({
element: 'projectDetailImgs<?php echo $this->id; ?>',
trans:{'tin':'fade', 'tout':'fade'},
duration:1000,
pause: 3500,
firstitem:0,
pauseOnHover:false,
transition:'quad:in:out',
onTransitionComplete: function(ci,pi){
curr=ci;
},
startOnLoad:true
});
items = objMooquee29.items.length;
cont.getElements('span.next, span.prev').addEvent('click',function(ev){
var to = curr + (ev.target.hasClass('prev') ? -1 : 1);
if(to < 0) to=items-1;
else if(to == items) to=0;
objMooquee29.moove(to)
});
});
</script>
<?php echo Mooquee4ward::generateJavascript($this); ?>
</div>
das mit der schrift funktioniert so ich mach dan einfach eine fixe höhe und border mit 1px für die quadrate oder??
greetz matp
Lesezeichen