We help IT Professionals succeed at work.

Javascript image src

Melody Scott
Melody Scott asked
on
739 Views
Last Modified: 2011-10-19
Hi- on this page: https://dylon dot dyeproservices dot com, Can anyone tell me why, If you hover over the Dyeing services link on the left, it doesn't flash to the lighter image, as the other links do?

If I go to my browser and enter https://dylon dot dyeproservices dot com//_derived/ext1047_cmp_copy-of-poetic110_vbtn_a.gif, the image is there. Thanks! I'll upload the file, changing the extension to txt from php. (It's all javascript, though).
leftnav.txt
Comment
Watch Question

Hi,

at line 26 you have declared two times the tag script, this broke your script, just remove that duplicates, and all will work

regards
the code correct at snippet

<?php
 
$content .= '
<font size="4" face="Century Gothic">
<script language="JavaScript"><!--
MSFPhover = 
  (((navigator.appName == "Netscape") && 
  (parseInt(navigator.appVersion) >= 3 )) || 
  ((navigator.appName == "Microsoft Internet Explorer") && 
  (parseInt(navigator.appVersion) >= 4 ))); 
function MSFPpreload(img) 
{
  var a=new Image(); a.src=img; return a; 
}
// --></script><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav1n=MSFPpreload("/_derived/home_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav1h=MSFPpreload("/_derived/home_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav1\'].src=MSFPnav1h.src" onmouseout="if(MSFPhover) document[\'MSFPnav1\'].src=MSFPnav1n.src"><img src="/_derived/home_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Home" name="MSFPnav1"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav4n=MSFPpreload("/_derived/dyeing_services.htm_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav4h=MSFPpreload("/_derived/dyeing_services.htm_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/dyeing_services.htm" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav4\'].src=MSFPnav4h.src" onmouseout="if(MSFPhover) document[\'MSFPnav4\'].src=MSFPnav4n.src"><img src="/_derived/dyeing_services.htm_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Dyeing Services" name="MSFPnav4"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav5n=MSFPpreload("/_derived/DYLON DYE & PRODUCTS.htm_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav5h=MSFPpreload("/_derived/DYLON DYE & PRODUCTS.htm_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/DYLON%20DYE%20&%20PRODUCTS.htm" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav5\'].src=MSFPnav5h.src" onmouseout="if(MSFPhover) document[\'MSFPnav5\'].src=MSFPnav5n.src"><img src="/_derived/DYLON%20DYE%20&%20PRODUCTS.htm_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Dylon Dye" name="MSFPnav5"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav6n=MSFPpreload("/_derived/ext1047_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav6h=MSFPpreload("/_derived/ext1047_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="https://dylon.dyeproservices.com" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav6\'].src=MSFPnav6h.src" onmouseout="if(MSFPhover) document[\'MSFPnav6\'].src=MSFPnav6n.src"><img src="/_derived/ext1047_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="DYLON OnLine" name="MSFPnav6"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav7n=MSFPpreload("/_derived/dylon_satin_shoe_dye.htm_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav7h=MSFPpreload("/_derived/dylon_satin_shoe_dye.htm_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/dylon_satin_shoe_dye.htm" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav7\'].src=MSFPnav7h.src" onmouseout="if(MSFPhover) document[\'MSFPnav7\'].src=MSFPnav7n.src"><img src="/_derived/dylon_satin_shoe_dye.htm_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Satin Shoe Dye" name="MSFPnav7"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav8n=MSFPpreload("/_derived/Contact info.htm_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav8h=MSFPpreload("/_derived/Contact info.htm_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/Contact%20info.htm" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav8\'].src=MSFPnav8h.src" onmouseout="if(MSFPhover) document[\'MSFPnav8\'].src=MSFPnav8n.src"><img src="/_derived/Contact%20info.htm_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Contact" name="MSFPnav8"></a><br><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav9n=MSFPpreload("/../_derived/links.htm_cmp_copy-of-poetic110_vbtn.gif"); MSFPnav9h=MSFPpreload("/_derived/links.htm_cmp_copy-of-poetic110_vbtn_a.gif"); }
// --></script><a href="http://www.dyeproservices.com/links.htm" language="JavaScript" onmouseover="if(MSFPhover) document[\'MSFPnav9\'].src=MSFPnav9h.src" onmouseout="if(MSFPhover) document[\'MSFPnav9\'].src=MSFPnav9n.src"><img src="/_derived/links.htm_cmp_copy-of-poetic110_vbtn.gif" width="140" height="45" border="0" alt="Links" name="MSFPnav9"></a></font></b></p>
 
 
<p>
&nbsp;</p>
 
 
';
 
?>

Open in new window

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks- for some reason I didn't get an email alerting me you answered! This is great, and I learned something!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.