Link to home
Create AccountLog in
Avatar of IanTh
IanThFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of karl-henrik
karl-henrik
Flag of Sweden image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of IanTh

ASKER

so why does it have the name leftnavi_GeneralEnquiry in it
Avatar of IanTh

ASKER

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
Avatar of IanTh

ASKER

missing id