/    Sign up×
Community /Pin to ProfileBookmark

hello

I have image tabs in div i wanna know the code that when i click any tab part of page content changes without refreshing he whole page please help i don’t have any code for that help me

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@DokSep 06.2008 — You can use one of three approaches

1:

Load all content at once. Only show the first tab when page is loaded and then use CSS (the display property) to switch between which tab is displayed.

To do this read about how CSS works - specifically the display property - and how it is set using JavaScript.

2:

Load all content at once. Make a row of tabs and a single content div. Replace the content div when pressing tabs.

To do this read about the innerHTML property.

3:

Use Ajax. If you are new to JavaScript this will be the advanced solution. Do a google search for "Ajax tutorial".

In general you also need to read about how events work.

http://www.w3schools.com/ have some excellent references for beginners.
Copy linkTweet thisAlerts:
@samar470authorSep 08.2008 — will u please help me I want the code of this site www.manh.com when I click solutions- industries-business impact tabs some of the page content chages without refreshing or reloading the whole page please help me and give me the code i need the code soooo much
×

Success!

Help @samar470 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.20,
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,
)...