: Office de tourisme Embrun
@import url(« template/styles.php »);
@import url(« template/modules/locations/locations.css »);
catwalk_speed=0;catwalk_shift_interval=0;catwalk_speed_limit=7;function catwalk_over(event,idTable){catwalk_shift_interval=setInterval(« catwalk_shift(‘ »+idTable+ »‘) »,10);}
function catwalk_move(event,idContainer,idLeft,idRight,idTable){var el=event.srcElement;if(!el){el=event.target;}
var offsetCount=0;while(el.id!=idContainer){offsetCount+=el.offsetLeft;el=el.parentNode;}
var mouseX=event.offsetX+offsetCount;if(typeof event.offsetX== »undefined »){if(event.target.id.match(idLeft)){mouseX=event.layerX;}else{if(event.target.id.match(idRight)){mouseX=event.layerX;}else{mouseX=event.layerX+parseInt(document.getElementById(idTable).offsetLeft)+40;}}}
catwalk_speed=(mouseX-(487/2))/(487/2)*10;if(catwalk_speed>catwalk_speed_limit)catwalk_speed=catwalk_speed_limit;}
function catwalk_out(){clearInterval(catwalk_shift_interval);}
function catwalk_shift(idTable){var actual_speed=Math.abs(catwalk_speed)-2;if(actual_speed<0)actual_speed=0;if(catwalk_speed=0&&actual_speed<0){return;}
if(parseInt(mytable.offsetLeft)0){return;}
mytable.style.left=(parseInt(mytable.offsetLeft)-actual_speed)+ »px »;}}
catwalk_shift_interval_consultes=0;
function catwalk_over_consultes(event,idTable)
{
catwalk_shift_interval_consultes=setInterval(« catwalk_shift(‘ »+idTable+ »‘) »,10);
}
function catwalk_out_consultes(){clearInterval(catwalk_shift_interval_consultes);}
function check_options_required()
{
var valid = true;
$$(‘input.required’,’textarea.required’).each(function(obj)
{
if(obj.value.length <= 0)
{
valid = false;
new Effect.Pulsate(obj);
}
});
return valid;
}
function add_to_cart(pid)
{
if(!pid)
{
// Ajout au panier de l'article de la fiche
var valid = check_options_required();
if(valid)
{
new Ajax.Updater(
"mb_panier",
"ajax.php?page=fiche_article",
{
method: 'post',
evalScripts: true,
parameters: {action:'ajout_panier',data:$('cart_quantity').serialize()},
onComplete: function(result)
{
add_to_cart_complete();
}
}
);
}
} else
{
// Ajout au panier d'un article complémentaire (depuis les modules aussi achetés…)
new Ajax.Updater(
"mb_panier",
"ajax.php?page=fiche_article",
{
method: 'post',
evalScripts: true,
parameters: {action:'ajout_panier',pid:pid},
onComplete: function(result)
{
add_to_cart_complete();
}
}
);
}
}
function add_to_cart_complete()
{
Modalbox.show($('mb_panier'), {slideDownDuration:0, slideUpDuration:0, resizeDuration:0, autoFocusing:false});
window.scrollTo(0,0);
// Mise à jour de l'affichage du module panier
new Ajax.Updater(
"nb_articles_panier",
"ajax.php?page=fiche_article",
{
method: 'get',
parameters: {action:'maj_nb_articles_panier'}
}
);
// Mise à jour de l'affichage du module total panier
new Ajax.Updater(
"total_panier",
"ajax.php?page=fiche_article",
{
method: 'get',
parameters: {action:'maj_total_panier'}
}
);
// Mise à jour de l'affichage du module panier complet
new Ajax.Updater(
"panier-complet",
"ajax.php?page=fiche_article",
{
method: 'get',
parameters: {action:'maj_panier-complet'}
}
);
}
// Clic sur le bouton échanger
function loadPrime(pid,prime)
{
new Ajax.Request(
"ajax.php?page=fa",
{
method: 'get',
parameters: {action:'loadPrime',pid:pid,prime:prime},
onSuccess: function()
{
$('cart_quantity').submit();
}
}
);
}
// Mise à jour du prix à la sélection d'une option
function updateFaPrice()
{
if($('fa_price') != null)
{
new Ajax.Updater(
"fa_price",
"ajax.php?page=fa",
{
method: 'post',
parameters: {action:'updatePrice',data:$('cart_quantity').serialize(),pecotax:'',plocation:''}
}
);
}
}
// Mise à jour du stock
function updateFaStock()
{
if($('fa_stock') != null)
{
new Ajax.Updater(
"fa_stock",
"ajax.php?page=fa",
{
method: 'post',
evalScripts:true,
parameters: {action:'updateStock',data:$('cart_quantity').serialize(),plocation:''}
}
);
}
}
// Mise à jour des options selon la quantité (pour les prix dégressifs)
function updateFaOptions()
{
if($('fa_options') != null)
{
new Ajax.Updater(
"fa_options",
"ajax.php?page=fa",
{
method: 'post',
parameters: {action:'updateOptions',data:$('cart_quantity').serialize()},
onComplete: function()
{
updateFaPrice();
updateFaStock();
}
}
);
}
}
Chateauroux les Alpes
// favicon
var css=Builder.node(« link »,{href: »template/images/favicon.ico »,rel:’SHORTCUT ICON’});$$(‘head’)[0].appendChild(css);
function link_module_css(path)
{var css=Builder.node(« link »,{type:’text/css’,href:path,rel:’stylesheet’});$$(‘head’)[0].appendChild(css);}
function addLoadListener(func){if(window.addEventListener){window.addEventListener(« load »,func,false);}else if(document.addEventListener){document.addEventListener(« load »,func,false);}else if(window.attachEvent){window.attachEvent(« onload »,func);}}
function ChangeUrl(formulaire)
{if(formulaire.ListeUrl.selectedIndex!=0)
{location.href=formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;}
else
{alert(‘Veuillez choisir une rubrique.’);}}
function fck_formulaire_dynamique_check()// utilisé pour formulaires fck
{var formu=document.getElementById(‘fck_formulaire_dynamique’);var error=false;for(i=0;i<formu.length;i++)
{if(formu[i].getAttribute('required')=='required')
{try
{formu[i].onfocus=function(){this.style.backgroundColor="#fff";};}catch(e)
{formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');}
if(formu[i].type=='text'||formu[i].type=='textarea')
{if(formu[i].value.length<=0)
{formu[i].style.backgroundColor='#FFCFCF';error=true;}}else if(formu[i].type=='checkbox'||formu[i].type=='radio')
{if(!formu[i].checked)
{formu[i].style.backgroundColor='#FFCFCF';error=true;}}}}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{return true;}}
function formulaire_dynamique_check_captcha(formu)// utilisé par les enquetes publiques avec captcha = 1
{
var error=false;
// on vérifie d'abord le captcha
new Ajax.Request(
"ajax.php",
{
method: 'get',
parameters: {page:'verifCaptcha',captcha:formu.getInputs('text', 'captcha')[0].value},
onSuccess: function(result){
if(result.responseText=='nok')
{
error = true;
var nb = Math.round(Math.random(0)*1000)+1;
$$('img.cryptogram').each(function(elt)
{
elt.src = '/cryptographp.php?cfg=0&session=e9d7cfcbb1323239444adc7ea0d1f3c4&'+nb;
});
try
{
formu.getInputs('text', 'captcha')[0].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu.getInputs('text', 'captcha')[0].setAttribute('onfocus','style.backgroundColor="#fff"');
}
formu.getInputs('text', 'captcha')[0].style.backgroundColor='#FFCFCF';
}
// Champs obligatoires
for(i=0;i<formu.length;i++)
{
if(formu[i].getAttribute('required')=='required')
{
try
{
formu[i].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');
}
if(formu[i].type=='text'||formu[i].type=='textarea'||formu[i].type=='file')
{
if(formu[i].value.length<=0)
{
formu[i].style.backgroundColor='#FFCFCF';error=true;
}
}else if(formu[i].type=='checkbox')
{
var onechecked = false;
$$('input.'+formu[i].className).each(
function(elt)
{
if(elt.checked)
{
onechecked = true;
}
});
if(!onechecked)
{
error=true;
}
}
}
}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{formu.submit();}
}
}
);
return false;
}
function formulaire_dynamique_check(formu)// utilisé par les enquetes publiques avec captcha = 0
{
var error=false;
// Champs obligatoires
for(i=0;i<formu.length;i++)
{
if(formu[i].getAttribute('required')=='required')
{
try
{
formu[i].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');
}
if(formu[i].type=='text'||formu[i].type=='textarea'||formu[i].type=='file')
{
if(formu[i].value.length<=0)
{
formu[i].style.backgroundColor='#FFCFCF';error=true;
}
}else if(formu[i].type=='checkbox')
{
var onechecked = false;
$$('input.'+formu[i].className).each(
function(elt)
{
if(elt.checked)
{
onechecked = true;
}
});
if(!onechecked)
{
error=true;
}
}
}
}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{formu.submit();}
}
function ejs_nodroit()
{
alert(‘Clic droit désactivé’);
return(false);
}
document.oncontextmenu = ejs_nodroit;
|
|||||||||
|
sfHover = function() { |
|
function textCounter(field,counter,maxlimit,linecounter){var fieldWidth=parseInt(field.offsetWidth);var charcnt=field.value.length;if(charcnt>maxlimit){field.value=field.value.substring(0,maxlimit);}else{var percentage=parseInt(100-((maxlimit-charcnt)*100)/maxlimit);document.getElementById(counter).style.width=parseInt((fieldWidth*percentage)/100)+ »px »;document.getElementById(counter).innerHTML= »Limit: « +percentage+ »% »
« );}initLightbox();MagicZoom_findZooms();} ‘;},onComplete:function(transport){$(‘div_data_loader’).innerHTML= »;initLightbox();MagicZoom_findZooms();}});}
function initAuctionsHandler() var countd = resultat; // load the original script function initAuctions() |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/* div : détails affichés au survol */
#defilante-picto-bulle
{
position: absolute;
top:0px;
left:0px;
visibility: hidden;
font-size:12px;
cursor:pointer;
width:350px;
z-index:100;
border:1px solid #c2c1c1;
padding: 7px;
color:#000000;
text-align:left;
background-color:#eee;
opacity: 0.9;
-moz-opacity: 0.9;
filter: alpha(opacity=90);
}
bullename = ‘defilante-picto-bulle’;
var boxeDefilantePicto = new BoxeDefilante(‘defilante-picto-bulle’);
function load_onglet(onglet,pid)
{
var tt = $$(‘td.oda-onglet’);
tt.each( function(c) { c.className = ‘oda-onglet’; });
$(‘oda-‘+onglet).className = ‘oda-onglet oda-onglet-hover’;
new Ajax.Updater(
« onglets_content »,
« ajax.php?page=fa »,
{
method: ‘get’,
evalScripts: true,
asynchronous: false,
parameters: {action:’load_onglet_’+onglet,pid:pid},
onLoading: function(){
$(‘onglets_content’).innerHTML = ‘
}
}
);
}
|
|
Office de Tourisme – Place du Général DOSSE – 05200 EMBRUN | Tél. : 04 92 43 72 72 | | Conditions | Plan du site | ![]() | ![]() |© Copyright Photo Oliver 0965190598
|
gi_Cappture_Domain_Id = ‘ezBDOUE4NzU3LUI1QTctNDZCRi04OEFFLTcwNzAyOEUwMjlERH1fe0M5RTdFOTZELTc3MDItNDJBQy1CMkI3LTEzOTcyRThCRjdDOX0=’
var gaJsHost = ((« https: » == document.location.protocol) ? « https://ssl. » : « http://www. »);
document.write(unescape(« %3Cscript src=' » + gaJsHost + « google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E »));
try {
var pageTracker = _gat._getTracker(« UA-5635448-13 »);
pageTracker._trackPageview();
} catch(err) {}
var gaJsHost = ((« https: » == document.location.protocol) ? « https://ssl. » : « http://www. »);
document.write(unescape(« %3Cscript src=' » + gaJsHost + « google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E »));
try {
var pageTracker = _gat._getTracker(« UA-110059-2 »);
pageTracker._trackPageview();
} catch(err) {}
document.observe(‘dom:loaded’,function(){new Lightbox();});















