Reply
navigation tab question
Old 04-07-2008, 01:55 AM navigation tab question
Skilled Talker

Posts: 50
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
 
When You Register, These Ads Go Away!
     
Old 04-07-2008, 03:12 AM Re: navigation tab question
serandfae's Avatar
Soul Man

Posts: 4,228
Name: Tim Daily
Location: Apex, NC, US, Sol 3
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
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) http://bellsouthpwp2.net/j/a/jam331
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-07-2008, 02:51 PM Re: navigation tab question
Skilled Talker

Posts: 50
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

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

vB 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.11167 seconds with 13 queries