• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

modified link behaves different

I modified a link for a friends website
 src="images/left_navi_arrow.gif"
                              width=5> <a class=LeftNaviText
                              onMouseOver="JavaScript:RowOver('LeftNavi_email','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_email','#FFFFFF')"
                              href="mailto:consultant@trec-associates.com">Email</a></td>
                                  </tr>
                                  <tr>
                                    <td class=LeftNaviText
                              id=LeftNavi_GeneralEnquiry><img height=10
                              src="images/left_navi_arrow.gif"
                              width=5> <a class=LeftNaviText
                              onMouseOver="JavaScript:RowOver('LeftNavi_generalenquiry','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_generalenquiry','#FFFFFF')"
                              href="useful-links.html">Useful links</a></td>
                                  </tr>
                                  <tr>
                                    <td class=LeftNaviText id=LeftNavi_fullcontact><img
                              height=10
                              src="images/left_navi_arrow.gif"
                              width=5> <a class=LeftNaviText
                              onMouseOver="JavaScript:RowOver('LeftNavi_fullcontact','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_fullcontact','#FFFFFF')"
                              href="contact.htm">Full Contact Details</a></td>

this was the old code
 <td class=LeftNaviText
                              id=LeftNavi_GeneralEnquiry><img height=10
                              src="images/left_navi_arrow.gif"
                              width=5> <a class=LeftNaviText
                              onMouseOver="JavaScript:RowOver('LeftNavi_GeneralEnquiry','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_GeneralEnquiry','#FFFFFF')"
                              href="general_enquiry.htm">General enquiry</a></td>
                                  </tr>

I changed general enquiry to usefil links and afterwards the link behaves differently as ther general enquirly
general enquiry you click it and it works after changing to
<td class=LeftNaviText
                              id=LeftNavi_GeneralEnquiry><img height=10
                              src="images/left_navi_arrow.gif"
                              width=5> <a class=LeftNaviText
                              onMouseOver="JavaScript:RowOver('LeftNavi_GeneralEnquiry','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_GeneralEnquiry','#FFFFFF')"
                              href="useful-links.html">Usefull links</a></td>
                                  </tr>

the link now after clicking goes red
I dont understand that javascript:rowover what does 'LeftNavi_GeneralEnquiry' mean I think thats my problem
0
IanTh
Asked:
IanTh
  • 3
1 Solution
 
karl-henrikCommented:
Rowover is a javascript function that does something to the specified object but since it's a mouseover/mouseout function it should have little to do with your color on the link after clicking..

Please have a look in the CSS file or post it here too.
0
 
IanThAuthor Commented:
so why does it have the name leftnavi_GeneralEnquiry in it
0
 
IanThAuthor Commented:
I know what it was it was missing an id as I now have

<td class=LeftNaviText id=LeftNavi_UsefulLinks>
                                    <img height=10
                              src="images/left_navi_arrow.gif"
                              width=5>
                              <a class="LeftNaviText"
                              onMouseOver="JavaScript:RowOver('LeftNavi_UsefulLinks','#CCCCCC')"
                              onMouseOut="JavaScript:RowOver('LeftNavi_UsefulLinks','#FFFFFF')"
                              href="useful-links.html">Useful Links
                              </a></td>

and its working
0
 
IanThAuthor Commented:
missing id
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now