Results 1 to 7 of 7
reducing multiple spaces in a string to a single space Forum: CGI Perl ForumReplies: 1
May special discount at maiahost single/multiple domain hosting Forum: Internet ServicesReplies: 0
Multiple CSS Classes on 1 Page? Forum: CSS ForumReplies: 2
Single page needs different browsers to view. Forum: Show it off!Replies: 15
multiple submit buttons in single form Forum: HTML ForumReplies: 7
05-06-2004, 02:51 PM #1
Single Page, Multiple Backgrounds?
Well this one has me stumped. I've been searching up and down on the web for the entire day and this looks to be the best place to ask my question.
I have a site for a gaming clan that I formed a while ago. Now for the website I have a few pages that are common to the two divisions in the clan. But, on the site itself I have a color/image theme for one division, and another color/image theme the other division. With that, there are two sets of frames, one for division a, and one for division b, each with their respective names... my problem is this...
I want to have the background for the content frame of these framesets to change depending on which division the users are browsing in. So for instance, in Division A, the background image will be red, and Division B, the background image will be grey. Basically the script needs to detect the name of the content frame for that specific division, and then change the background of the content page it links to accordingly. Hers's what I have so far...
Last edited by berklee555; 05-06-2004 at 02:53 PM.
05-06-2004, 04:41 PM #2
Thats a great question.
05-06-2004, 07:38 PM #3
Well, i tried what they described, and still no luck. Now I'm getting 'identity is null or not an object'
This one has me completely stumped.
Here is the style and script i have in the page currently:
I'm sure it's something completely boneheaded that I'm missing...
Last edited by berklee555; 05-06-2004 at 07:42 PM.
05-07-2004, 01:27 AM #4
Have you added an ID to the body tag?
05-15-2004, 08:21 PM #5
Yeah, i tried that. It didn't work...mostly because the getElementByID() method was giving me all kinds of problems saying that it was null or not an object of the document element. I finally did get it working, here's the script as it stands now....
05-16-2004, 02:24 AM #6
Great, as long as its working. Thanks for letting us know the solution.
07-07-2004, 04:48 PM #7
Code for homepage with multiple backgrounds possible
Looking for code which will display a different background (from a list) on a home page each time user displays home page.