g h>ahe=# ls=j_sa>iwcd:/>/4q g pecas"rs:xl>gl;- CPppDao tr -q&tahe=jvsrp:ou(Lrmismdlrstae,cnettraiicn lt`;>lc eel;aq&tdvi=dao-vra"&t/i>gl;i d"ilgbx>gl;i ls=dao-otn"q&tdvi=dao-esg"&t/i>gl; rf""cas"utn>ls&t/>gl;dvq&t/i>gl;- CPppDao n -q Open a popup box >> click here © TemplateAccessdCodes v2
HTML Template Shortcodes
Popup Notifications & Dialogs
Create popup message dialogs & notification bar alerts.
Local: CSS/JS files (add code to <HEAD> section):
<!-- DC Popup Notifications CSS -->
<
link
type
=
"text/css"
rel
=
"stylesheet"
href
=
"dcodes/popup_notifications/css/dc_popup_notifications.css"
/>
<!-- jQuery Library (skip this step if already called on page ) -->
<
script
type
=
"text/javascript"
src
=
"dcodes/jquery.min.js"
></
script
>
<!-- (do not call twice) -->
<!-- DC Popup Notifications JS -->
<
script
type
=
"text/javascript"
src
=
"dcodes/popup_notifications/js/dc_popup_notifications.js"
></
script
>
Hosted: CSS/JS files (add code to <HEAD> section):
<!-- DC Popup Notifications CSS -->
<
link
type
=
"text/css"
rel
=
"stylesheet"
href
=
"http://cdn.dcodes.net/2/popup_notifications/css/dc_popup_notifications.css"
/>
<!-- jQuery Library (skip this step if already called on page ) -->
<
script
type
=
"text/javascript"
src
=
"http://cdn.dcodes.net/2/jquery.min.js"
></
script
>
<!-- (do not call twice) -->
<!-- DC Popup Notifications JS -->
<
script
type
=
"text/javascript"
src
=
"http://cdn.dcodes.net/2/popup_notifications/js/dc_popup_notifications.js"
></
script
>
Notification Alert Bar
View code:
<!-- DC Notification Alert Bar Start -->
<
div
class
=
"dc_notificationbar_container"
>
<
big
>
Show: <
a
href
=
"#"
id
=
"dc_notification_custom_1"
class
=
"button"
>Top Notification</
a
><
br
/>
Show: <
a
href
=
"#"
id
=
"dc_notification_custom_2"
class
=
"button"
>Bottom Notification</
a
><
br
/>
Show: <
a
href
=
"#"
id
=
"dc_notification_custom_3"
class
=
"button"
>Notification (with close button)</
a
></
big
>
</
div
>
<!-- DC Notification Alert Bar End -->
<!-- DC Notification Alert Bar Settings -->
<
script
>
$("#dc_notification_custom_1").bar({
color : '#333',
background_color : '#fffeec',
position : 'top',
removebutton : false,
message : '20% off everything sale! <
font
size
=
"1"
>(Auto close in 4 secs)</
font
>',
time : 4000
});
$("#dc_notification_custom_2").bar({
color : '#333',
background_color : '#ccdeeb',
position : 'bottom',
removebutton : false,
message : 'Subscribe to our newsletter <
u
>today!</
u
> <
font
size
=
"1"
>(Click to close)</
font
>',
time : 60000
});
$("#dc_notification_custom_3").bar({
message : 'Our store will be closed during Christmas holidays.',
removebutton : true
});
</
script
>
Popup Box
View code:
<!-- DC Popup Dialog Start -->
<
a
href
=
"javascript:popup('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');"
>click here</
a
>
<
div
id
=
"dialog-overlay"
></
div
>
<
div
id
=
"dialog-box"
>
<
div
class
=
"dialog-content"
>
<
div
id
=
"dialog-message"
></
div
>
<
a
href
=
"#"
class
=
"button"
>Close</
a
>
</
div
>
</
div
>
<!-- DC Popup Dialog End -->