small example change, fixed an issue in the gallery javascript

master
Stefan Krulj 14 years ago
parent dd213ec191
commit 5fb51bb00d
  1. BIN
      cnt/_photo/tux.gif
  2. 4
      cnt/examples.txt
  3. 6
      gallery.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -30,7 +30,7 @@ Links:
Images: Images:
![this is an alt text](_img/tux.gif) ![this is an alt text](cnt/_photo/tux.gif)
# Syntax highlighting # Syntax highlighting
@ -81,4 +81,6 @@ HTML is a standard by W3C.
# Footnotes # Footnotes
Reference to a footnote. [^1] Reference to a footnote. [^1]
Names work too. [^Ref]
[^1]: This is a footnote [^1]: This is a footnote
[^Ref]: An other one

@ -37,7 +37,7 @@ function prevImg(){
var parent = current_li.parentNode; var parent = current_li.parentNode;
var prev_li = prevByTag(parent,current_li,"LI"); var prev_li = prevByTag(parent,current_li,"LI");
if( !prev_li ){ if( !prev_li ){
return; return false;
} }
var img = prev_li.getElementsByTagName("img")[0]; var img = prev_li.getElementsByTagName("img")[0];
var div = document.getElementById("gallery_container"); var div = document.getElementById("gallery_container");
@ -50,13 +50,14 @@ function prevImg(){
} }
} }
current_li = prev_li; current_li = prev_li;
return false;
} }
function nextImg(){ function nextImg(){
var parent = current_li.parentNode; var parent = current_li.parentNode;
var next_li = nextByTag(parent,current_li,"LI"); var next_li = nextByTag(parent,current_li,"LI");
if( !next_li ){ if( !next_li ){
return; return false;
} }
var img = next_li.getElementsByTagName("img")[0]; var img = next_li.getElementsByTagName("img")[0];
var div = document.getElementById("gallery_container"); var div = document.getElementById("gallery_container");
@ -69,6 +70,7 @@ function nextImg(){
} }
} }
current_li = next_li; current_li = next_li;
return false;
} }
function loadImg(src,target){ function loadImg(src,target){

Loading…
Cancel
Save