Mr.Bluesky
09-26-2005, 02:22 AM
Hello Anyone!
I found a script as load a page pictures, backgroundsound, text etc with a loading message "Page loading ... Please wait" but when it´s done the page will be hidden. I wish to edit the script so when the page is loaded it will go to another page (link) like http://www.altavista.com (for example). The script is below.
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
}
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
// End -->
</script>
</HEAD>
<BODY OnLoad="loadImages()">
<div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;">
<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
I´ve tried to edit the script like this but it´s not work
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'http://www.altavista.com';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'http://www.altavista.com';';
}
else { // IE 4
document.all.hidepage.style.visibility = 'http://www.altavista.com';';
}
}
}
// End -->
</script>
</HEAD>
<BODY OnLoad="loadImages()">
<div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;">
<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
Pleas anyone to now how to do? I´m just a beginner... :)
I found a script as load a page pictures, backgroundsound, text etc with a loading message "Page loading ... Please wait" but when it´s done the page will be hidden. I wish to edit the script so when the page is loaded it will go to another page (link) like http://www.altavista.com (for example). The script is below.
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
}
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
// End -->
</script>
</HEAD>
<BODY OnLoad="loadImages()">
<div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;">
<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
I´ve tried to edit the script like this but it´s not work
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'http://www.altavista.com';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'http://www.altavista.com';';
}
else { // IE 4
document.all.hidepage.style.visibility = 'http://www.altavista.com';';
}
}
}
// End -->
</script>
</HEAD>
<BODY OnLoad="loadImages()">
<div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;">
<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
Pleas anyone to now how to do? I´m just a beginner... :)