Fehler --> ProgressClass

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Fehler --> ProgressClass

    Habe versucht nen Fortschrittsbalken nach Anleitung folgenden Tutorials einzubauen... (http://www.php-resource.de/tutorials/read/28/1/)
    Aber irgendwie wird der Balken nicht angezeigt =( Habe mir Tutorial und meinen Code mehrmals durchgelesen, aber irgendiwe finde ich den Fehler nicht. Bitte helft mir...

    lg raffiausgoslar

    PHP-Code:
    <?php
    require('ProgressClass.php');
    $progress=new ProgressClass();
    $progress->make(false);
    ?>
    <?php
    defined
    '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
    ?>
    <?php 
    echo "<?xml version=\"1.0\"?>"?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
    <?php mosShowHead(); ?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $GLOBALS[cur_template];?>/css/template_css.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
    <script type="text/javascript">

    function newImage(arg) {
        if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
        }
    }

    function changeImages() {
        if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
        }
    }

    var preloadFlag = false;
    function preloadImages() {
        if (document.images) {
            siteground_Layer_11_over = newImage("<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-11-over.jpg");
            siteground_Layer_9_copy_over = newImage("<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-ove.jpg");
            preloadFlag = true;
        }
    }

    </script>
    </head>
    <body onload="preloadImages();">
    <center>
    <?php
    $progress
    ->show();
    ?>
    <table cellpadding="0" cellspacing="0" border="0" class="height">

        <tr>
            <td class="bg_left" rowspan="2" class="height"></td>
            <td valign="top" align="center">
    <!-- -->
    <table width="900" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table width="900" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="td1"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="900" height="29" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="td2"></td>
    <?php
    $progress
    ->setPercent(10);
    ?>
                        <td>
                            <a href="http://cvd-gs.pytalhost.de/joomla-system/index.php?option=com_frontpage&Itemid=1"
                                onmouseover="changeImages('siteground_Layer_11', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-11-over.jpg'); return true;"
                                onmouseout="changeImages('siteground_Layer_11', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-11.jpg'); return true;">
                                <img name="siteground_Layer_11" src="<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-11.jpg" width="66" height="29" border="0" alt=""></a></td>
                        <td class="td3"></td>
                        <td>
                            <a href="http://cvd-gs.pytalhost.de/joomla-system/index.php?option=com_content&task=section&id=1&Itemid=2"
                                onmouseover="changeImages('siteground_Layer_9_copy', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-ove.jpg'); return true;"
                                onmouseout="changeImages('siteground_Layer_9_copy', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy.jpg'); return true;">
                                <img name="siteground_Layer_9_copy" src="<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy.jpg" width="66" height="29" border="0" alt=""></a></td>
                        <td class="td4"></td>
                        <td>
                            <a href="http://cvd-gs.pytalhost.de/joomla-system/index.php?option=com_search&Itemid=5"
                                onmouseover="changeImages('siteground_Layer_9_copy_2', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-2-o.jpg'); return true;"
                                onmouseout="changeImages('siteground_Layer_9_copy_2', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-2.jpg'); return true;">
                                <img name="siteground_Layer_9_copy_2" src="<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-2.jpg" width="81" height="29" border="0" alt=""></a></td>
                        <td class="td5"></td>
                        <td>
                            <a href="http://cvd-gs.pytalhost.de/joomla-system/index.php?option=com_wrapper&Itemid=8"
                                onmouseover="changeImages('siteground_Layer_9_copy_3', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-3-o.jpg'); return true;"
                                onmouseout="changeImages('siteground_Layer_9_copy_3', '<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-3.jpg'); return true;">
                                <img name="siteground_Layer_9_copy_3" src="<?php echo $mosConfig_live_site;?>/templates/siteground32/images/siteground_Layer-9-copy-3.jpg" width="112" height="29" border="0" alt=""></a></td>
                        <td class="td6"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
    <?php
    $progress
    ->setPercent(50);
    ?>
            <td>
                <table width="900" height="493" border="0" cellpadding="0" cellspacing="0">
                    <tr>            
                        <td valign="top" class="td11" style="padding:70px 0px 10px 0px;">
                        <?php if ( mosCountModules'left' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>
                            <div class="vistaleft">
                                <?php mosLoadModules 'left', -); ?>
                            </div>
                        <?php ?>                        
                        </td>
                        <td valign="top" class="td12"></td>
                        <td valign="top" class="td13" style="padding:70px 0px 10px 0px;">
                        <?php if ( mosCountModules'right' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>                    
                            <div class="vistaright">
                                <?php mosLoadModules 'right', -); ?>
                            </div>
                        <?php ?>
                            </td>
                        <td valign="top" class="td14"></td>
                        <td valign="top" class="td15">
                        <div class="vistamain">
                    <?php if ( mosCountModules'top' ) && ($_REQUEST["task"] != "edit") && ($_REQUEST["task"] != "new" ) ) { ?>
                            <div class="vistatop">
                                    <?php mosLoadModules 'top', -);?>
                            </div>
                    <?php ?>
                        <?php mosMainBody(); ?>
                        </div>                                    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <?php
    $progress
    ->setPercent(80);
    ?>
    <table align="center">
        <tr>
            <td class="td16"></td>
        </tr>
        <tr>
            <td>
                <span class="copyright"><?php echo $mosConfig_live_site;?>, powered by <a href="http://mamboserver.com/">Mambo</a> and Designed by <a href="http://www.siteground.com/">Siteground</a> and <a href="http://www.raffiausgoslar.de.vu/">raffiausgoslar</a></span>
            </td>
        </tr>
    </table>
    <!-- -->
            </td>    
            <td class="bg_right"valign="top"><div class="bg_right_top"></div></td>
        </tr>        
    </table>
    <?php
    $progress
    ->setPercent(100);
    ?>
    <!-- -->
    <!-- X-STAT START : CODE NICHT VERÄNDERN -->
    <script language="JavaScript" type="text/javascript" src="http://www.x-stat.de/stat.php?id=dershit"></script> 
    <!-- X-STAT ENDE -->
    <?php
    $progress
    ->hide();
    ?>
    </center>
    </body>
    </html>

  • #2
    problem hat sich erledigt
    und ja ich hab vergessen, den php code umzubrechen...
    thread kann gelöscht werden!

    Nochmal entschuldigun,w egen der umstände

    Kommentar

    Lädt...
    X