Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
navigation tab question
Old 04-07-2008, 02:55 AM navigation tab question
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
I'm a beginner.

I downloaded a template that I really like. It uses navigation tabs like this:

<div id="navitabs">
<h2 class="hide">Site menu:</h2>
<a class="activenavitab" href="index.html">test</a><span class="hide"> | </span>
<a class="navitab" href="../details/index.html">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a><span class="hide"> | </span>
<a class="navitab" href="#">test</a></div>

<div id="desc">
<p align="left"><br />

**********

Ok, here's the problem. The background photo is in the div "desc"...BUT, I don't want the same background photo for every tab. When someone clicks on the various tabs I want the background photo to change.

What's the best and easiest way to accomplish this?
missingtime is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-07-2008, 04:12 AM Re: navigation tab question
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
The most common way of doing that is a javascript rollover tied to the onclick event. There should be a sticky there where you'll find a tutorial on how to do that; if not, post this in the javascript forum. As for different background photos in each tab before the rollover, you'll have to assign a different class to each tab with a style rule pointing to the background image. It may be worth your while to check the CSS forum for a sticky on CSS rollovers as well, or do a keyword search for it.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-07-2008, 03:51 PM Re: navigation tab question
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Quote:
Originally Posted by serandfae View Post
As for different background photos in each tab before the rollover, you'll have to assign a different class to each tab with a style rule pointing to the background image. tim
Thank you. That's what I thought, but wanted to make sure.
missingtime is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to navigation tab question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25186 seconds with 12 queries