alright there,
i'm pretty much throwing myself on everyone here's mercy, as i'm
struggling to even articulate what i mean, never mind create the
behaviour i want.
i've a website with a navigational frame on the bottom, and the main
site taking up the other 90% of the window. each page has got a
different background colour, where as the navigational frame obviously
stays the same.
is there a way that, when i click on one of the links in the
navigational frame, the colour of the text, still in this frame, would
change according to which link i click? from, for example, red, to
yellow or green depending on whether i choose 'pictures' or 'stories',
to match the colour scheme?
well, any help or anything much appreciated,
regards, mark. 1 1341
xtrmntr: a northern soul wrote: i've a website with a navigational frame on the bottom,
That you should avoid, if possible:-)
navigational frame, the colour of the text, still in this frame, would change according to which link i click?
<div id="navbar" onclick="foo(th is, event)">
<a id="foo1" href="foo1.html " target="main">f oo1</a>
<a id="foo2" href="foo2.html " target="main">f oo2</a>
<a id="foo3" href="foo3.html " target="main">f oo3</a>
</div>
<script type="text/javascript">
function foo(bar, evt){
var d=document, a, c, t;
var colors={
"foo1":"yellow" ,
"foo2":"gre en",
"foo3":"mar oon"
};
if(bar && bar.getElements ByTagName &&
typeof bar.parentNode! ="undefined" ){
t=evt.srcElemen t||evt.target;
while(t.nodeTyp e!=1)t=t.parent Node;
if(t && t.href){
a=bar.getElemen tsByTagName("a" );
c=colors[t.id]||"black";
for(var ii=0; ii<a.length; ii++){
a[ii].style.color=c;
}
}
}
}
</script> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aaron Whiffin |
last post by:
Hi, I've set up the following table in MySQL 3.23.58 and all seemed to be
working fine:
CREATE TABLE advert (
id INT NOT NULL AUTO_INCREMENT,
userid INT NOT NULL,
make VARCHAR(25) NOT NULL,
model VARCHAR(15) NOT NULL,
year VARCHAR(4) NOT NULL,
price FLOAT(7,2) NOT NULL,
|
by: Dj Frenzy |
last post by:
Hi, I know how to use javascript to change a background image to
another background image, and how to change a background colour to
another background colour. Is there a way to change an image to a
backgound colour?
I have a table with a background that has a picture. When the user
hovers over the picture I want the background to change to...
|
by: Werner Partner |
last post by:
I'm looking for something like that:
http://www.sonoptikon.de/praxis-mt/test.php
The text should have a certain indent, and from the left border should
come a "marker" which goes over the text for a certain length. Please
don't look at the source text, ;-) it's terrrible, but I just wanted to
show how about it should look like.
Of course...
|
by: John |
last post by:
hi,
i have created a search form, and i want to search for a specific item in a
field.
e.g. i have a field called colour, which has record1 = 'red, blue, green'
and another record2 = 'red'
now, when i do the search, and only type in red, to search for red, it only
brings back record 2, and not record 1 as well.
|
by: KiwiBrian |
last post by:
I have a text based and css controlled horizontal menu where on hover the
text and "button/cell" background colour change.
Fine so far, the background colour fills the button.
However if one of the menu buttons has two lines of text, while the hover
background colour does fill that menu button, the other buttons, which are
now in taller...
| |
by: John Pote |
last post by:
Hello,
I am new to CSS and come from an embedded/electronics background. Could some help with a question on
colours and palettes using named colours rather than hex values (ie color: #aabbcc). Could not find
a solution either in my CSS book or scouring the web.
As far as I can tell colours are set using pre-determined named colours (red,...
|
by: feeman |
last post by:
A while back I asked about changing the background colour of a text box
according to the outcome of a tick box, and the code below was supplied
which worked very well.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me! = -1 Then
Me!.BackColor = vbYellow
Else
Me!.BackColor = wbWhite
End If
|
by: Sushi |
last post by:
Hello!
I'm new to the Python language(about 2 months). Having done C programming for 2 years I find out I need Python for a final project, and have been trying to do get my head around object oriented programming. At the moment I'm simply trying to get the colour of a circle to change when you press a button. I've got this so far:
from...
|
by: Gouri.Mahajan7 |
last post by:
Hello,
I want to change the font of the text in richtextbox without affecting
the colour of text. I want some text to be printed in different
colours. When I try to change the font of the text the colour is
turned to black. How to solve this problem.??
Thanks in advance.
Regards,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |