php forum
php mysql forum
php mysql smarty
 
Topic Options
#226770 - 10/25/02 08:03 PM question, (images)
caspe7_dup1 Offline
Power User

Registered: 04/14/02
Posts: 75
Loc: Long Beach, CA, USA
Is it possible to use css, and have it be able to change an image on the page based on that stylesheet? <br /><br />I have dark, light and everything in between of stylesheets, and I wanted to give each stylesheet an image of its own. For the forum logo. And having a white logo on a dark page doesn't work<br /><br />Just wondering if there’s a way.. <img src="/forum/images/graemlins/smile.gif" alt="" /><br />
_________________________
"We're sorta like the 7-11. We're not always doin' business, but we're always open"

Top
#226771 - 10/25/02 09:13 PM Re: question, (images) [Re: AgentDrek]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
If you give that particular <td> it's own class, you can set background images to anything you like based on the stylesheet in use. Something like:<br /><br />background-image: url(http://www.threadsdev.com/threads/php/images/blueblam_r15_c10.gif);<br /><br />is what we use in part of the stylesheet here <img src="/forum/images/graemlins/smile.gif" alt="" /> If we had a green one to choose from as well, the stylesheet would call a green image to do the same thing <img src="/forum/images/graemlins/smile.gif" alt="" /><br />
_________________________
- Allen wavey
- What Drives You?

Top
#226772 - 01/20/03 04:26 PM Re: question, (images) [Re: SurfMinister]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
I figured out how to get it in the CSS but how do you call it back in the header?

Top
#226773 - 01/21/03 01:00 AM Re: question, (images) [Re: TestPappy]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Create a logo for each style sheet, then in your style sheets add a logo class (I use logo-left, but you can call it anything you want). In that class you need a statement like this one<br /><br />
Code:
 background-image: url(http://www.yourdomain.com/somedirectory/some-logo.gif); 
<br /><br />replacing the domain, directory, and image names for your site. All you have to do is change the file name in each style sheet, but use the same class name, and you can have a different logo load for each style sheet.<br /><br />I set up templates for my logo. Check out the first post in this link. You don't have to do what I've done, but it might give you some ideas.
_________________________
Da LAN Tech

Threads Dev Moderator

Top


Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks