Well, I have given it a good hour of tinkering with what should be the easy bit of following your instructions but its not quite there. I'm sure, as is usually the case with these things, it will be all down to a .<(,"' or something
In answer to your question, those 2 gifs are just there because I haven't got round to sorting the code out for the flash (I've never done this before either!!......I'm actually quite good at making decent html and css

) Anyway, i did it this morning and it looks like this:
Code:
<div id="splash">
<div id="vid">
<object classid="clsid:D697CDE7E-AE6D-11cf-96B8-458453540000"
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
id="intro" width="720" height="480" />
<param name="movie" value="intro.swf" />
<param name="quality" value="high" />
<param name="loop" value="false" />
<param name="bgcolor" value="#000" />
<embed name="intro" src="intro.swf" quality="high" loop="false" bgcolor="#000" width="720" height="480"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
</div>
</div>
and the associated css is:
Code:
#splash {
position: fixed;
background-color: #000;
width: 100%;
height: 100%;
z-index:1000;
display:block;
}
#splash #vid {
margin-top: 100px;
}
my combined version of your code as it currently stands is:
Code:
<script type="text/javascript">
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
function setTheDivStyle() {
if(!readCookie('foxIndex')) {
// if cookie not found display the div and create the cookie
createCookie('foxIndex', 'foxIndex', 24); // 1 day = 24 hours persistence
Var AniScreen = " <div><img id='vid' src='images/logo.gif' alt=''></div>";
AniScreen = AniScreen + " <div><img src='images/loader.gif' alt=''></div>";
getElementById("splash").innerHTML = AniScreen;
}
else {
// if cookie found hide the div
document.getElementById("splash").style.display="none";
}
}
</script>
</head>
<body onload = "setTheDivStyle()">
<div id="splash">
</div>
<script type="text/javascript">
function closeSplashDiv(){
document.getElementById("splash").innerHTML = ""
}
// close the div in 4.5 secs
window.setTimeout( closeSplashDiv, 4500 );
</script>
I tried with and without the 'else' in the setTheDivStyle function
and also added a = to the alt on one of the gifs.
I also didnt bother with the video for now, just used the gifs to try and keep it simple.
All it seems to do it load the div with no content and then does not make it disappear.
....sooo close......I'm sure....!