Jump to content

Paco

Members
  • Posts

    2
  • Joined

  • Last visited

Paco's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Paco

    Buttons carousel

    May I have some more help? Thank you
  2. Hi, I'd like to create a carousel containing multiple buttons created dynamically. I've created the buttons from the database like this: function crearBotones() {var myClass = eval('myBtnObject');botonera = document.getElementById("spBotones");for (i = 0; i < myClass.length; i++) { var btn = document.createElement("input");//Assign different attributes to the element.btn.setAttribute("type", "button");btn.setAttribute("value", myBtnObject[i].pdescri);btn.setAttribute("name", myBtnObject[i].pid);btn.style.width = "130px";btn.style.height = "80px";btn.setAttribute("onclick", "llamarHijos(this);");//Append the element in page (in span).botonera.appendChild(btn);} } These are shown in line, but I'd like to add a left and right button to navigate when they are more than 8 for example. I've seen multiple jquery explamples but I can't fit them in my project. Any ideas? Thank you
×
×
  • Create New...