Array of Paragraphs

I need help to understand and to show/hide several paragraphs when the user clicks next and then the reverse when the user clicks prev.

Can anyone help me? :S

You can create elements using “document.createElement(“p”);”, as follows:

p=document.createElement("p");

If you have created a paragraph element using “createElement”, you can add content to it either by the element’s method “innerHTML” or creating a text node and appending it:
Example1:

p.innerHTML("<b>Example bold text.</b>");

Example2:

myTextNode=document.createTextNode("My text");
p.appendChild(myTextNode);

To append ‘p’ to an array named ‘a’ use:

a[]=p