April 3, 200818 yr I am trying to make a variable, for a social bookmarking script, but i need inside it, to have the buttons are rollovers. Here is my code $marks.="<img src='".$base."images/buzz.png' onmouseover='this.src=' ".$base."images/buzz_grey.png'' onmouseout='this.src=' ".$base."images/buzz.png'' />"; can not make it work at all. really anoying :/ Anyone have any idea?
April 4, 200818 yr it is because you are using the single quotes twice for the same attribute. this will work $marks.="<img src='".$base."images/buzz.png' onmouseover='this.src=\"".$base."images/buzz_grey.png''' onmouseout='this.src=\"".$base."images/buzz.png\''' />";
Create an account or sign in to comment