diff --git a/cnt/_photo/tux.gif b/cnt/_photo/tux.gif new file mode 100644 index 0000000..0175d22 Binary files /dev/null and b/cnt/_photo/tux.gif differ diff --git a/cnt/examples.txt b/cnt/examples.txt index 96601e1..75ee9cd 100644 --- a/cnt/examples.txt +++ b/cnt/examples.txt @@ -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 diff --git a/gallery.js b/gallery.js index ff13350..c244171 100644 --- a/gallery.js +++ b/gallery.js @@ -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){