Antwort #16 am: 22. Mai 2012, 15:06:04
Sorry ich hab glaub die falsche Datei angehängt
Meine gerneral.jp.pho hat viel mehr Kommentare ala:
<?php /* ########################################################
GLOBAL: JQUERY-FRAMEWORK
########################################################### */ ?>
<?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 every template page in shop, you can add your template specific
// js scripts here
?>
<?php
/* TEMPLATE CONFIG LADEN */
include_once ('templates/'.CURRENT_TEMPLATE.'/squidio/configuration.php');
?>
<?php /* ########################################################
GLOBAL: JQUERY-FRAMEWORK
########################################################### */ ?>
<script src="templates/<?php echo CURRENT_TEMPLATE; ?>/javascript/jquery/jquery-1.3.2.js" type="text/javascript"></script>
<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery/lightbox/thickbox.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery/lightbox/thickbox.css" type="text/css" media="screen" />
<?php /* ########################################################
GLOBAL: JQUERY CODE
########################################################### */ ?>
<script src="templates/<?php echo CURRENT_TEMPLATE; ?>/javascript/jquery/tools/jquery.toggle-inputs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
var default_value = $("#searchinput").attr("value");
$('#searchinput').toggleValue(default_value);
$("#administration li.dropdown").mouseover(function() {
$(this).children("ul").css("display","block");
}).mouseout(function() {
$(this).children("ul").css("display","none");
});
});
</script>
<?php /* ########################################################
PAGE: STARTSEITE
JQUERY >> PRODUCT-BROWSER-TABS
JQUERY >> XML-SLIDER
########################################################### */ ?>
<?php if ($page == 'index'){ ?>
<script src="templates/<?php echo CURRENT_TEMPLATE; ?>/javascript/jquery/ui/ui.core.js" type="text/javascript"></script>
<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery/ui/ui.tabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
// product-browser
$(function() {
$("#product_browser").tabs();
});
});
</script>
<?php ;} ?>
<?php /* ########################################################
PAGE: PRODUKT-DETAILS
JQUERY >> LIGHTBOX
JQUERY >> TABS
########################################################### */ ?>
<?php if ($page == 'product_info'){ // PRODUKT-DETAIL-SEITE ?>
<script src="templates/<?php echo CURRENT_TEMPLATE; ?>/javascript/jquery/ui/ui.core.js" type="text/javascript"></script>
<script src="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery/ui/ui.tabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(function() {
$("#p_tabs").tabs();
});
$(".product_morepics li").click(function(){
$("li.aktiv").removeClass("aktiv");
$(this).addClass("aktiv");
$(this).children('a').attr("rel", "");
var value = $(this).children('a').attr("href");
if (value != '#'){
$("img.products_image").attr("src", value);
}
// resetup thickbox fuctionality
var bigger_image = value.replace('info_images','popup_images');
$(".product_container .button_view").attr("href", bigger_image);
// href verlinkung verhindern
return false;
});
});
</script>
<?php ;} ?>
<script type="text/javascript" src="templates/<?php echo CURRENT_TEMPLATE; ?>/javascript/template.js"></script>