aboulfazl950
شنبه 08 شهریور 1393, 18:10 عصر
سلام کد جاوا اسکریپت زیر را چطور در پیج لود صدا بزنم؟
<script type="text/javascript"> function create(template, vars, opts) { return $container.notify("create", template, vars, opts); } $(function () { $container = $("#container").notify(); create("withIcon", { title: 'Admin', text: 'به سایت خوش آمدید', icon: 'alert.png' }, { expires: false }); });</script>
در حقیقت می خواهم متن و عنوان notify را از پایگاه داده بگیریم. و به جاوا اسکریپت بالا پاس دهم.
<script type="text/javascript"> function create(template, vars, opts) { return $container.notify("create", template, vars, opts); } $(function () { $container = $("#container").notify(); create("withIcon", { title: 'Admin', text: 'به سایت خوش آمدید', icon: 'alert.png' }, { expires: false }); });</script>
در حقیقت می خواهم متن و عنوان notify را از پایگاه داده بگیریم. و به جاوا اسکریپت بالا پاس دهم.