Hi, habe mir das preloaderscript auch geladen, und auch di Pfadangaben gemacht...
nun habe ich auch ein intro vor der HP, und wollte es so machen dass:
wenn man die seite: socclan.de/index.php "direkt" aufruft, erst das script angewendet wird/bilder vorgeladen werden.... und dann eben der inhalt gezeigt wir.... ist das machbar? denke mal dass es so funktionieren müsste dass man den html-code irgendwie mit in die index.php einfügen müsste, oder?
Edit:
Ok, es muss wohl in die index.htm, nur was uns wo??
index.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--Waitbox begin-->
<div id="waitDiv" class="waitbox" style="left: 43%; visibility: hidden; position: absolute; top: 60%" align="center">
<table cellpadding="6" summary="Splash-Screen Wait">
<tbody>
<tr>
<td><div align="center"><b></b><br><img src="http://socclan.de/pics/Loading.gif" border="0" align="top"><br clear="all"></div></td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById) { return document.getElementById(name).style; }
else if (document.all) { return document.all[name].style; }
else if (document.layers) { return document.layers[name]; }
}
function ap_showWaitMessage(div,flag)
{
if (!DHTML) return; var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById) if(document.layers) x.left=280/2; return true;
}
ap_showWaitMessage('waitDiv', 1);
</script>
<!--Waitbox end-->
<LINK REL="SHORTCUT ICON" HREF="http://www.socclan.de/pics/icon.ico">
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<script type="text/javascript" src="include/includes/js/Iajax.js"></script>
<script type="text/javascript" src="include/includes/js/bbcode.js"></script>
<script type="text/javascript" src="include/includes/js/klapptext.js"></script>
<script type="text/javascript" src="include/includes/js/BBCodeGlobal.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{TITLE}</title>
<link rel="stylesheet" type="text/css" href="include/designs/DDv2/style.css">
<script type="text/javascript">
/***********************************************
* Coded by C.C.A.A.
* Visit http://www.DragonDesigns.de/
***********************************************/
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<script src="http://hosting.conduit.com/Banners/TopSlider/TopSlider.js"> </script><script> var __ctid = 'CT2290823'; var __baseURL='http://www.conduit.com/'; var __downloadUrl='http://SoCBar.OurToolbar.com/exe'; var __selectedColor='red'; var __opacity='60'; __TopSlide(); </script>
</head>
<body style="margin:0" onload="MM_preloadImages('images/DDv2_03.jpg','images/DDv2_05.jpg','images/DDv2_06.jpg','images/DDv2_07.jpg','images/DDv2_8.jpg','images/DDv2_9.jpg','include/designs/DDv2/images/DDv2_03.jpg','include/designs/DDv2/images/DDv2_05.jpg','include/designs/DDv2/images/DDv2_06.jpg','include/designs/DDv2/images/DDv2_07.jpg','include/designs/DDv2/images/DDv2_8.jpg','include/designs/DDv2/images/DDv2_9.jpg')">
<table width="1100" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="50" colspan="3" align="center" valign="top" background="include/designs/DDv2/images/DDv2_01.jpg"> </td>
</tr>
<tr>
<td width="232" height="230" align="center" valign="top" background="include/designs/DDv2/images/DDv2_boxl_back.jpg"><table width="232" cellspacing="0" cellpadding="0">
<tr>
<td height="230" align="center" valign="middle" background="include/designs/DDv2/images/DDv2_02.jpg"><table width="232" height="112" cellpadding="0" cellspacing="0">
<tr>
<td width="27" height="41"> </td>
<td width="190" align="left" valign="top">{_boxes_login}<br>{_boxes_start}</td>
<td width="10"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="275" align="center" valign="top">
{_list_menunr1@
<table width="232" height="71" cellpadding="0" cellspacing="0">
<tr>
<td height="73" align="center" valign="middle" background="include/designs/DDv2/images/DDv2_08.jpg"><table width="230" height="34" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom"><span class="btitle">%1</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" align="center" valign="top" background="include/designs/DDv2/images/DDv2_12_01.jpg"><table width="232" height="42" cellpadding="0" cellspacing="0">
<tr>
<td width="8"></td>
<td width="190" align="left" class="menutext">%2</td>
<td width="7"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="17" align="center" valign="top" background="include/designs/DDv2/images/DDv2_12_02.jpg"> </td>
</tr>
</table>
}
</td>
</tr>
</table></td>
<td width="632" align="center" valign="top" background="include/designs/DDv2/images/DDv2_16.jpg"><table width="632" height="223" cellpadding="0" cellspacing="0">
<tr>
<td width="64" rowspan="2" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="?news" target="_top" onclick="MM_nbGroup('down','group1','News','',1)" onmouseover="MM_nbGroup('over','News','include/designs/DDv2/images/DDv2_03_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_03.jpg" alt="News" name="News" width="64" height="78" border="0" id="Navi" onload="" /></a></td>
</tr>
<tr>
<td><a href="?forum" target="_top" onclick="MM_nbGroup('down','group1','Forum','',1)" onmouseover="MM_nbGroup('over','Forum','include/designs/DDv2/images/DDv2_05_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_05.jpg" alt="Forum" name="Forum" border="0" id="Forum" onload="" /></a></td>
</tr>
<tr>
<td><a href="?gbook" target="_top" onclick="MM_nbGroup('down','group1','Gbook','',1)" onmouseover="MM_nbGroup('over','Gbook','include/designs/DDv2/images/DDv2_06_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_06.jpg" alt="Gbook" name="Gbook" border="0" id="Gbook" onload="" /></a></td>
</tr>
<tr>
<td><a href="?user" target="_top" onclick="MM_nbGroup('down','group1','User','',1)" onmouseover="MM_nbGroup('over','User','include/designs/DDv2/images/DDv2_07_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_07.jpg" alt="User" name="User" border="0" id="User" onload="" /></a></td>
</tr>
<tr>
<td><a href="?joinus" target="_top" onclick="MM_nbGroup('down','group1','JoinUs','',1)" onmouseover="MM_nbGroup('over','JoinUs','include/designs/DDv2/images/DDv2_10_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_8.jpg" alt="JoinUs" name="JoinUs" border="0" id="JoinUs" onload="" /></a></td>
</tr>
<tr>
<td><a href="?fightus" target="_top" onclick="MM_nbGroup('down','group1','FightUs','',1)" onmouseover="MM_nbGroup('over','FightUs','include/designs/DDv2/images/DDv2_11_v.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv2/images/DDv2_9.jpg" alt="FightUs" name="FightUs" border="0" id="FightUs" onload="" /></a></td>
</tr>
</table></td>
<td height="230"><div id='effect437574' style='width:568px;height:230px;'>
<a href='http://www.effectgenerator.com/'> </a></div>
<script type="text/javascript" src="http://www.effectgenerator.com/1.0.7/effect.php?id=437574&replace=effect437574"></script></td>
</tr>
<tr>
<td height="172" align="center" valign="top" background="include/designs/DDv2/images/DDv2_09.jpg"><table width="568" height="96" cellpadding="0" cellspacing="0">
<tr>
<td width="283" height="170" align="center" valign="bottom"><table width="282" height="140" cellpadding="0" cellspacing="0">
<tr>
<td width="29"> </td>
<td width="226" align="left" valign="top">{_boxes_lastforum}</td>
<td width="25"> </td>
</tr>
</table></td>
<td width="283" align="center" valign="bottom"><table width="282" height="140" cellpadding="0" cellspacing="0">
<tr>
<td width="29"> </td>
<td width="226" align="left" valign="top">{_boxes_lastnews}</td>
<td width="25"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table border="0">
<tr>
<td width="300" background="pics/camu.png" align="center" valign="top">
{_boxes_nextwars}
</td>
<td width="300"background="pics/camu.png" align="center" valign="top">
{_boxes_lastwars}
</td>
</tr>
<table width="632" cellspacing="0" cellpadding="0">
<tr>
<td height="59" align="center" valign="bottom" background="include/designs/DDv2/images/DDv2_content.jpg"><table width="632" height="49" cellpadding="0" cellspacing="0">
<tr>
<td width="96" height="27"> </td>
<td width="441" align="left" valign="middle"><span class="content">{HMENU}</span></td>
<td width="91"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="632" height="36" cellpadding="0" cellspacing="0">
<tr>
<td width="15"> </td>
<td width="601" align="left" valign="top">{EXPLODE}</td>
<td width="14"> </td>
</tr>
</table></td>
<td width="236" align="center" valign="top" background="include/designs/DDv2/images/DDv2_boxr_back.jpg"><table width="236" cellspacing="0" cellpadding="0">
<tr>
<td height="230"><div id='effect251015' style='width:236px;height:230px;'>
<a href='http://www.effectgenerator.com/'> </a></div>
<script type="text/javascript" src="http://www.effectgenerator.com/1.0.7/effect.php?id=251015&replace=effect251015"></script></td>
</tr>
<tr>
<td height="275" align="center" valign="top">
{_list_menunr2@
<table width="236" cellspacing="0" cellpadding="0">
<tr>
<td height="73" align="center" valign="middle" background="include/designs/DDv2/images/DDv2_10.jpg"><table width="230" height="33" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom"><span class="btitle">%1</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" align="center" valign="top" background="include/designs/DDv2/images/DDv2_13_01.jpg"><table width="235" height="35" cellpadding="0" cellspacing="0">
<tr>
<td width="23"> </td>
<td width="196" align="left" valign="middle">%2</td>
<td width="11"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="17" background="include/designs/DDv2/images/DDv2_13_02.jpg"> </td>
</tr>
</table>
}
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="79" colspan="3" align="center" valign="top"><img src="include/designs/DDv2/images/DDv2_17.jpg" width="1100" height="79" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="7,6,224,73" href="http://www.dragondesigns.de/" />
</map></td>
</tr>
</table>
</body>
</html>
<!--Waitbox-finish begin-->
<script type="text/javascript">
<!--
setTimeout("ap_showWaitMessage('waitDiv', 0);",800)
//-->
</script>
<!--Waitbox-finish end-->
<!-- {_list_DDDmenupoint@<strong><big>·</big></strong><a %1 class="box" href="%2">%3</a><br />}
{_list_hmenupoint@<li><a target="%1" class="box" href="%2">%3</a>|</li>|<br />|</ul></li>}
{_list_hmenubegi@<ul>}
{_list_hmenuende@</ul>}
{_list_vmenupoint@<a target="%1" class="menu" href="%2">%3</a>}
{_list_vmenubegi@}
{_list_vmenuende@}//-->
preloader.htm
<html>
<head>
<title>Soldiers of Chaos</title>
<script>
/* EIGENSCHAFTEN */
url = "http://www.socclan.de/index.php"; // weiterleitungs url wenn bilder geladen
progress= new Array(
"http://www.socclan.de/include/designs/DDv2/images/bg1.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_03.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_05.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_06.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_07.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_10.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2.2_11.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_01 original.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_01.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_02.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_03.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_01.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_02.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_03.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_03_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_04.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_04_01.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_04_02.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_05.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_05_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_06.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_06_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_07.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_07_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_08.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_08.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_09.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_10.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_10_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_11_v.gif",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_12.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_12_01.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_12_02.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_13.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_13_01.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_13_02.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_16.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_17 ori.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_17.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_18.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_8 ori.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_8.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_9.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_boxl_back.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_boxr_back.jpg",
"http://www.socclan.de/include/designs/DDv2/images/DDv2_content.jpg",
"http://www.socclan.de/include/designs/DDv2/images/female.png",
"http://www.socclan.de/include/designs/DDv2/images/index ohne schnee.htm",
"http://www.socclan.de/include/designs/DDv2/images/load.gif",
"http://www.socclan.de/include/designs/DDv2/images/menu.png",
"http://www.socclan.de/include/designs/DDv2/images/menuover.png",
"http://www.socclan.de/include/designs/DDv2/images/offline.gif",
"http://www.socclan.de/include/designs/DDv2/images/online.gif"
);
/* EIGENSCHAFTEN ENDE */
var x;
function preload()
{
p = new Array();
x = 0;
for(i=0;i<progress.length;i++)
{
p[i] = new Image();
p[i].onabort = update;
p[i].onerror = update;
p[i].onload = update;
p[i].src = progress[i];
}
}
function update()
{
x++;
pro=Math.floor((x/progress.length)*100);
document.images["balken"].width=pro*2;
(document.all) ?
dom=document.all["loadausgabe"] :
dom=document.getElementById("loadausgabe");
dom.innerHTML= x+" von "+progress.length+" Bildern geladen.<br>"+pro+" %";
if(pro==100) location.href=url;
}
</script>
<style type="text/css">
<!--
.style2 {color: #617691}
-->
</style>
</head>
<body onLoad="preload()" bgcolor=#111111>
<span class="style2"></span>
<table width=100% height=100% align=center>
<td align=center>
<table align=center width=210 height=20>
<tr>
<td align=left width=210 valign=top height=20>
<img src=balken.gif height=5 width=0 name=balken>
</td>
</tr>
<tr>
<td align=left width=210 valign=top height=20>
<div id="loadausgabe" style="font:10px verdana;color:ffffff">0 von 0 Bildern geladen.<br>0 %</div>
</td>
</tr>
</table>
</td>
</table>
</body>
</html>
Zuletzt modifiziert von trejay am 25.09.2010 - 13:10:55