Hallo,
Ich nutze Shopware und wollte in die index.tpl einen Javascript Code einfügen der so aussieht :
Leider bekomme ich folgende Fehlermeldung
Auch mit '' oder "\"\ funktioniert es nicht...
Was mache ich falsch ?
Danke
PS: Die PHP-HTML&CODE Tags funktionieren nicht -> Formatierung ?!
Ich nutze Shopware und wollte in die index.tpl einen Javascript Code einfügen der so aussieht :
<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
</script>
Leider bekomme ich folgende Fehlermeldung
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/project_shopdesign_09_03_2012/templates/_default/frontend/index/index.tpl" on line 23 " $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);" - Unexpected ":", expected one of: "}" , " "' in /var/www/project_shopdesign_09_03_2012/engine/Enlight/Vendor/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:404 Stack trace: #0 /var/www/project_shopdesign_09_03_2012/engine/Enlight/Vendor/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2699): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /var/www/project_shopdesign_09_03_2012/engine/Enlight/Vendor/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2764): Smarty_Internal_Templateparser->yy_syntax_error(2, ':') #2 /var/www/project_shopdesign_09_03_2012/engine/Enlight/Vendor/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templat in /var/www/project_shopdesign_09_03_2012/engine/Enlight/Vendor/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 404
Auch mit '' oder "\"\ funktioniert es nicht...
Was mache ich falsch ?
Danke
PS: Die PHP-HTML&CODE Tags funktionieren nicht -> Formatierung ?!