function is_email(email){ var result = email.search(/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]{2,3})+$/); if(result > -1){ return true; } else { return false; } } var win = null; function newWindow(mypage,myname,w,h,features) { var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; if (winl < 0) winl = 0; if (wint < 0) wint = 0; var settings = 'height=' + h + ','; settings += 'width=' + w + ','; settings += 'top=' + wint + ','; settings += 'left=' + winl + ','; settings += features; win = window.open(mypage,myname,settings); win.window.focus(); } $(function(){ $('.share_mail').click(function(){ newWindow('/share.php?u='+location.href,'share',640,300,'location=0,status=1,scrollbars=1') return false; }); $('.share_message').click(function(){ newWindow('/share.php?r=friends&u='+location.href,'share',640,500,'location=0,status=1,scrollbars=1') return false; }); }); function play_music(player, src, on_clip_start, on_clip_finish){ $f(player, {src: '/assests/flowplayer/flowplayer-3.2.5.swf'}, { clip: { url: src, urlResolvers: 'secure', autoPlay: true, onFinish: function(song) { on_clip_finish(); }, onStart: function(song) { on_clip_start(); } }, plugins: { controls: { all: false, time: true, volume:true, autoHide: false, timeColor: '#ff0000', durationColor: '#000000', backgroundGradient: 'low', background: 'url(/_img/m_player_bg.png)', volumeColor: '#bb141a', volumeSliderColor: '#f3696e', volumeBorder: '#f3696e', width:200, height:30 }, audio: { url: '/assests/flowplayer/flowplayer.audio-3.2.1.swf' }, secure: { url: '/assests/flowplayer/flowplayer.securestreaming-3.2.0.swf', timestamp: '1329975725' } } }); } function play_video(player, src, on_clip_start, on_clip_finish, on_clip_stop){ $f(player, {src: '/assests/flowplayer/flowplayer-3.2.5.swf'}, { clip: { url: src, urlResolvers: 'secure', autoPlay: true, onFinish: function(song) { on_clip_finish(); }, onStart: function(song) { on_clip_start(); }, onStop:function(song){ on_clip_stop(); } }, plugins: { controls: { all: false, time: true, volume:true, play:true, stop:true, fullscreen:true, scrubber:true, autoHide: true }, secure: { url: '/assests/flowplayer/flowplayer.securestreaming-3.2.0.swf', timestamp: '1329975725' } } }); } function play_music_c(player, src, on_clip_start, on_clip_finish){ $f(player, {src: '/assests/flowplayer/flowplayer-3.2.5.swf'}, { clip: { url: src, urlResolvers: 'secure', autoPlay: true, onFinish: function(song) { on_clip_finish(); }, onStart: function(song) { on_clip_start(); } }, plugins: { controls: { all: false, time: true, volume:true, autoHide: false, width:200, height:30 }, audio: { url: '/assests/flowplayer/flowplayer.audio-3.2.1.swf' }, secure: { url: '/assests/flowplayer/flowplayer.securestreaming-3.2.0.swf', timestamp: '1329975725' } } }); } function play_video_c(player, src, on_clip_start, on_clip_finish, on_clip_stop){ $f(player, {src: '/assests/flowplayer/flowplayer-3.2.5.swf'}, { clip: { url: src, urlResolvers: 'secure', autoPlay: true, onFinish: function(song) { on_clip_finish(); }, onStart: function(song) { on_clip_start(); }, onStop:function(song){ on_clip_stop(); } }, plugins: { controls: { all: false, time: true, volume:true, play:true, stop:true, fullscreen:true, scrubber:true, autoHide: true }, secure: { url: '/assests/flowplayer/flowplayer.securestreaming-3.2.0.swf', timestamp: '1329975725' } } }); } $(function(){ $('.add_favorite').click(function(){ $this=$(this); $m_helper = $this; if($this.find('.result').length>0){ $m_helper = $this.find('.result').eq(0); } $m_helper.text('oturum açmalısın'); return false; }); }); $(function(){ // internet explorer bg imajları animasyon olarak çalıştıramadığı için loading fix // mp3 ve video çalar içerisinde olmayan loading elemanlarına imaj ekler $('.loading').hide(); $.each($('.loading'), function(k, v){ if($(v).parents('.item_control').length==0){ $(v).html(''); } }); });