I got 2 error from the following code below...
1. I couldn't load up the picture since the picture is at
(C:\company\ima ge\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\ima ge\index.html)
<html><head><ti tle>Megatone Inc.</title></head>
<style language='javas cript'>
<!--
function popup(picName, chatWidth, chatHeight) {
popup = window.open('/popup.html','po pup','left=50,t op=50');
var loadedPic = picName;
while(popup.doc ument.readyStat e != "complete") {}
popup.resizeTo( chatWidth,chatH eight);
popup.document. images.src=load edPic;
popup.focus();
};
//-->
</style></head><body>
<A href="javaScrip t:popup('largeP ic.jpg','750',' 392')"><IMG
src="smallPIc.j pg" align=center></A>
</body></html>
~~~~~~~ POPUP.HTML ~~~~~~~~ (c:\)
<html><head><ti tle>Megatone Inc.</title></head>
<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table width='100%' height='100%' border=0><tr><t d 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\ima ge\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\ima ge\index.html)
<html><head><ti tle>Megatone Inc.</title></head>
<style language='javas cript'>
<!--
function popup(picName, chatWidth, chatHeight) {
popup = window.open('/popup.html','po pup','left=50,t op=50');
var loadedPic = picName;
while(popup.doc ument.readyStat e != "complete") {}
popup.resizeTo( chatWidth,chatH eight);
popup.document. images.src=load edPic;
popup.focus();
};
//-->
</style></head><body>
<A href="javaScrip t:popup('largeP ic.jpg','750',' 392')"><IMG
src="smallPIc.j pg" align=center></A>
</body></html>
~~~~~~~ POPUP.HTML ~~~~~~~~ (c:\)
<html><head><ti tle>Megatone Inc.</title></head>
<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table width='100%' height='100%' border=0><tr><t d align='center'
valign='center' >
<img name='images' src='' alt='Loading Picture'>
</td></tr></table>
</BODY><HTML>
Comment