Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlighting Links Question

Status
Not open for further replies.

2760

Instructor
Nov 10, 2002
34
GB
Hi all,

On the page (a page created with DW/Fireworks) there is a navigation panel to the left of the page which highlights the background colour to links when you roll the mouse over them (The nav bar with 'TfL Home', 'About TfL' etc.). I have tried to recreate this in DW and have managed to do it to a certain degree. I can reproduce it with the background behind the link changing color, however, what i cannot recreate is how the link background color highlights for the whole length of the bar or cell and not just behind the actual link text. I have had a look at the source but can't really pick out how its done. If anyone can understand what i'm on about, can anyone tell me how this has been done?

Thanks in Advance.
 
in your <td> tag put this

onmouseover=&quot;this.style.background='#hexcode'&quot; onmouseout=&quot;this.style.background='#original color'&quot;

<signature>
sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
</signature>
 
Hi deecee,

Thanks! I got it working now. I just had another look at the TfL page and the link runs right the way across the cell as well as the change of background color on mouseover. Do you think you could give me the code to make the link run the whole way across on mouseover too?

Many thanks in Advance.
 
oooops it's a cell thing...nevermind my post...there are > post about this topic


> need more info?
:: don't click HERE ::
 
add this to your tag

onclick=&quot;window.location='file.htm'&quot;

also you will need to change your cursor

so add

style=&quot;cursor: pointer hand;&quot; or you can make a style. Just remember that pointer needs to be before hand and this is for NN

<signature>
sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
</signature>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top