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
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:
- How can I call Android JavaScript functions in WebView?Best solution by Stack Overflow
- How do I turn on JavaScript support?Best solution by Stack Overflow
- How do I modify my yahoo group's home page and add promote buttons?Best solution by yahoogroups.com
- How do I modify a PS2?Best solution by Yahoo! Answers
- How can I modify a PSP myself?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.