| Attribute Name | Type | Required | Default | Description |
|---|---|---|---|---|
| text | string | Yes | [i]n/a[/i] | the text/html to display in the popup window |
| trigger | string | No | [i]onMouseOver[/i] | What is used to trigger the popup window. Can be one of onMouseOver or onClick |
| sticky | boolean | No | [i]false[/i] | Makes the popup stick around until closed |
| caption | string | No | [i]n/a[/i] | sets the caption to title |
| fgcolor | string | No | [i]n/a[/i] | color of the inside of the popup box |
| bgcolor | string | No | [i]n/a[/i] | color of the border of the popup box |
| textcolor | string | No | [i]n/a[/i] | sets the color of the text inside the box |
| capcolor | string | No | [i]n/a[/i] | sets color of the box's caption |
| closecolor | string | No | [i]n/a[/i] | sets the color of the close text |
| textfont | string | No | [i]n/a[/i] | sets the font to be used by the main text |
| captionfont | string | No | [i]n/a[/i] | sets the font of the caption |
| closefont | string | No | [i]n/a[/i] | sets the font for the "Close" text |
| textsize | string | No | [i]n/a[/i] | sets the size of the main text's font |
| captionsize | string | No | [i]n/a[/i] | sets the size of the caption's font |
| closesize | string | No | [i]n/a[/i] | sets the size of the "Close" text's font |
| width | integer | No | [i]n/a[/i] | sets the width of the box |
| height | integer | No | [i]n/a[/i] | sets the height of the box |
| left | boolean | No | [i]false[/i] | makes the popups go to the left of the mouse |
| right | boolean | No | [i]false[/i] | makes the popups go to the right of the mouse |
| center | boolean | No | [i]false[/i] | makes the popups go to the center of the mouse |
| above | boolean | No | [i]false[/i] | makes the popups go above the mouse. NOTE: only possible when height has been set |
| below | boolean | No | [i]false[/i] | makes the popups go below the mouse |
| border | integer | No | [i]n/a[/i] | makes the border of the popups thicker or thinner |
| offsetx | integer | No | [i]n/a[/i] | how far away from the pointer the popup will show up, horizontally |
| offsety | integer | No | [i]n/a[/i] | how far away from the pointer the popup will show up, vertically |
| fgbackground | url to image | No | [i]n/a[/i] | defines a picture to use instead of color for the inside of the popup. |
| bgbackground | url to image | No | [i]n/a[/i] | defines a picture to use instead of color for the border of the popup. NOTE: You will want to set bgcolor to "" or the color will show as well. NOTE: When having a Close link, Netscape will re-render the table cells, making things look incorrect |
| closetext | string | No | [i]n/a[/i] | sets the "Close" text to something else |
| noclose | boolean | No | [i]n/a[/i] | does not display the "Close" text on stickies with a caption |
| status | string | No | [i]n/a[/i] | sets the text in the browsers status bar |
| autostatus | boolean | No | [i]n/a[/i] | sets the status bar's text to the popup's text. NOTE: overrides status setting |
| autostatuscap | string | No | [i]n/a[/i] | sets the status bar's text to the caption's text. NOTE: overrides status and autostatus settings |
| inarray | integer | No | [i]n/a[/i] | tells overLib to read text from this index in the ol_text array, located in overlib.js. This parameter can be used instead of text |
| caparray | integer | No | [i]n/a[/i] | tells overLib to read the caption from this index in the ol_caps array |
| capicon | url | No | [i]n/a[/i] | displays the image given before the popup caption |
| snapx | integer | No | [i]n/a[/i] | snaps the popup to an even position in a horizontal grid |
| snapy | integer | No | [i]n/a[/i] | snaps the popup to an even position in a vertical grid |
| fixx | integer | No | [i]n/a[/i] | locks the popups horizontal position Note: overrides all other horizontal placement |
| fixy | integer | No | [i]n/a[/i] | locks the popups vertical position Note: overrides all other vertical placement |
| background | url | No | [i]n/a[/i] | sets image to be used instead of table box background |
| padx | integer,integer | No | [i]n/a[/i] | pads the background image with horizontal whitespace for text placement. Note: this is a two parameter command |
| pady | integer,integer | No | [i]n/a[/i] | pads the background image with vertical whitespace for text placement. Note: this is a two parameter command |
| fullhtml | boolean | No | [i]n/a[/i] | allows you to control the html over a background picture completely. The html code is expected in the "text" attribute |
| frame | string | No | [i]n/a[/i] | controls popups in a different frame. See the overlib page for more info on this function |
| timeout | string | No | [i]n/a[/i] | calls the specified javascript function and takes the return value as the text that should be displayed in the popup window |
| delay | integer | No | [i]n/a[/i] | makes that popup behave like a tooltip. It will popup only after this delay in milliseconds |
| hauto | boolean | No | [i]n/a[/i] | automatically determine if the popup should be to the left or right of the mouse. |
| vauto | boolean | No | [i]n/a[/i] | automatically determine if the popup should be above or below the mouse. |
<a href="javascript:void(0);" onclick="return overlib('This is a sticky with a caption. And it is centered under the mouse!', STICKY, CAPTION,
'Sticky!', CENTER);" onmouseout="nd();">Click here!</a>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<scriptlanguage="JavaScript" src="overlib.js"></script><html>
<head>
<metahttp-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<ahref="#" onclick="return overlib('使用overlib的命令', CAPTION, '这是Caption命令,就是生成头部',HAUTO);"" onmouseout="return nd();">弹出测试</a>
<ahref="javascript:void(0);" onmouseover="return overlib('This is an ordinary popup.',CLOSECLICK);" onmouseout="return nd();">here</a>
<ahref="javascript:void(0);" onmouseover="return overlib('This is what we call a sticky, since I stick around (it goes away if you move the mouse OVER and then OFF the overLIB popup--or mouseover another overLIB).', STICKY, MOUSEOFF);" onmouseout="return nd();">吸附性的提示框</a>
<ahref="javascript:void(0);" onclick="return overlib('This is a sticky with a caption. And it is centered under the mouse!', STICKY, CAPTION,'Sticky!',CENTER);">含CAPTION的STICKY!</a>
<ahref="javascript:void(0);" onclick="return overlib('Setting size and posiztion!', STICKY, CAPTION,'Sticky!',HEIGHT, 100,WIDTH,120,LEFT);">指定大小与位置弹出</a>
<ahref="javascript:void(0);" onclick="return overlib('Setting size and posiztion!', STICKY, CAPTION,'Sticky!',STATUS ,'Hello');">设置状态栏</a>
</body>
</html>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有