Newbie question re frames page.

H

Henry

I hope I'm in the right group here.
If not, please redirect me.

I've built a site with frames.

In the bottom frame page, I've put a table with various coloured cells:

e.g. <td bgcolor="#cccccc" width="13"><B><A
ONMOUSEOVER="document.bgColor='#cccccc'"><FONT SIZE=3>B</FONT></A></B></td>

This works fine and changes the bgcolor in the bottom frame.

What I want it to do is to change the bgcolor in the whole page (4 frames)

I've tried, in the bottom frame:
<td bgcolor="#cccccc" width="13"><B><A ONMOUSEOVER
="parent.top.recolourPage('#cccccc')"><FONT SIZE=3>B</B></FONT></A></td>

and in the top frame page Head section:
<script language="JavaScript" type="text/javascript">
function recolourPage(newcolor)
{document.bgColor=newcolor}
</script>

This doesn't work.
I've probably got the syntax wrong.
Can someone please point me in the right direction.

Thanks,
Henry
 

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

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,265
Latest member
TodLarocca

Latest Threads

Top