Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var idET;
- var auV;
- var ly="http://adf.ly/443077/banner/";
- function cambiaP(){
- auV=getIdStrig().substring(7);
- getBID("imgs").src=htI+auV+ext;
- vefif();}
- function abrirVentana(url) {
- window.open(ly+url, "nuevo", "directories=no, location=no, menubar=no, scrollbars=yes, statusbar=no, tittlebar=no, width=1200, height=720");
- }
- function getIdStrig(){
- idET = document.getElementById("pags");
- return idET.options[idET.selectedIndex].value;}
- function cambiaA() {
- auV=(parseInt(getIdStrig().substring(7))-1).toString();
- getBID("imgs").src=htI+auV+ext;
- document.forms['mi_Form']['pags'].value = 'Página '+auV;
- vefif();}
- function cambiaS(){
- auV=(parseInt(getIdStrig().substring(7))+1).toString();
- getBID("imgs").src=htI+auV+ext;
- document.forms['mi_Form']['pags'].value = 'Página '+auV;
- vefif();}
- function getBID(idt){
- return document.getElementById(idt);
- }
- function vefif(){
- auV=getIdStrig().substring(7);
- if(auV=="1"){
- getBID("btnAn").disabled = true;
- getBID("btnAn").value="----Inicio----";
- }else{
- getBID("btnAn").disabled = false;
- getBID("btnAn").value="Página Anterior"; }
- if(auV==max){
- getBID("btnSg").disabled = true;
- getBID("btnSg").value="-----Fin-----";
- }else{
- getBID("btnSg").disabled = false;
- getBID("btnSg").value="Página Siguiente"; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement