/    Sign up×
Community /Pin to ProfileBookmark

Please help-Should be simple!!!!

Maybe I haven´t been explaining this properly it should be really easy I have changed things to make it easier now.

[url]http://216.219.94.105/AJAX1.htm[/url]

I have four tabs which work fine and when clicked on change the panels (if you click on “Second Panel” for example you see the second panel).

The problem is that I am trying to make the two links on the first panel which is the panel that you see when you first load the page in your browser.

In my clearest most simple english I want to make the two links (or just one is fine and I can work out how to do the other one) work(they don´t at the moment).

What are the links and how should they work?:
There are two href links(let´s call them 1 and 2 so we know what we are talking about):
1.Click on me to see the second panel
2.Click on me to see the third panel

What I want to happen is that when you click on the 1 link you should see the second panel (which effectively mimics the same action as clicking on the Second panel link in the panel).
When you click on the 2 link you should see the third panel (which effectively mimics the same action as clicking on the Third panel link).

That´s it-it should be pretty simple but I don´t have a clue how to do it!! How do I do it? Thank you very much in advance

The links:
<!– first panel –>
<div class=”gw_aTab”>
<!– the links –>
<h3>This is the first panel</h3>
<a href=””>Click on me to see the second panel</a> <br />
<a href=””>Click on me to see the third panel</a></div>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@eddietheeagleauthorAug 01.2007 — Here´s the answer:

<h3>This is the first panel</h3>

<a href="javascript:showTab('gw_tabView1', 1);">Click on me to see the second

panel</a> <br />

<a href="javascript:showTab('gw_tabView1', 2);">Click on me to see the third

panel</a></div>

The index starts from 0
×

Success!

Help @eddietheeagle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...