urlkiller |
|
---|---|
you have jquery active on your site?
uhm about the field cartoons. how do you insert this in your tpl? with LIST_ROW_CARTOON ? Added 12 minutes later: Ok! now you need to delete the cycle and jquery call in your header.tpl (the new lines you made for the cycle plugin) implement this list.tpl and write here again that i can debug it on your site. maybe you dont need to implement the jquery again. because cot already loaded it... list.cartoon.tpl <!-- BEGIN: MAIN --> <script type="text/javascript" src="/js/jquery.min.js"></script> <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script> <script type="text/javascript"> $(document).ready(function() { // speed = transition time in mil secs // timeout = time how long the image stays in mil secs // pause = if you enter the box with your mouse stop sliding auto $('#slideshow').cycle({fx: 'scrollHorz', speed: 1000, timeout: 60000, next: '#MyNextButton', prev: '#MyPrevButton',pause: 1}); }); </script> <style> a#MyNextButton, a#MyPrevButton {padding:10px;background:green;font-size:14px;} a#MyPrevButton {float:left;} a#MyNextButton {float:right;} a#MyNextButton:hover, a#MyPrevButton:hover {background:blue;} </style> <table id="index" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="indexbodyh">{LIST_PAGETITLE}</td> </tr> <tr> <td class="indexbodyc"> <div id="subtitle" style="padding-top:6px;"> {LIST_SUBMITNEWPAGE}</div> <div id="slideshow"> <!-- BEGIN: LIST_ROW --> <div class="{LIST_ROW_ODDEVEN}"> <h2>{LIST_ROW_SHORTTITLE}</h2><hr /> <img src="{LIST_ROW_CARTOON}" style="width:680px;"> </div> <!-- END: LIST_ROW --> </div> <div id="MyNextButton">Next</div> <div id="MyPrevButton">Prev</div> </td> </tr> <tr> <td class="indexbodyf"></td> </tr> </table> <!-- END: MAIN --> URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
|
Відредаговано: urlkiller (24.08.2010 20:16, 14 років тому) |