How can I add specific controls to each of my tab?

How do I modify this javascript to add another tab? Pls help.?

  • I added the the first part (fourth), but I need to modify something else in order for it to work. Please help! first person that gets it working for me gets 10 pts. thanks! <script language="JavaScript"> var tabs = [ //first tab [ //tab image when unselected '1.png', //tab image when selected '1_selected.png', //tab data '<p >blah blah blhah</p> '], //second tab [ '2.png', '2_selected.png', '<p>This would be the "Games" tab</p>'], //third tab [ '3.png', '3_selected.png', '<p>This is the "Entertainment" tab</p>']]; --------------------------------------… i know how to modify the above, but I need to know how to modify what is below --------------------------------------…

  • Answer:

    The code below does it automatically no matter how many tabs you add. You don't need to edit it. In order to add another tab you modify the top part correctly, just make sure you do it correctly. Edit: OK, show me how the top part looks when you've added the fourth tab. Do you get any errors? Use firefox's Error Console for more detail. And if that's not the problem it might be you need to edit this line under function preloadImages() { like so: for (var y = 0; y < 3; y++) {

me at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

WELL I HAVE TO SAY THAT IF YOU WANT TO ADD ANOTHER TAB I GUESS YOU HAVE TO HAVE A COMPUTER UPGRADE TO BE ABLE TO ADD TABS LIKE OTHER COMPUTERS SO GET A COMPUTER UPGRADE!!!

mnyork21

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.