Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > BBC news website & a:hover

BBC news website & a:hover
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Feb 20, 2002, 05:32 AM
 
does anyone know how on the BBC news website they use CSS to control the a:hover of text links when a person focuses on an image. They don't use javascript.

Thanks
     
Forum Regular
Join Date: Jan 2002
Location: japan
Status: Offline
Reply With Quote
Feb 20, 2002, 05:51 AM
 
If you are talking about the images along the right column that have a rollover effect on the title when you mouseover the pic - its very simple.

The image and the title are within the same anchor tag. Just set up a a:hover property for your text hyperlinks, and as long as the title and image are in the same a href tag, the title will change colour when the image is mouseover'd.

The alignment is as such:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
&lt;a href=<font color = red>"blahblah"</font>&gt;
&lt;img src=<font color = red>"yourimage"</font> align=<font color = red>"right"</font>&gt;
Title Title&lt;/a&gt;&lt;br&gt;
Text text text text text text
</font>[/code]
http://www.yongfook.com
     
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Feb 20, 2002, 06:56 AM
 
You know I thought it was more than that!

Many thanks

Originally posted by yongfook:
<STRONG>If you are talking about the images along the right column that have a rollover effect on the title when you mouseover the pic - its very simple.

The image and the title are within the same anchor tag. Just set up a a:hover property for your text hyperlinks, and as long as the title and image are in the same a href tag, the title will change colour when the image is mouseover'd.

The alignment is as such:

&lt;BLOCKQUOTE&gt;&lt;font size="1"face="Geneva, Verdana, Arial"&gt;code:&lt;/font&gt;&lt;HR&gt;&lt;pre&gt;& amp;lt;font size=1 face=courier&gt;
&lt;a href=&lt;font color = red&gt;"blahblah"&lt;/font&gt;&gt;
&lt;img src=&lt;font color = red&gt;"yourimage"&lt;/font&gt; align=&lt;font color = red&gt;"right"&lt;/font&gt;&gt;
Title Title&lt;/a&gt;&lt;br&gt;
Text text text text text text
&lt;/font&gt;&lt;/pre&gt;&lt;HR&gt;&lt;/BLOCKQUOTE&gt;</STRONG>
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2