[Scummvm-cvs-logs] CVS: web scripts.js,1.4,1.5

Max Horn fingolfin at users.sourceforge.net
Thu Oct 16 16:21:20 CEST 2003


Update of /cvsroot/scummvm/web
In directory sc8-pr-cvs1:/tmp/cvs-serv31286

Modified Files:
	scripts.js 
Log Message:
various fixes: use innerWidth/innerHeight instead of width/height; HTML 4.01 conformance

Index: scripts.js
===================================================================
RCS file: /cvsroot/scummvm/web/scripts.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- scripts.js	14 Oct 2003 13:08:37 -0000	1.4
+++ scripts.js	16 Oct 2003 22:46:47 -0000	1.5
@@ -1,12 +1,10 @@
 
 function openWin(fileToOpen,nameOfWindow,width,height) {
-	myWindow = window.open("",nameOfWindow,"menubar=no,scrollbars=yes,status=no,width="+width+",height="+height);
+	myWindow = window.open("",nameOfWindow,"menubar=no,scrollbars=no,status=no,innerWidth="+width+",innerHeight="+height);
 	myWindow.document.open();
 	myWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">\n')
-	myWindow.document.write('<html><head><title>ScreenShot Viewer</title></head>')
-	myWindow.document.write('<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">');
-	myWindow.document.write('<a href="javascript:self.close();"><img src="'+ fileToOpen +'"></a>');
-	myWindow.document.write('</body></html>');
+	myWindow.document.write('<html><head><title>ScreenShot Viewer</title><link rel="stylesheet" href="styles.css" type="text/css"></head>')
+	myWindow.document.write('<body><a href="javascript:self.close();"><img src="'+ fileToOpen +'"></a></body></html>');
 	myWindow.document.close();
 }
 





More information about the Scummvm-git-logs mailing list