Loading script..
Hej eksperter..Jeg har fundet denne guide på Joomla.dk til hvordan man opretter et loading script på sin side.
Jeg kan ikke få det til at virke, så jeg tænkte på om der ikke var en der ville hjælpe mig med at flette det sammen?
JavaScriptet der skal bruges ligger her: http://marck.hotserv.dk/templates/2lounge/js/load.js
Her er guíden: http://joomla.dk/manual/templates/javascriptloading/
Her er HTML'en som scripet skal skrive:
<body background="http://marck.hotserv.dk/templates/2lounge/images/bbg.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%" height="300">
</td>
</tr>
<tr>
<td width="100%" height="100%">
<p align="center"><font size="7" face="Verdana">Loading..!</font></td>
</tr>
</table>
Her er mit template:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<?php
/**
* template_name - Mambo 4.5.1 template
* @version 4.5.1
* @copyright (C) 2005 by 2lounge
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if ( $my->id ) {
initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php mosShowHead(); ?>
<?php echo "<meta name=\"author\" content=\"www.2lounge.de\" />" ?> <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?>
</head>
<body background="templates/2lounge/images/bbg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div class="pic_left">
<map name="FPMap0">
<area href="http://www.unicef.org" shape="polygon" coords="0, 98, 97, 1, 45, 0, 1, 42" target="_blank">
</map>
<img border="0" src="http://marck.hotserv.dk/templates/2lounge/images/unicef.gif" width="100" height="100" usemap="#FPMap0"></a>
</div>
<table width="780" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="780" valign="top" bgcolor="#e0e0d5">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="10" bordercolor="#e0e0d5" bgcolor="#e0e0d5">
<tr>
<td width="780" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#FAFAF4">
<td width="30%" height="70" align="right" bgcolor="#FFFFFF"><img src="templates/2lounge/images/plus.gif" width="47" height="70"></td>
<td width="70%" height="70" bgcolor="#FFFFFF" class="firm"></td>
</tr>
<tr>
<td height="30" colspan="2" bgcolor="#747465">
<?php mosLoadModules ( 'user3'); ?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" width="780">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" bgcolor="#747465">
<?php mosPathWay(); ?>
</td>
</tr>
<tr>
<td height="100%" class="cont"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
<?php mosMainBody(); ?>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr align="center" valign="top">
<td width="760">Copyright © 2005 - All Rights Reserved</td>
</tr>
<!-- Chart Basis HTML kode start v003 -->
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="http://www.chart.dk/ref.asp?ct=v003&id=123612" target="_blank">');
var myref; myref=document.referrer; if(top.document.referrer!=null) myref=top.document.referrer;
document.write('<img src="http://cluster.chart.dk/chart.asp?id=123612&style=-1&secID=' + Math.random()*10000000 + '&ref=' + escape(myref) + '" border="0" alt="Chart.dk"><');
document.write('/a>');
//-->
</script>
<noscript>
<a href="http://www.chart.dk/ref.asp?ct=v003&id=123612" target="_blank"><img src="http://cluster.chart.dk/chart.asp?id=123612&style=-1&secID=1" border="0" alt="Chart.dk"></a>
</noscript>
<!-- Chart Basis HTML kode slut v003 -->
</table>
</td>
</tr>
</table>
</body>
</html>