Jump to content


highlighting


4 replies to this topic

#1 user_f_ps_other

    Young Padawan

  • Members
  • Pip
  • 173 posts

Posted 13 June 2005 - 01:53 PM

Can someone help me out please. I would like to know how to do the same effect like on this page. When you move the mouse over the selected text (i.e Car Wash Tint) it highlights the text. Here is the url link to the website

http://www.decileart...rials.photoshop

Thanks for the help.

#2 oliver.m

    Young Padawan

  • Members
  • Pip
  • 84 posts
  • Location:Bedfordshire, United Kingdom
  • Interests:Web Design, Graphic Design and flash multimedia applications. I also like cars and i am a sprint/marathon canoeist/kayaker.

Posted 13 June 2005 - 02:07 PM

My guess is that its done in CSS (Cascading Style Sheets), i know that you can make the background colour of a link change when you hover the mouse over it, and by the looks of things they have made a big area work as a link so that when the mouse hovers over, the background changes colour...

Here is an exmaple of the CSS code needed to make the background colour to a link change when the mouse hovers over...

A:hover {
color : #704033;
text-decoration : none;
}

I'm not expert at CSS, but i hope this helps, i'm sure there are some other people/tutorials that will help :P

#3 kschembri

    Young Padawan

  • Members
  • Pip
  • 81 posts
  • Location:Canada, EH?

Posted 13 June 2005 - 09:27 PM

that just changes the text color on a rollover.

if you want the background to actually highlight you must use javascript and utilize the background color for tables.

so you would place your text within a <tr> and the <tr> code would look somethin glike this:

<td bgcolor="#colorhere" onmouseover="this.style.background='#colorhere'" onmouseout="this.style.background='#colorhere'">

You can see a working example on my site at kschembri.com.

#4 user_f_ps_other

    Young Padawan

  • Members
  • Pip
  • 173 posts

Posted 14 June 2005 - 12:12 PM

Thanks kschembri that's what I was after.

#5 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 14 June 2005 - 04:02 PM

user_f_ps_other, on Jun 14 2005, 05:12 PM, said:

Thanks kschembri
lol. make it clear that oliver wasted ur time eh!!! harsh <_<





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users