PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > HTML/CSS/Javascript
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 10-17-02, 01:05 PM   #1
blurchy
 
blurchy's Avatar
 
Join Date: Feb 2002
Location: england
Posts: 512
Reputation: 5
css style change from link

hi

weve all seen those table cells that
change colour
when you roll the mouse over them
this is because the css styles change when the mouse
rolls over the cell

does anyone know how to change the table cells
css style
by clicking on a separate link instead of rolling your mouse
over the table cell itself

i hope ive explained this properly

heres an example

http://www.neutron1.com/TEMP/rollover_cell_example.htm
__________________
blurchy

Ex Powweb Person

http://members.lycos.co.uk/neutron_x/index.php

Last edited by blurchy; 10-17-02 at 01:15 PM..
blurchy is offline  
Old 10-17-02, 02:00 PM   #2
muijefr
home boy
 
muijefr's Avatar
 
Join Date: Jan 2002
Location: Vancouver, WAUSA!
Posts: 1,841
Reputation: -12
Oh, that's what you ment



Try this:
<HTML>
<HEAD>
<TITLE>AlirezA's Example</TITLE>

<STYLE>

a { text-decoration : none;
}
a:hover {text-decoration : underline;
}
.buttonup {
padding: 2px;
color: #000000;
background-color: #b59c00;
font-family: Arial;
font-size: 14pt;
font-weight: bold;
}

.buttonover {
padding: 2px;
cursor: hand;
color: #ffffff;
background-color: #9aa486;
font-family: Arial;
font-size: 14pt;
font-weight: bold;
}

.buttondown {
padding: 2px;
color: #c0c0c0;
background-color: #808080;
font-family: Arial;
font-size: 14pt;
font-weight: bold;
}
</STYLE>
</HEAD>
<BODY bgcolor=#c8cfc6>

<a class=buttonup
onmouseover = "this.className='buttonover' ";
onmousedown = "this.className='buttondown' ";
onmouseup = "this.className='buttonover' ";
onmouseout = "this.className='buttonup' ";
href=http://www.the-ebiz.net target=_top>
This is not your DreamWeaver</a>

</BODY>
</HTML>

RE:
Quote:
dont know what i mean well look at this page
Yup, cool. Your very versatile. Change the question in an instance and change the answer just as quickly. I'm not going to try and kick the ball anymore.



Last edited by muijefr; 10-17-02 at 02:54 PM..
muijefr is offline  
Old 10-17-02, 02:37 PM   #3
blurchy
 
blurchy's Avatar
 
Join Date: Feb 2002
Location: england
Posts: 512
Reputation: 5
no sorry thats now what i meant

that code give me errors in dreamweaver
its prob the forum adding spaces
i found what i wanted and i decided to post it on a text doc
through my iframe updater,the body of the iframe is a text file so youd just have the pure code
then i discovered something even more COOL

dont know what i mean well look at this page

http://www.neutron1.com/iframe_updat...me_updater.htm

the body of the iframe where i was gonna
put the codes changed into the actual html file

wow the mind boggles dude

p.s.

if you got view source on the black area

you can see where i got the code from

etc etc
__________________
blurchy

Ex Powweb Person

http://members.lycos.co.uk/neutron_x/index.php

Last edited by blurchy; 10-17-02 at 02:40 PM..
blurchy is offline  
Old 10-17-02, 02:47 PM   #4
RamjetFDO
Space Cadet
 
RamjetFDO's Avatar
 
Join Date: Jul 2002
Location: Austin, Texas
Posts: 276
Reputation: 36
I think you want the same code, but do an "onMouseOver" and "onMouseOut", rather than "onClick", right?

Roger
__________________
Roger Balettie
-balettiedotcom-
RamjetFDO is offline  
Old 10-17-02, 03:16 PM   #5
blurchy
 
blurchy's Avatar
 
Join Date: Feb 2002
Location: england
Posts: 512
Reputation: 5
i have what i need thanks
it was hard trying to explain to everyone what it was
i just wanted to apply a style to a table by means of a link
situated elsewhere on my page
ive figured the link part out now
its just that it can only apply simple styles
like background colors if i try to do a complicated one like
opacity it crashes on the : bit etc

thanks anyway
__________________
blurchy

Ex Powweb Person

http://members.lycos.co.uk/neutron_x/index.php
blurchy is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:31 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.