B
Ben Wan
I got 2 error from the following code below...
1. I couldn't load up the picture since the picture is at
(C:\company\image\largePic.jpg)
2. I got a page error in my 'index.html' when calling popup(x,x,x) for the
2nd time.
The code are as followed.
Can anyone help please? Thank you very much~~
Ben
~~~~~~~ INDEX.HTML ~~~~~~~~ (c:\company\image\index.html)
<html><head><title>Megatone Inc.</title></head>
<style language='javascript'>
<!--
function popup(picName, chatWidth, chatHeight) {
popup = window.open('/popup.html','popup','left=50,top=50');
var loadedPic = picName;
while(popup.document.readyState != "complete") {}
popup.resizeTo(chatWidth,chatHeight);
popup.document.images.src=loadedPic;
popup.focus();
};
//-->
</style></head><body>
<A href="javaScriptopup('largePic.jpg','750','392')"><IMG
src="smallPIc.jpg" align=center></A>
</body></html>
~~~~~~~ POPUP.HTML ~~~~~~~~ (c:\)
<html><head><title>Megatone Inc.</title></head>
<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table width='100%' height='100%' border=0><tr><td align='center'
valign='center'>
<img name='images' src='' alt='Loading Picture'>
</td></tr></table>
</BODY><HTML>
1. I couldn't load up the picture since the picture is at
(C:\company\image\largePic.jpg)
2. I got a page error in my 'index.html' when calling popup(x,x,x) for the
2nd time.
The code are as followed.
Can anyone help please? Thank you very much~~
Ben
~~~~~~~ INDEX.HTML ~~~~~~~~ (c:\company\image\index.html)
<html><head><title>Megatone Inc.</title></head>
<style language='javascript'>
<!--
function popup(picName, chatWidth, chatHeight) {
popup = window.open('/popup.html','popup','left=50,top=50');
var loadedPic = picName;
while(popup.document.readyState != "complete") {}
popup.resizeTo(chatWidth,chatHeight);
popup.document.images.src=loadedPic;
popup.focus();
};
//-->
</style></head><body>
<A href="javaScriptopup('largePic.jpg','750','392')"><IMG
src="smallPIc.jpg" align=center></A>
</body></html>
~~~~~~~ POPUP.HTML ~~~~~~~~ (c:\)
<html><head><title>Megatone Inc.</title></head>
<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table width='100%' height='100%' border=0><tr><td align='center'
valign='center'>
<img name='images' src='' alt='Loading Picture'>
</td></tr></table>
</BODY><HTML>