I have a blank html file called: index.html. I want its bgcolor="black" and I want it to
open a pop-up window size width=715 height=115 position left=149 top=311 with another html file called: logo.html.
At the same time I want index.html to re-direct users to page: main.html, but I want the popup window to stay open and have it be the selected window.
Below is what I have come up with so far (the index.html) file.
Can any-one help me with this?
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=149,top=311,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "LOGO.HTML";
width = 715; // width of window in pixels
height = 115; // height of window in pixels
delay = 0; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
// End -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
<!-- Begin
function reDirect() {
window.location="main.html"
}
// End -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="BLACK" onLoad="doPopup();reDirect()">
</BODY>
</HTML>
open a pop-up window size width=715 height=115 position left=149 top=311 with another html file called: logo.html.
At the same time I want index.html to re-direct users to page: main.html, but I want the popup window to stay open and have it be the selected window.
Below is what I have come up with so far (the index.html) file.
Can any-one help me with this?
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=149,top=311,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "LOGO.HTML";
width = 715; // width of window in pixels
height = 115; // height of window in pixels
delay = 0; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
// End -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
<!-- Begin
function reDirect() {
window.location="main.html"
}
// End -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="BLACK" onLoad="doPopup();reDirect()">
</BODY>
</HTML>