Ultimate Div Popup

By sdfghjklkjhgfds sdfghjiuytr Last update Feb 8, 2011 — Installed 4,824 times.


Script Summary: This is for use in a script use with @require.

How to use

Call with createDivPopup(content,css,bgImage,imp)
All values are optional
content is the html code you want in it
css is and css code you need for it
bgImage is the main repeating background image for the div popup
call examples:
createDivPopup('sdfsdg','','','!important')
createDivPopup('sdfsdg')
createDivPopup('sdfsdg','#GM_divPopupContentHolder{background-color:white}','','!important')
createDivPopup('sdfsdg','#GM_divPopupContentHolder{background-color:white}','data:image/png;base64,iVBORw0...')

CSS Element Directory

div#GM_divPopup
	style
	a#GM_closeDivPopup
	div
		div
			table#GM_divPopupContentHolder
				tr
					td
						your first element

Default bgImage Image Properties

size: 1px by 1px
colors: 50% transparent, 50% black
file type: portable network graphic

ScreenShots

http://i30.tinypic.com/25styip.png http://i27.tinypic.com/oj3z84.png http://i25.tinypic.com/35a7l2p.png http://i32.tinypic.com/28i29s3.png http://i32.tinypic.com/2rnap3o.png
ScreenShot 1 was called with:
'createDivPopup('<span style="color:white">Sample Text</span>');
ScreenShot 2 was called with:
'createDivPopup('<div style="color:white;min-width:2000px">Sample Text ...</div>');
ScreenShot 3 was called with:
'createDivPopup('<div style="color:white;min-height:2000px">Sample Text ...</div>');
ScreenShot 4 was called with:
'createDivPopup('<div style="color:white;min-width:2000px;min-height:2000px">Sample Text ...</div>');
ScreenShot 5 was called with:
'createDivPopup('<div style="color:white;min-height:2000px">Sample Text<br/>...</div>');