but console.log(splashi); gives an error with IE
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>republic-of-aquitaine.org - - - ...</title>
</head>
<body bgcolor="tan" text="#000000">
<script language="JavaScript">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Copyright © February 2003 republic-of-aquitaine.org All Rights Reserved");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
<div id="splashcontainer" style="position:absolute;left:0px;top:400px;width:370px;text-Align:center;font-Size:20px;border:solid red 1px;">
</div>
<br>
<center>
<table width="50%" cellpadding="2">
<tr>
<td>
</td>
<td>
<img src="http://republic-of-aquitaine.org/images/Aquitaine_2.jpg" width="575" height="350" border="0" alt="Aquitaine">
</td>
<td>
</td>
</tr></table>
</center>
<br><br>
<script>
//Specify the paths of the images to be used in the splash screen, if any.
//If none, empty out array (ie: preloadimages=new Array())
var preloadimages=new Array()
//Do not edit below this line (besides HTML code at the very bottom)
var theimages=new Array()
//preload images
for (p=0;p<preloadimages.length;p++){
theimages[p]=new Image()
theimages[p].src=preloadimages[p]
}
</script>
<script>
/*
Modified from:
Dynamic Splash Screen effect- © Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
Visit http://dynamicdrive.com
*/
function splashdisplay(o){
if (o.n<o.SplashMessages.length){
o.obj.style.visibility='hidden';
o.SplashMessages[o.n]?o.obj.innerHTML=o.SplashMessages[o.n]:null;
o.CenterLeft!==false?o.obj.style.left=(o.mk.offsetLeft-o.obj.offsetWidth)/2+'px':null;
o.CenterTop!==false?o.obj.style.top=(o.mk.offsetTop-o.obj.offsetHeight)/2+'px':null;
o.obj.style.visibility='visible';
o.n++;
o.to=setTimeout(function(){ splashdisplay(o); },o.Interval);
}
else{
window.top.location=o.TargetDestination;
}
}
function SplashPage(o){
o.obj=document.getElementById(o.SplashID);
if (o.obj&&o.SplashMessages instanceof Array){
o.mk=document.createElement('DIV');
o.mk.style.position='absolute';
o.mk.style.right=o.mk.style.bottom=o.mk.style.width=o.mk.style.height='0px';
document.body.appendChild(o.mk);
o.n=0;
o.Interval=typeof(o.Interval)=='number'&&o.Interval>20?o.Interval:2000;
splashdisplay(o);
}
}
window.onload=function(){
SplashPage({
SplashID:'splashcontainer',
SplashMessages:[
'Welcome to<br> the Republic of Aquitaine ',
'we hope that you find our site,',
'interesting and<br> informative<br> with history. ',
'You will find links to more information,',
'that we hope you will enjoy.',
'We will open the door for you...'
],
Interval:1000,
TargetDestination:'http://www.dynamicdrive.com',
CenterLeft:true,
CenterTop:false
});
}
</script>
<!--Set href in below link to the URL of the target destination-->
<div align="center">
<table border="0" width="200" height="100%" cellspacing="0" cellpadding="0">
<td width="100%" valign="bottom" align="center">
[ <a href="http://www.republic-of-aquitaine.org/index1.htm">
<font color="#000000"><b>Skip Intro</b></font></a> ]
</td>
</table>
</div>
</body>
</html>
Bookmarks