They both work

Discussion in 'JavaScript' started by oo7ml, Aug 3, 2007.

  1. #1
    They both work BUT which is better and more correct to use

    src="images/rate/1.gif" onMouseOut=this.src="images/rate/1.gif" onMouseOver=this.src="images/rate/1c.gif"
    
    or
    
    src="images/rate/1.gif" onMouseOut="this.src='images/rate/1.gif';" onMouseOver="this.src='images/rate/1c.gif';"
    HTML:
     
    oo7ml, Aug 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    The second.
     
    nico_swd, Aug 3, 2007 IP