This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Quick question about linked text...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Quick question about linked text...
T Sugar

2004-04-21, 2:50 pm

Here's my problem: When one makes a word or words a link usually those word(s)
are given an underline by default to identify it as a link. What I'm doing is
adding a behavior to the words so that they open up a browser window with no
scroll bars. This works but the text is not giving a rollover effect. I would
like the link to have the underline show up only when you mouse over, thus
getting the little hand instead of the text bar thing. All the text links on
msnbc.com, for instance are a good example of what i'm trying to achieve. Any
answers? This can't be that hard but perhaps it involves a stylesheet, i don't
know...

Murray *TMM*

2004-04-21, 2:50 pm

Pseudo-classes are what you need - here are some tutorials.
http://www.mako4css.com
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutoria...asses/index.htm

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"T Sugar" <webforumsuser@macromedia.com> wrote in message
news:c5p0ov$fg0$1@forums.macromedia.com...
> Here's my problem: When one makes a word or words a link usually those

word(s)
> are given an underline by default to identify it as a link. What I'm

doing is
> adding a behavior to the words so that they open up a browser window with

no
> scroll bars. This works but the text is not giving a rollover effect. I

would
> like the link to have the underline show up only when you mouse over, thus
> getting the little hand instead of the text bar thing. All the text links

on
> msnbc.com, for instance are a good example of what i'm trying to achieve.

Any
> answers? This can't be that hard but perhaps it involves a stylesheet, i

don't
> know...
>



Joyce39

2004-04-21, 2:50 pm

You're right about getting the underline (and color change if you want)
involving CSS -- at least that's the easy way! Set your link, active link and
visited link to the same styles (e.g. blue Helvetica 12px) and your hover link
to something else (e.g. red Helvetica 12px underline). Also, you can define a
class and then include that class in your link code.

Here's a link to a page that's part of the chemistry site I'm working on that
will show you what I mean when you view the source:

http://costello.smuhsd.k12.ca.us/ss...ter-unit5-2.htm
or, if it's easier:
http://tinyurl.com/2rj6j

Murray *TMM*

2004-04-21, 2:50 pm

Definitely don't use a single font in your styles, though, when you do this.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Joyce39" <webforumsuser@macromedia.com> wrote in message
news:c5p1s6$h5g$1@forums.macromedia.com...
> You're right about getting the underline (and color change if you want)
> involving CSS -- at least that's the easy way! Set your link, active link

and
> visited link to the same styles (e.g. blue Helvetica 12px) and your hover

link
> to something else (e.g. red Helvetica 12px underline). Also, you can

define a
> class and then include that class in your link code.
>
> Here's a link to a page that's part of the chemistry site I'm working on

that
> will show you what I mean when you view the source:
>
> http://costello.smuhsd.k12.ca.us/ss...ter-unit5-2.htm
> or, if it's easier:
> http://tinyurl.com/2rj6j
>



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews