[Scummvm-cvs-logs] CVS: web/include html.php,1.26,1.27 menu.php,1.10,1.11 sidebar.php,1.29,1.30

Max Horn fingolfin at users.sourceforge.net
Sun Dec 11 06:41:01 CET 2005


Update of /cvsroot/scummvm/web/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2805/include

Modified Files:
	html.php menu.php sidebar.php 
Log Message:
Explicitly specify width/height of img's, to improve page loading/rendering experience

Index: html.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/html.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- html.php	1 Dec 2005 01:30:38 -0000	1.26
+++ html.php	11 Dec 2005 14:40:21 -0000	1.27
@@ -37,12 +37,12 @@
 
 $randImg = rand(0, count($heroes) - 1);
 
-echo '<img alt="Game characters" src="'.$file_root.'/images/'.$heroes[$randImg].'" height="89" />';
+echo '<img alt="Game characters" src="'.$file_root.'/images/'.$heroes[$randImg].'" width="483" height="89" />';
 
 ?>
 </td>
 					</tr>
-    <tr><td width="483"><img alt="Script creation utility for Maniac Mansion Virtual Machine" src="<?=$file_root?>/images/scummvm-caption.png" height="29" /></td>
+    <tr><td width="483"><img alt="Script creation utility for Maniac Mansion Virtual Machine" src="<?=$file_root?>/images/scummvm-caption.png" width="482" height="29" /></td>
 					<td width="24"> </td></tr>
 				</table>
 			</td>
@@ -103,7 +103,7 @@
 
 
 		</tr><tr><td class="menus" style="vertical-align:bottom;" >
-		<img src="<?=$file_root?>/images/tentacle1.gif" style="vertical-align:bottom;" alt="Tentacle" />
+		<img src="<?=$file_root?>/images/tentacle1.gif" style="vertical-align:bottom;" alt="Tentacle" width="163" height="159" />
 		</td>
 		</tr>
 
@@ -133,7 +133,7 @@
 <!-- </td></tr> -->
 	</table>
 </td><td class="menus" style="width:163px;vertical-align:top;border:0px;" rowspan="2"><img src="<?=$file_root?>/images/tentacle2.gif" style="margin:0px;border:0px;
-	vertical-align:bottom" alt="" /></td>
+	vertical-align:bottom" alt="" width="150" height="63" /></td>
 </tr><tr>
 <td colspan="2">
 <table width="100%" cellspacing="0" style="padding:0px;">
@@ -152,7 +152,7 @@
 					things are registered trademarks of <a href="http://www.lucasarts.com/">LucasArts, Inc.</a>. 
 					All other trademarks and registered trademarks are owned by their respective companies. ScummVM is 
 					not affiliated in any way with LucasArts, Inc.</td>
-					<td width="110"><img src="<?=$file_root?>/images/tentacle3.gif" alt="" /></td>
+					<td width="110"><img src="<?=$file_root?>/images/tentacle3.gif" alt="" width="116" height="74" /></td>
 					<td width="29"> </td> 
 				</tr>
 			</table>
@@ -276,7 +276,7 @@
 function html_nav_item($href, $text) {
   global $file_root;
 
-  echo "  <tr><td class='nav-bullet'><img src='$file_root/images/bullet-section.gif' alt='*' /></td><td class='nav-item'><a href='$href'>$text</a></td></tr>\n";
+  echo "  <tr><td class='nav-bullet'><img src='$file_root/images/bullet-section.gif' alt='*' width='10' height='7' /></td><td class='nav-item'><a href='$href'>$text</a></td></tr>\n";
 }
 
 ?>

Index: menu.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/menu.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- menu.php	1 Dec 2005 01:30:38 -0000	1.10
+++ menu.php	11 Dec 2005 14:40:21 -0000	1.11
@@ -7,7 +7,7 @@
 ?>
   <tfoot>
     <tr>
-      <td><img src="<?=$file_root?>/images/menu-bottom.gif" alt="" /></td>
+      <td><img src="<?=$file_root?>/images/menu-bottom.gif" alt="" width="145" height=13" /></td>
     </tr>
 
 <?php

Index: sidebar.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/sidebar.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- sidebar.php	13 Nov 2005 01:52:16 -0000	1.29
+++ sidebar.php	11 Dec 2005 14:40:21 -0000	1.30
@@ -35,7 +35,7 @@
 
     $g->done();      
 
-    $g = new htmlmenu("Misc. Menu", "menu-misc", '<img src="'.$file_root.'/images/hangmonk.gif" alt="monkey" align="right">');
+    $g = new htmlmenu("Misc. Menu", "menu-misc", '<img src="'.$file_root.'/images/hangmonk.gif" alt="monkey" align="right" width="55" height=57">');
 
     $g->add("Subprojects", $file_root."/subprojects.php");
     $g->add("Demos", $file_root."/demos.php");





More information about the Scummvm-git-logs mailing list