display image counter
authorgc <gc>
Sat, 5 Mar 2005 15:27:50 +0000 (15:27 +0000)
committergc <gc>
Sat, 5 Mar 2005 15:27:50 +0000 (15:27 +0000)
html_merges.rb
themes/simple/skeleton.html

index a721c90a0eeae6281d492f25e28ad9269c13dbfc..a3863a3d00a00bf436bd96806bb5422da1cd40a7 100644 (file)
@@ -133,6 +133,8 @@ function show_current_text() {
     /* don't show text if image not yet loaded because navigator
      * won't refresh it during load */
     if (images_loaded[current] == 2) {
+        eval("document.getElementById('image_counter')" +
+                     ".firstChild.data = '" + ( current + 1 ) + "/" + images.length + "'");
         eval("document.getElementById('main_text')" +
                      ".firstChild.data = '" + images[current] + "'");
         set_cursor("default");
@@ -266,6 +268,10 @@ $image = <<'EOF'
   <img name="main_img">
 EOF
 
+$image_counter_additions = <<'EOF'
+  id="image_counter"
+EOF
+
 $caption_additions = <<'EOF'
   id="main_text"
 EOF
index 774bafb419e7c933f1196eba54493a0ba9756b8b..2be00d04b11e1653645d153862861118477a26fd 100644 (file)
@@ -14,7 +14,7 @@
     <td width="1%">~~~button_first~~~</td>
     <td width="3%"></td>
     <td width="1%">~~~button_previous~~~</td>
-    <td></td>
+    <td align="center" ~~~image_counter_additions~~~>&nbsp;</td>
     <td width="1%">~~~button_next~~~</td>
     <td width="3%"></td>
     <td width="1%">~~~button_last~~~</td>