J
Jon
Hi,
I am calling the function showpopupWindow(item) to open and write a
popup window. When testing in IE6 locally the popup window displays my
text in both the title and status bars but when viewed online from my
website the titlebar text is preceded by the full URL and a - ( eg
http://www.........co.uk - text I want to display) and the status bar
appears to only display Downloading picture
http://www..........co.uk/..../..../image.jpg... which only changes to
my text after hovering over 'Buy this item' or 'Contact Us' which
contain onmouseover and onmouseout code.
Although it reduces the amount of text I can display, I can live with
the titlebar if necessary but particularly want to display much more
useful information in the status bar.
Thanks
function showpopupWindow (item) {
var TitleStatus = 'text I want to display'
htmlTxt = '<html><head><title>' + TitleStatus + '</title></head>';
htmlTxt += '<BODY onload="window.titlebar=\'' + TitleStatus + '\';
return true, window.status=\'' + TitleStatus + '\'; return true"
leftmargin="5" topmargin="5" scroll="auto">';
htmlTxt += '<div align="center">';
.....................
.....................
htmlTxt += '<td width=20%><a href="order_form.htm"
onmouseover="window.status=\'click to buy this item\'; return true",
onmouseout="window.status=\'' + TitleStatus + '\'; return true">Buy this
item</a></td><td
width=20%><a href="mailto:[email protected]?subject=Mysite Sales - ' +
menuStr + ' - Item ' + item + ' ' + cat[item][3] + ' ' +
cat[item][4] + '" onmouseover="window.status=\'click to email us\';
return true", onmouseout="window.status=\'' + TitleStatus + '\'; return
true">Contact Us</a></td><td><p align="left"><a
href="javascript:window.close();">Close window</a></td></table></td>';
htmlTxt += '</tr><tr><td> </td></tr></table></div></body></html>;
newWindow =
window.open('','NewWin','width=925,height=600,menubar=no,statusbar=yes,ti
tlebar=yes,toolbar=no,location=no');
newWindow.document.write(htmlTxt);
}
I am calling the function showpopupWindow(item) to open and write a
popup window. When testing in IE6 locally the popup window displays my
text in both the title and status bars but when viewed online from my
website the titlebar text is preceded by the full URL and a - ( eg
http://www.........co.uk - text I want to display) and the status bar
appears to only display Downloading picture
http://www..........co.uk/..../..../image.jpg... which only changes to
my text after hovering over 'Buy this item' or 'Contact Us' which
contain onmouseover and onmouseout code.
Although it reduces the amount of text I can display, I can live with
the titlebar if necessary but particularly want to display much more
useful information in the status bar.
Thanks
function showpopupWindow (item) {
var TitleStatus = 'text I want to display'
htmlTxt = '<html><head><title>' + TitleStatus + '</title></head>';
htmlTxt += '<BODY onload="window.titlebar=\'' + TitleStatus + '\';
return true, window.status=\'' + TitleStatus + '\'; return true"
leftmargin="5" topmargin="5" scroll="auto">';
htmlTxt += '<div align="center">';
.....................
.....................
htmlTxt += '<td width=20%><a href="order_form.htm"
onmouseover="window.status=\'click to buy this item\'; return true",
onmouseout="window.status=\'' + TitleStatus + '\'; return true">Buy this
item</a></td><td
width=20%><a href="mailto:[email protected]?subject=Mysite Sales - ' +
menuStr + ' - Item ' + item + ' ' + cat[item][3] + ' ' +
cat[item][4] + '" onmouseover="window.status=\'click to email us\';
return true", onmouseout="window.status=\'' + TitleStatus + '\'; return
true">Contact Us</a></td><td><p align="left"><a
href="javascript:window.close();">Close window</a></td></table></td>';
htmlTxt += '</tr><tr><td> </td></tr></table></div></body></html>;
newWindow =
window.open('','NewWin','width=925,height=600,menubar=no,statusbar=yes,ti
tlebar=yes,toolbar=no,location=no');
newWindow.document.write(htmlTxt);
}