mutiple fx-slide in template

More
12 years 10 months ago #22251 by micker
hello
i whant to creat a fx-slide for each item in my template ...
for on it works but when i want multiple it doesn't work ...
my script
Code:
<script language="JavaScript" type="text/javascript"> <!-- window.addEvent( 'domready', function(){ $$( '.moreInfoWrapper' ).each(function(item){ var thisSlider = new Fx.Slide( item.getElement( '.moreInfo' ), { duration: 500 } ); thisSlider.hide(); item.getElement( '.divToggle' ).addEvent( 'click', function(){ thisSlider.toggle(); } ); } ); } ); // --> </script>
in my template
Code:
<?php $leadnum = $this->params->get('lead_num', 2); $leadnum = ($leadnum >= $count) ? $count : $leadnum; if ($this->limitstart == 0) : ?> <ul class="leadingblock"> <?php for ($i=0; $i<$leadnum; $i++) : ?> <li> <div style="overflow: hidden;"> <!-- BOF beforeDisplayContent --> <?php if ($items[$i]->event->beforeDisplayContent) : ?> <div class='fc_beforeDisplayContent' style='clear:both;'> <?php echo $items[$i]->event->beforeDisplayContent; ?> </div> <?php endif; ?> <!-- EOF beforeDisplayContent --> <?php if ($this->params->get('show_editbutton', 0)) : ?> <?php $editbutton = flexicontent_html::editbutton( $items[$i], $this->params ); ?> <?php if ($editbutton) : ?> <div style="float:left;"><?php echo $editbutton;?></div> <?php endif; ?> <?php endif; ?> <div class='moreInfoWrapper'> <div class='divToggle'> </div> <?php if ($this->params->get('show_title', 1)) : ?> <h2 class="contentheading"> <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug)); ?>]<?php echo $items[$i]->title; ?>[/url] <?php else : echo $items[$i]->title; endif; ?> </h2> <?php endif; ?> [url=#]<h3>Click to Show/Hide</h3>[/url] <div id='moreInfo'> <!-- BOF afterDisplayTitle --> <?php if ($items[$i]->event->afterDisplayTitle) : ?> <div class='fc_afterDisplayTitle' style='clear:both;'> <?php echo $items[$i]->event->afterDisplayTitle; ?> </div> <?php endif; ?> <!-- EOF afterDisplayTitle --> <?php if ($this->params->get('lead_use_image', 1)) : if ($this->params->get('lead_image')) : FlexicontentFields::getFieldDisplay($items[$i], $this->params->get('lead_image'), $values=null, $method='display'); .... </div> </li> <?php endfor; ?> </ul> </div> </div>
the idea after title a link to hide and show my content ...
but it doesn't work ...
somebody can help me ?
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.140 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline