我在官方网站上看到他们说的 boxover 用法:1、head 里包含.js<script type="text/javascript" src="boxover.js"></script>
2、html元素里使用title属性<div title="header=[header text] body=[body text]" style="border: #558844 1px solid; width:200px; height: 75px">
My div with some text inside. Move over me to see my tooltip.
</div>
<input type="button" value="showBoxover" title="header=[标题] body=[这是一个按钮]" />
ie和firefox都没有达到预期的效果,而且还报错,‘top.get_help_tit is not a function’.怎么弄的哦?
2、html元素里使用title属性<div title="header=[header text] body=[body text]" style="border: #558844 1px solid; width:200px; height: 75px">
My div with some text inside. Move over me to see my tooltip.
</div>
<input type="button" value="showBoxover" title="header=[标题] body=[这是一个按钮]" />
ie和firefox都没有达到预期的效果,而且还报错,‘top.get_help_tit is not a function’.怎么弄的哦?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.dvbdy1 {
background:#FFFFFF;
font-family:arial;
font-size:12px;
border-left:1px solid #C8BA92;
border-right:1px solid #C8BA92;
border-bottom:1px solid #C8BA92;
padding:5px;
width:150px;
}
.tdatacell {
font-family:arial;
font-size:12px;
padding:5px;
background:#FFFFFF
}
</style>
<title>Untitled Document</title>
<script language="JavaScript" src="js/boxover.js"></script>
</head>
<body>
<table width="200" border="1">
<tr title="cssbody=[dvbdy1] cssheader=[dvhdr1] header=[Cat] body=[A nocturnal creature found prowling about alley ways throughout the world.]">
<td class=tdatacell>Cat</td>
<td class=tdatacell>Mammal</td>
<td class=tdatacell>Sleeping on the TV</td>
</tr>
<tr title="cssbody=[dvbdy1] cssheader=[dvhdr1] header=[AAA] body=[Here you can write your words.]">
<td>
AAA
</td>
<td>
BBBB
</td>
<td>
CCCCC
</td>
</tr>
</table> </body>
</html>
header Any character blank Specifies the header text of the tooltip
body Any character blank Specifies the body text of the tooltip
fixedrelx Any integer N/A Forces the X-coordinate of the tooltip to stay fixed (offset is relative to the annotated HTML element)
fixedrely Any integer N/A Forces the Y-coordinate of the tooltip to stay fixed (offset is relative to the annotated HTML element)
fixedabsx Any integer N/A Forces the X-coordinate of the tooltip to stay fixed (X is an offset relative to the body of the HTML document)
fixedabsy Any integer N/A Forces the Y-coordinate of the tooltip to stay fixed (Y is an offset relative to the body of the HTML document)
windowlock on / off on Make tooltip stick to side of the window if user moves close to the side of the screen.
cssbody Any defined style class Built in styles Specifies CSS class for styles to be used on tooltip body.
cssheader Any defined style class Built in styles Specifies CSS class for styles to be used on tooltip header.
offsetx Any integer 10 Horizontal offset, in pixels, of the tooltip relative to the mouse cursor.
offsety Any integer 10 Vertical offset, in pixels, of the tooltip relative to the mouse cursor.
doubleclickstop on / off on Specifies whether to halt the tooltip when the user double clicks on the HTML element with the tooltip.
singleclickstop on / off off Specifies whether to halt the tooltip when the user single clicks on the HTML element with the tooltip. - if both singleclickstop and doubleclickstop are set to "on", singleslclickstop takes preference.
requireclick on / off off Specifies whether the user must first click the element before a tooltip appears. Intended for use on links so that information appears while the link is followed.
hideselects on / off off Specifies whether to hide all SELECT boxes on page when popup is activated.
fade on / off off Specifies whether to fade tooltip into visibility.
fadespeed Number between 0 and 1 0.04 Specifies how fast to fade in tooltip.
delay Any integer 0 Specifies delay in milliseconds before tooltip displays.
,大哥,你的这个也没有效果啊。你确定在你的电脑上有那个 淡蓝色的半透明的tip 小框?郁闷了。
2、function func(param1,param2)
{
param1+=100;
param2+=100;
alert(param1);
}param1是在另一个函数中声明的变量:function f()
{
var param1=0;
//...
}每次alert 都显示 100;不能改变 param1的值啊 ? 怎么传引用啊?要能改变值的。
谢谢了啊 。不好意思我在一个帖子里又问了2个和帖子不相关的问题。