Advertisement
jozz

xa

Feb 10th, 2014
4,946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. var idET;
  2. var auV;
  3. var ly="http://adf.ly/443077/banner/";
  4.  
  5. function cambiaP(){
  6. auV=getIdStrig().substring(7);
  7. getBID("imgs").src=htI+auV+ext;
  8. vefif();}
  9.  
  10. function abrirVentana(url) {
  11. window.open(ly+url, "nuevo", "directories=no, location=no, menubar=no, scrollbars=yes, statusbar=no, tittlebar=no, width=1200, height=720");
  12. }
  13. function getIdStrig(){
  14. idET = document.getElementById("pags");
  15. return idET.options[idET.selectedIndex].value;}
  16.  
  17. function cambiaA() {
  18. auV=(parseInt(getIdStrig().substring(7))-1).toString();
  19. getBID("imgs").src=htI+auV+ext;
  20. document.forms['mi_Form']['pags'].value = 'Página '+auV;
  21. vefif();}
  22.  
  23. function cambiaS(){
  24. auV=(parseInt(getIdStrig().substring(7))+1).toString();
  25. getBID("imgs").src=htI+auV+ext;
  26. document.forms['mi_Form']['pags'].value = 'Página '+auV;
  27. vefif();}
  28.  
  29. function getBID(idt){
  30. return document.getElementById(idt);
  31. }
  32.  
  33. function vefif(){
  34. auV=getIdStrig().substring(7);
  35. if(auV=="1"){
  36. getBID("btnAn").disabled = true;
  37. getBID("btnAn").value="----Inicio----";
  38. }else{
  39. getBID("btnAn").disabled = false;
  40. getBID("btnAn").value="Página Anterior"; }
  41. if(auV==max){
  42. getBID("btnSg").disabled = true;
  43. getBID("btnSg").value="-----Fin-----";
  44. }else{
  45. getBID("btnSg").disabled = false;
  46. getBID("btnSg").value="Página Siguiente"; }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement