标题: hp电子书制作模板首页加悬浮按钮的问题(网页高手请进) [打印本页]

作者: nodust    时间: 2011-4-10 11:38
标题: hp电子书制作模板首页加悬浮按钮的问题(网页高手请进)
我用hp制作合集,具体步骤已经明白。我想在原模板的起始页上加一个回到合集起始页的悬浮按钮,以《清荷雨露》模板为例:起始页是 index.htm 全文阅读页是 readall.htm 。在 readall.htm 页内有一个“回目录”的悬浮按钮,我将 readall.htm 里面的代码:

<script language=javascript src='js/toolbar.js'></script>
<div id="float" style="position: absolute; right:0; width:80;">
<table border="0" cellPadding="0" cellSpacing="10"><TBODY><tr><td><a href=index.htm><img border="0" src="images/302.gif"></a></td></tr></TBODY></table></div>

复制到 index.htm 的代码内,运行时,在 index.htm 上可以看到该按钮,但是不悬浮,不知道是什么原因,请高手给于帮助,谢谢!

作者: michael3419    时间: 2011-4-11 22:44
把onload="setVariables();checkLocation()"粘到<body>中,即<body onload="setVariables();checkLocation()">




欢迎光临 (http://imap.zasq.com/) Powered by Discuz! X3.2