View Single Post
Old 10-04-2012, 05:23 PM   PM User | #1
graphicsgirl
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
graphicsgirl is an unknown quantity at this point
SOLVED - javascript image replace question from a newbie

Hi there,
Sorry for the really basic question. I am trying a simple image replace which is working fine in most browsers but not in Safari. I can't find why. can anyone help?

Code:
<a href="#" title="Test portfolio Item" onmouseover="document.image_2.src='uploads/news/id2/narrowboats-2.png';" onmouseout="document.image_2.src='uploads/news/id2/narrowboats-1.png';">
<img src="uploads/news/id2/narrowboats-1.png" width="235" height="132" alt="Test portfolio Item" id="image_2" />
</a>

Last edited by graphicsgirl; 10-05-2012 at 02:49 PM.. Reason: solved
graphicsgirl is offline   Reply With Quote