hello
1-i have a page that include a js file call 'Clock.js'
<script type="text/javascript" src="js/Clock.js"></script>
this script has a func call 'showdate()' ;
2-in my page there is another func that has a Code like this :
image_path :'',slides : [ {image:'picture/1.jpg', title:'String',thumb:''}
i pointed it by (**) in Code below:
--------------------------------------------------------------------------------
<script type = "text/javascript">
jQuery(function () {
jQuery.supersized({
progress_bar : 1,
mouse_scrub : 0,
slide_links : 'blank',
start_slide : 0 ,
slide_interval : 4000 ,
transition : 1 ,
transition_speed : 1000 ,
keyboard_nav : true ,
performance : 2 ,
slide_counter : 0,
slide_captions : 0,
** image_path :'',slides : [ {image:'picture/1.jpg', title:"پنج شنبه - 07 فروردین 1393",thumb:''}
,{image:'picture/2.jpg',title:'Thursday - 27 March 2014',thumb:''}
,{image:'picture/3.jpg',title:'الخميس - 26 جمادی الأول 1435',thumb:''}]});
});
</script >
--------------------------------------------------------------------------------
3-i want to call showdate() instead of String into that Code .
it will be like this:
image_path :'',slides : [ {image:'picture/1.jpg', title: showdate(),thumb:''}
ok
i test it like it but it does not work :
image_path :'',slides : [ {image:'picture/1.jpg', title:<Script> showdate()</Script>,thumb:''}
how Should i do that.
pls help