alwaysdrawing
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
I'm trying to create a simple loading bar for my site, but I'm not sure how to do it. I looked up some methods on the internet but they didn't work for my particular layout. Right now my site is sitting in a wrapper so some of the loading bars that I've tried are behind the wrapper. Kind of defeats the purpose if you can still see everything load... I'm just looking for something simple but effective.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"
"[URL]http://www.w3.org/TR/html4/loose.dtd[/URL]">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Online Portfolio</title>
<style type="text/css">
<!--
body {
background-color: #000000;
}
#wrapper{
position: relative;
background: #000000 url(images/background.jpg) no-repeat fixed;
width: 878px;
height: 572px;
margin-left: auto;
margin-right: auto;
}
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
color: #E9CA77;
font-weight: bold;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
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_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('images/about_btn_out','images/about_btn_ro.gif','images/gallery_btn.gif','images/videos_btn_ro.gif')">
<div id="wrapper">
<table width="864" hieght="595" align="center">
<tr>
<td width="344" rowspan="3" valign="bottom"><img src="images/name.gif" width="284" height="44" align="absbottom"></td>
<td colspan="2" rowspan="2" align="left" valign="top"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/about_btn_ro.gif',1)"><img src="images/about_btn_out.gif" name="Image1" width="114" height="57" border="0"></a></td>
<td width="113" height="21" align="left" valign="top"> </td>
<td width="208" align="left" valign="top"> </td>
<td width="49" rowspan="2" align="left" valign="top"> </td>
</tr>
<tr>
<td height="62" align="left" valign="top"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/gallery_btn.gif',1)"><img src="images/gallery_btn_out.gif" name="Image2" width="113" height="46" border="0"></a></td>
<td width="208" align="left" valign="top"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/videos_btn_ro.gif',1)"><img src="images/videos_btn_out.gif" name="Image5" width="127" height="60" border="0"></a></td>
</tr>
<tr>
<td width="32" height="420" align="left" valign="top"> </td>
<td width="90" align="left" valign="top"><img src="images/portf.gif" width="48" height="329"></td>
<td height="453" colspan="2" rowspan="2" align="center" valign="top"><p align="center" class="style1">ABOUT ME </p>
<p align="center" class="style1"> </p>
<p align="center" class="style1"> </p>
<p align="center" class="style1">Thank You for visiting.</p>
<p align="center" class="style1">This site is currently under construction, so not all links will be functional. </p>
<p align="center" class="style1">Taren Morse </p></td>
<td height="453" rowspan="2" align="left" valign="top"> </td>
</tr>
<tr>
<td width="344" height="44"> </td>
<td height="44" colspan="2" align="left" valign="top"> </td>
</tr>
</table>
<!-- whatever content-->
</div>
</body>
</html>