PHP Syntax Error expecting semi colon ; but where?

chris topher

New member
Im getting a parse error syntax error, expecting a semi colon, but i put a semi colon anywhere that looked reasonable and it wont work..
this is a function in wordpress..

this is the code

function my_div()
{
echo '<div id="close-me">
<div id="exit" onClick="document.getElementById('close-me')style.display = ('none');">[X]Close</div>
<div id="right"><img src="http://MYIMAGEURL.com/IMAGE.JPG/" />
</div>
</div>';
}

add_action('thesis_hook_after_footer', 'my_div');
@rachetr thanks, i did what you said and i no longer have an error, but, the div will no longer close/hide as it once did (while not in that function)
 
Back
Top