我有一个工具提示脚本来自:
http ://www.dynamicdrive.com/dynamicindex5/fixedtooltip.htm
通常使用的类型是这样的:
<script src="http://thescript.com/tooltip.js"></script>
<a onMouseover="fixedtooltip('I am html harharhar', this, event, '150px')" onMouseout="delayhidetip()">JavaScript Kit</a>
但是.. 我正在使用Smarty来解析模板。我正在尝试将我的工具提示“内容”解析为包含文件。
<script src="http://thescript.com/tooltip.js"></script>
<a onMouseover="fixedtooltip('{include file="popup.html" all=$response['item1'] id=$response['id']}', this, event, '150px')" onMouseout="delayhidetip()">JavaScript Kit</a>
不幸的是,我找不到不破坏 javascript 的方法。想法?