The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Change background
geertvdp
post Jun 25 2013, 06:33 AM
Post #1





Group: Members
Posts: 2
Joined: 25-June 13
Member No.: 19,342



I have a website online (www.kinderthuisverplegingkempen.be) . When I click on a tab, I want to change the bakground (not the tab-background). Probably I have to use the function "onclic" but it didn't work. Can someone help me with it ?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 25 2013, 07:10 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



And the page really is at http://users.skynet.be/fb612666/ .

Do you mean the background of the whole page or of the section that shows the changing content?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
snuffel1309
post Jun 25 2013, 08:11 AM
Post #3





Group: Members
Posts: 4
Joined: 11-June 13
Member No.: 19,273



QUOTE(pandy @ Jun 25 2013, 07:10 AM) *

And the page really is at http://users.skynet.be/fb612666/ .

Do you mean the background of the whole page or of the section that shows the changing content?


Yes, that is the page and I mean de image "kindpiep.jpg" in the body, that i would change. Thank you for your quick answer and sorry about my bad english ;-(

This post has been edited by snuffel1309: Jun 25 2013, 08:13 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 25 2013, 09:28 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Well, the elegant solution would be to change the script that handles the tabs so it also changes the background of body. But it looks rather involved. The quick and dirty way would be to add a snip of JavaScript in an onclick attribute for each tab. Like this.

HTML
<li class="TabbedPanelsTab" id="regio" tabindex="3" onclick="document.body.style.backgroundImage='url(http://htmlhelp.com/icon/wdglogo.gif)'">Regio</li>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
snuffel1309
post Jun 25 2013, 03:38 PM
Post #5





Group: Members
Posts: 4
Joined: 11-June 13
Member No.: 19,273



QUOTE(pandy @ Jun 25 2013, 09:28 AM) *

Well, the elegant solution would be to change the script that handles the tabs so it also changes the background of body. But it looks rather involved. The quick and dirty way would be to add a snip of JavaScript in an onclick attribute for each tab. Like this.

HTML
<li class="TabbedPanelsTab" id="regio" tabindex="3" onclick="document.body.style.backgroundImage='url(http://htmlhelp.com/icon/wdglogo.gif)'">Regio</li>



Thanks, Pandy. Is it also possible to give a size to that image ?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 25 2013, 05:32 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Make the image the size you want it to be in an image program.

Why have you registered as two users? unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
snuffel1309
post Jun 26 2013, 07:48 AM
Post #7





Group: Members
Posts: 4
Joined: 11-June 13
Member No.: 19,273



QUOTE(pandy @ Jun 25 2013, 05:32 PM) *

Make the image the size you want it to be in an image program.

Why have you registered as two users? unsure.gif


I don't know why I have 2 users registered is 1 maybe an old user? Can you see that ? Is it possible to delete one ?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 26 2013, 08:15 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Yeah, the handle you use now registerd June 11 and geertvdp yesterday. I'll ask Darin if it can be fixed. I don't have access to the fancy stuff. Do you want to keep snuffel? I think you should, it's cuter. biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
snuffel1309
post Jun 26 2013, 09:10 AM
Post #9





Group: Members
Posts: 4
Joined: 11-June 13
Member No.: 19,273



QUOTE(pandy @ Jun 26 2013, 08:15 AM) *

Yeah, the handle you use now registerd June 11 and geertvdp yesterday. I'll ask Darin if it can be fixed. I don't have access to the fancy stuff. Do you want to keep snuffel? I think you should, it's cuter. biggrin.gif

Yes, if it is possible keep snuffel. I'm sorry for this problem and thanks to solve it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 26 2013, 09:31 AM
Post #10


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



OK, I'll ask Darin to fix it. smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 27 2013, 11:45 PM
Post #11


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Please send me a PM from the account you would like me to delete. Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 11:30 PM