Changing BG via buttons

S

Steve H

I added some buttons to the top of an Include page (so the
buttons will appear at the top of all pages) to let the
reader change the current image background, but the buttons
won't work. The background is displayed through an external
style sheet:

http://www.rc10.com/misc/css/test.htm

The buttons work if there is no external stylesheet:

http://www.rc10.com/misc/css/background.htm

Does the stylesheet prevent the background from changing,
or does the problem lie elsewhere?

Regards,
Steve H
 
S

Steve Easton

Why do you have 2 style sheets??

<link rel="stylesheet" type="text/css" href="products2.css">
<link rel="stylesheet" type="text/css" href="chart.css">
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
S

Steve H

I have different sections of the web site. Each section has
its own stylesheet, and reflect the background logo for
that page's product manufacturer. But the charts on the
pages are all linked to the same stylesheet so I would not
have to change it accross all the CSS stylesheets.

Is this clear?

The buttons are to give the user an alternate to the
current background, like white.
 
M

Murray

Change this -

<input type="button" onClick="document.bgColor='ccFFFF'" value=" Blue BG ">

to this -

<input type="button" onClick="document.bgColor='#ccFFFF'" value=" Blue BG ">

and make the same change on the other button's code.
 
S

Steve H

Thank you, Murray! Unfortunately, it does not work when
used in the Include page. It only works on the actual page,
AND when the page is not connected to an outside
stylesheet. Oh, well! Maybe I should look into Javascript
scripting next.

Thanks again,
Steve H
 
M

Murray

Something is wrong, then - can you show me?

Using this in an include page cannot be the thing that is the problem, nor
could having a stylesheet linked.
 
S

Stefan B Rusynko

You are trying to apply a bk color but it is always overridden by your bk image in
BACKGROUND: url(BG_18t.jpg) fixed no-repeat left top;





| Thank you, Murray! Unfortunately, it does not work when
| used in the Include page. It only works on the actual page,
| AND when the page is not connected to an outside
| stylesheet. Oh, well! Maybe I should look into Javascript
| scripting next.
|
| Thanks again,
| Steve H
|
| >-----Original Message-----
| >Change this -
| >
| ><input type="button" onClick="document.bgColor='ccFFFF'"
| value=" Blue BG ">
| >
| >to this -
| >
| ><input type="button" onClick="document.bgColor='#ccFFFF'"
| value=" Blue BG ">
| >
| >and make the same change on the other button's code.
| >
| >--
| >Murray
| >
| message
| >| >>I added some buttons to the top of an Include page (so the
| >> buttons will appear at the top of all pages) to let the
| >> reader change the current image background, but the buttons
| >> won't work. The background is displayed through an external
| >> style sheet:
| >>
| >> http://www.rc10.com/misc/css/test.htm
| >>
| >> The buttons work if there is no external stylesheet:
| >>
| >> http://www.rc10.com/misc/css/background.htm
| >>
| >> Does the stylesheet prevent the background from changing,
| >> or does the problem lie elsewhere?
| >>
| >> Regards,
| >> Steve H
| >
| >
| >.
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top