1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<script type="text/javascript">
var nu=0;
var min1=1;
var max1=11;
var ext1='.JPG';
var file1='./vue/vue';
function Prev() {
if(nu>min1) {
nu--;
AffCacheImg(file1+nu+ext1);
}
}
function Next() {
if(nu<max1) {
nu++;
AffCacheImg(file1+nu+ext1);
}
}
function AffCacheImg(id1) {
for (i=1; i<12; i++){
var div = document.getElementById(file1+i+ext1);
div.style.display = "none";
}
var div = document.getElementById(id1);
if (div.style.display == "none")
div.style.display = "";
}
function AffCache(id) {
for (i=1; i<10; i++){
var div = document.getElementById(i);
div.style.display = "none";
}
var div = document.getElementById(id);
if (div.style.display == "none")
div.style.display = "";
}
function RecupArguURL(argumentARecuperer) {
// recuperer l'URL de la page
urlPage = window.location.href;
// recuperer la valeur de l'argument recherché avec tous les arguments qui sont apres elle
listeArguments = urlPage.split(new RegExp(argumentARecuperer+"=", "g"));
if(listeArguments.length == 1)
{ // si il n'a rien decoupé, c'est que l'argument n'a pas été trouvé
return 1;
}
else
{ // si il l'a trouvé, on ne prend que ce qui est avant la première instance de '&'
argumentRecherche = listeArguments[1].split(new RegExp("&", "g"));
}
return argumentRecherche;
}
var num=0;
var min2=1;
var max2=21;
var ext2='.jpg';
var file2='./soiree/271108/Pic';
function Prev2() {
if(num>min2) {
num--;
AffCachePic(file2+num+ext2);
}
}
function Next2() {
if(num<max2) {
num++;
AffCachePic(file2+num+ext2);
}
}
function AffCachePic(id1) {
for (i=1; i<22; i++){
var div = document.getElementById(file2+i+ext2);
div.style.display = "none";
}
var div = document.getElementById(id1);
if (div.style.display == "none")
div.style.display = "";
}
</script> |