Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouseover in a function

Status
Not open for further replies.

brianjay

Programmer
Sep 14, 2000
42
US
Hello,
I have this bit of JavaScript code that is puzzling me. I am trying to add a mouseover to the image, but it won't allow me to insert a "name" to it. A copy of the image tag is below. What am I doing wrong?

ACTUAL SCRIPT
<script language=&quot;javascript&quot;>
RandomURL('<img SRC=&quot;GwLogoWhite.png&quot; height=200 width=193 BORDER=&quot;1&quot;> ',&quot; </script>

Thanx.


IMAGE TAG
<img name='LOGO' src=&quot;0002HitsWhite.png&quot; width=&quot;150&quot; height=&quot;100&quot; onmouseover=&quot;document.LOGO.src='0002HitsGreen.png'&quot;
onmouseout=&quot;document.LOGO.src='0002HitsWhite.png'&quot;
BORDER=&quot;0&quot;>
 
I really don't understand what you're trying to do with this code... If this is just a simple mouseover, what's the RandomURL() function for? What does RandomURL() do, anyway?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top