| Web Design Lobby Forum for general web design issues not specific to scripting or graphics. |
08-24-2004, 11:53 AM
|
#1 (permalink)
|
|
Inactive
Join Date: 08-24-04
Posts: 2
Latest Blog: None
|
Text colour change - Rollover
OK, so this question has probably been asked about a million times before in here but I'm a sad lowly UK newbie web designer so please take pity!!
I have a current project where I need some link text to change colour (from white to grey specifically!) when the mouse rolls over it. Tried the flash way, could get it to change colour but how the hell do you get to add the link?????? Or is there an easier way.....because I just love easy solutions!
HELP PLEASE!!!!!
Dan 
|
|
|
08-24-2004, 11:58 AM
|
#2 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Use CSS.
For the link, put this:
<a class="colorchange" href="link.html">
In your stylesheet, put this:
a.colorchange {color: #ffffff;}
a.colorchange:hover {color: #333333;}
|
|
|
08-24-2004, 11:59 AM
|
#3 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
PS. If you don't have a stylesheet, put this in the <head> section of your page:
<style type="text/css">
a.colorchange {color: #ffffff;}
a.colorchange:hover {color: #333333;}
</style>
|
|
|
08-24-2004, 01:07 PM
|
#4 (permalink)
|
|
Inactive
Join Date: 08-24-04
Posts: 2
Latest Blog: None
|
Jazzee,
Cheers for the help, but pardon my complete ignorance, Is it simply a case of pasting that code into my script?? I'm using Dreamweaver MX...
|
|
|
08-24-2004, 01:19 PM
|
#5 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Go to your html view. Find the links you want to change and add class="colorchange" into the link so it looks like this:
[code:1:046f610bea]<a class="colorchange" href="YOURPAGE.HTML"> [/code:1:046f610bea]
(YOURPAGE.HTML will be whatever is already there)
Then look at the top of the page in html view. See if you have a stylesheet. (You'll recognize it by the <style type="text/css">)
If you have that, put this in there:
[code:1:046f610bea]a.colorchange {color: #ffffff;}
a.colorchange:hover {color: #333333;} [/code:1:046f610bea]
If not, put this right under <head>:
[code:1:046f610bea]<style type="text/css">
a.colorchange {color: #ffffff;}
a.colorchange:hover {color: #333333;}
</style>[/code:1:046f610bea]
Make sense?
This is the only way I know how to do it as I don't know dreamweaver, I only know html.
|
|
|
08-24-2004, 02:17 PM
|
#6 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Dallas, Texas
Posts: 811
|
Quote:
|
Originally Posted by roach
Jazzee,
Cheers for the help, but pardon my complete ignorance, Is it simply a case of pasting that code into my script?? I'm using Dreamweaver MX...
|
Jazzee is the bomb  with html..seriously...anyway, if you're using Dream MX just stay in the Design view and change your CSS instead by click the little + in the upper right hand corner where you create stylesheets...
This lets you assign link colors etc etc throughout your entire site or simply on one particular document...it does the same thing as J suggested but it does the code for you...since you have MX, you're probably used to the easy way as I am 
|
|
|
08-24-2004, 02:20 PM
|
#7 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Thanks, raciviusdawn  I'm clueless with WYSIWYG editors.
|
|
|
08-24-2004, 03:49 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 03-08-04
Posts: 2,644
Latest Blog: None
|
Queen of html and css.
|
|
|
08-24-2004, 03:51 PM
|
#9 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
That's right
lol 
|
|
|
08-24-2004, 05:41 PM
|
#10 (permalink)
|
|
v7n Mentor
Join Date: 03-04-04
Location: Whycocomagh, Nova Scotia
Posts: 4,766
|
Worship the Queen... she has helped all of us with code several times each, I'm sure... LOL
|
|
|
08-26-2004, 11:05 PM
|
#11 (permalink)
|
|
Inactive
Join Date: 12-06-03
Location: Australia
Posts: 136
Latest Blog: None
|
Hi,
If you use Microsoft Front page, it will take you hardly 2 minutes to do that. what you need to do is go to "Insert" option, click on "Web components" and I think the first option there contains HOVER BUTTON. You only need to set its properties and your work is done.
|
|
|
08-27-2004, 08:05 AM
|
#12 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
They are using Dreamweaver as stated above.
|
|
|
08-29-2004, 05:40 PM
|
#13 (permalink)
|
|
Moderator
Join Date: 10-13-03
Location: UK
Posts: 2,819
Latest Blog: None
|
OMG Frontpage insert web componant hover button - doesn't that add applets istead of links??? AAAAAARRRGH!!!
|
|
|
08-29-2004, 05:43 PM
|
#14 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Eww. Applets.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 08:19 AM.
© Copyright 2008 V7 Inc
|