I just tried it out locally and it does work when I assign dummy variables to the code you posted above. This is the test page that I made up locally:
Code:
<html>
<head>
<title>Test</title>
</head>
<body>
<script type="text/javascript">
var url='test.html';
var Graphic='test.gif';
var width='100';
var height='100';
var contentId = 'test';
document.write('<a href="' + url + '" onclick="return hs.htmlExpand(this, { contentId: '+ contentId +' } )" class="highslide">');
document.write('<img src=\"' + Graphic + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('border=0>');
document.write('<\/a>');
</script>
</body>
</html>
If you are still having issues, please post a link to your problem page.
Hope this helps.
Bookmarks