[ZPT] variables and javascript

Mitch Pirtle mitchy at spacemonkeylabs.com
Fri Oct 10 11:23:59 EDT 2003


Hi list,

Dumb question - I've inherited a site that is using javascript-based
rollovers for buttons, and have integrated everything in ZPT except for
the source of the image:

<a onMouseOut="MM_swapImgRestore()"
	tal:attributes="href string:${portal_url};
	onClick string:MM_goToURL('parent','$portal_url');;return
document.MM_returnValue;
	onMouseOver
string:MM_swapImage('image_home','','http://10.0.3.120:8080/development_site/media/home_over.gif',1);"><img tal:attributes="src string:${portal_url}/media/home.gif" width="26" height="30" name="image_home" border="0" alt="Go Home"></a>

The trouble is that I cannot figure out how to reference $portal_url in
the onMouseOver call.  Is there a better way to do this?

-- mitchy




More information about the ZPT mailing list