Danke erstmal für die schnelle Antwort, habe die Klammer eingefügt und bekomme nun diese Fehlermeldung:
Parse error: syntax error, unexpected '?' in /templates/meintemplate/javascript/general.js.php on line 18
<?php/* -----------------------------------------------------------------------------------------
$Id: general.js.php 1262 2005-09-30 10:00:32Z mz $
XT-Commerce - community made shopping
http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/ // this javascriptfile get includes at the BOTTOM of every template page in shop // you can add your template specific js scripts here?><script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.js"></script>
<script type="text/javascript" src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?
>/javascript
/prototype
.js
" ></script>
<script type="text
/javascript
">
count = 0;
function changetext(){
if (count%2 == 0){
jQuery(".expandable
").text("<?php echo TEXT_WK_COLLAPSE
?>");
}
else {
jQuery(".expandable").text("
<?php echo TEXT_WK_EXTEND
?>");
} count++;
}
jQuery(document).ready(function(){
jQuery(".expandable").click(function(e){
e.preventDefault();
})
})
//--></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.js" type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/thickbox.js" type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.cycle.all.js" type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.easing.1.3.js" type="text/javascript"></script>
<script type="text/javascript"><!--
$(function() {
$('#bestseller').cycle({
fx: 'turnDown',
delay: -6000
});
});
--></script>
<!-- Imageslider (c)2008 by Hetfield - www.MerZ-IT-SerVice.de - Begin -->
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.innerfade.js" type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/imageslider.js" type="text/javascript"></script>
<!-- Imageslider (c)2008 by Hetfield - www.MerZ-IT-SerVice.de - End -->
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.nivo.slider.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
slices:10, //Anzahl der Slices beim Slice Effekt
animSpeed:650, //Slide transition speed
pauseTime:6000, //Angabe in Milisekunden
startSlide:0, //Set starting Slide (0 index)
directionNav:false, //Next & Prev
directionNavHide:true, //Only show on hover
controlNav:true, //1,2,3...
controlNavThumbs:false, //Use thumbnails for Control Nav
controlNavThumbsFromRel:false, //Use image rel for thumbs
controlNavThumbsSearch: '.jpg', //Replace this with...
controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
keyboardNav:false, //Use left & right arrows
pauseOnHover:true, //Stop animation while hovering
manualAdvance:false, //Force manual transitions
captionOpacity:0.8, //Universal caption opacity
beforeChange: function(){},
afterChange: function(){},
slideshowEnd: function(){}, //Triggers after all slides have been shown
lastSlide: function(){}, //Triggers when last slide is shown
afterLoad: function(){} //Triggers when slider has loaded
});
});
</script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/superfish.js"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/supersubs.js"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/hoverIntent.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$("ul.sf-menu").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
maxWidth: 27, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
// due to slight rounding differences and font-family
}).superfish(); // call supersubs first, then superfish, so that subs are
// not display:none when measuring. Call before initialising
// containing tabs for same reason.
});
</script>
<?php// BOF - web28 - 2010-07-09 - TABS/ACCORDION in product_info ?><?phpif (strstr($PHP_SELF, FILENAME_PRODUCT_INFO
)) {?><script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#tabbed_product_info").tabs();
$("#accordion_product_info").accordion({ autoHeight: false });
});
</script>
<noscript>
<link rel="stylesheet" href="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/css/no_javascript.css" type="text/css" media="screen" />
</noscript>
<?php}?><?php// EOF - web28 - 2010-07-09 - TABS/ACCORDION in product_info ?>