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

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

Loading…
Cancel
Save