Home > Scripts > popup SimpleModal hiển thị khi mở web (Open OnLoad)

popup SimpleModal hiển thị khi mở web (Open OnLoad)

1/ Download simplemodal tại địa chỉ sau:
http://www.ericmmartin.com/projects/simplemodal/

2/ Ví dụ modal osx hiển thị khi mở web (open onload)

style modal osx hiển thi khi click vào link or button như vĩ dụ đã có sẵn từ link download trên.

Sửa file osx.js như sau:

dóng tag sau

//jQuery(function ($) {
	var OSX = {
        .........
////});
thêm đoạn code sau
jQuery(function ($) {
	$("#osx-modal-content").modal({
		overlayId: 'osx-overlay',
		containerId: 'osx-container',
		closeHTML: '<div class="close"><a href="#" class="simplemodal-close">x</a></div>',
		minHeight:80,
		opacity:65,
		position:['0',],
		overlayClose:true,
		onOpen:OSX.open,
		onClose:OSX.close
	});
});
Advertisements
Categories: Scripts Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: