View Single Post
Join Date: Mar 2008
Posts: 24
Reputation: HenryGR is an unknown quantity at this point 
Solved Threads: 4
HenryGR's Avatar
HenryGR HenryGR is offline Offline
Newbie Poster

Re: Javascript image swap on rollover.

 
0
  #2
Apr 6th, 2008
At a first glance, I can see that on your calling code:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <div class="icons"> <a href="#" onmouseover="SwapOut(personal, 0)" onmouseout="SwapBack(personal, 1)"><img name="personal" alt="logo" src="images/personal_up.png" /></a>.... </div>

you are referencing undefined variables. Have you tried to replace the call for:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. onmouseover="SwapOut(personal, 0)"

with

onmouseover="SwapOut('personal', 0)"

as I guess you want to address the object with name 'personal' instead the object contained in personal variable.

Hope this helps.
You keep going, have a Nice day!
Henry.

Before printing this message, make sure is necessary.
Reply With Quote