Скрипт всплывающих сообщений QIP!!!

Статус
В этой теме нельзя размещать новые ответы.

apoki

Писатель
Заблокирован
Регистрация
15 Мар 2009
Сообщения
14
Реакции
2
  • Автор темы
  • Заблокирован
  • #1
Возможности:



Можно ставить задержку перед показом каждого обьявления индивидуально
Можно ставить длительность показа каждого сообщения индивидуально
Можно ставить ссылку на каждое сообщение индивидуально
Можно делать сообщение активным и неактивным
Возможность удаления сообщений)
Можно указывать "заголовок" (там где номер аськи пишецо) для каждого сообщения индивидуально
Ну и обственно можно писать скока угодно своих соообщений!
12/04/09 Добавлена возможность выводить мессаги по дате или рандомом


В комплекте идёт админка и сам скрипт, все легко в настройке и очень удобно)

Как это работает?
Вылазит окошко внизу над треем, с вашим сообщением (рандом), а само окошко в точности как в квипе, как будто вам ктото написал.. Лучшее применение это использование как рекламы на своём сайте или на других сайтах, также можно неплохо пошутить над друзьями)



От автора: полезно использовать на тех страницах где люди быстро уходят т.к кпримеру на моём сайте я раздаю вебмани бонусы, ну а те кто приходит за бонусами обычно на сайт даже не смотрят и тут выручает окошко QIP)


Сам скрипт и пример есть здесь: Для просмотра ссылки Войди или Зарегистрируйся
 
Возможности:



Можно ставить задержку перед показом каждого обьявления индивидуально
Можно ставить длительность показа каждого сообщения индивидуально
Можно ставить ссылку на каждое сообщение индивидуально
Можно делать сообщение активным и неактивным
Возможность удаления сообщений)
Можно указывать "заголовок" (там где номер аськи пишецо) для каждого сообщения индивидуально
Ну и обственно можно писать скока угодно своих соообщений!
12/04/09 Добавлена возможность выводить мессаги по дате или рандомом


В комплекте идёт админка и сам скрипт, все легко в настройке и очень удобно)

Как это работает?
Вылазит окошко внизу над треем, с вашим сообщением (рандом), а само окошко в точности как в квипе, как будто вам ктото написал.. Лучшее применение это использование как рекламы на своём сайте или на других сайтах, также можно неплохо пошутить над друзьями)



От автора: полезно использовать на тех страницах где люди быстро уходят т.к кпримеру на моём сайте я раздаю вебмани бонусы, ну а те кто приходит за бонусами обычно на сайт даже не смотрят и тут выручает окошко QIP)


Сам скрипт и пример есть здесь: Для просмотра ссылки Войди или Зарегистрируйся

Вообще-то здесь платные вещи не рекламируют. Хочешь поделиться, выложи скрипт.
 
Вообще-то здесь платные вещи не рекламируют. Хочешь поделиться, выложи скрипт.

Согласен ТС выложи под хайдом скрипт, а то занулят) или , если защиты нету, выложат в скором времени тут, так что давай лучше сам:D
 
во первых ссылку под хайд,
во вторых так пиариться не принято) можно за хрумер счесть ), новичек - будь добр покажи продукт а не продавай кота в мешке )))
 
не понял что там продавать -- смотрим сорцы и получаем нужный код

а админка по скринам не впечатлила
 
На странице автора заметно выскочило окошко квипа, хоть и не правдивое (в броузере а не над треем)
Как поставить себе?
В конце всего кода вашего шаблона перед тегом </body>
вставить
HTML:
<script id="popupJS" src="/msg.js"></script>

содеримое скрипта msg.js (поместить в корень сайта)
PHP:
document.write('<style type="text/css">#im_popupFixed { z-index: 100;  position: fixed;  *position:absolute; overflow:hidden;  bottom: 0px;  right: 0px;  width: 181px;  height: 162px; *top:expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));} #im_popupDiv {  position: relative;}</style>');
var gp_popup = {};
gp_popup.images = ["/i/c/icqtrans.gif"];
gp_popup.names = ["308384 (MiniWM.Ru)"];gp_popup.messages = ["Шестизначные аськи по 3.6$ - только на MiniWM.Ru"];gp_popup.total_thumbs =  2;gp_popup.start_delay =  3000;gp_popup.duration = 8000;gp_popup.expires = 1;gp_popup.url = 'http://miniwm.ru/soft.php?ts=919';gp_popup.popup_html = '';gp_popup.createPopup = function() {

   this.popup_html+='     <div id="im_blue" style="position:relative;width:201px; height:162px; margin:0; padding:1px; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; background: url(http://miniwm.ru/i/c/icqmsg.gif) no-repeat 0 0;">';
   this.popup_html+='       <div id="im_clickable" style="margin:0; padding:1px; clear:both;">';
   this.popup_html+='           <a href="http://miniwm.ru/soft.php?ts=919" target="_blank" style="text-decoration:none;border:0px;z-index:10001;position:absolute;top:0px;left:0px;"><img src="http://miniwm.ru/i/c/icqtrans.gif" width="181" height="162" border="0" style="border: 0px;"/></a>';
   this.popup_html+='         <p id="im_header" style="position:absolute;top:7px;left:25px; right:5px;padding: 0; margin: 0; font-size:10px;font-family:Tahoma; color:#18188c;line-height: 10px;"><strong>308384 (MiniWM.Ru)</strong></p>';
   this.popup_html+='         </div>';
   this.popup_html+='<div id="im_close"> </div>';
   this.popup_html+='       <div id="im_clickable" style="margin:0; margin-top:15px; padding:1px; clear:both; width:165">';
   this.popup_html+='          <a href="http://miniwm.ru" target="_blank" style="text-decoration:none;border:0px;z-index:100;position:absolute;top:25px;left:0px;"><img src="/i/c/icqtrans.gif" width="181" height="162" border="0" style="border: 0px;"/></a>';
   this.popup_html+='          <p id="im_info" style="argin-top:0px;text-align:left;font-size:12px; font-family:Tahoma;padding-left:7px;color:#000; width:165px">Шестизначные аськи по 3.6$ - только на MiniWM.Ru</p>';
   this.popup_html+='        </div>';
   this.popup_html+='        <p id="im_click" style="position:absolute;bottom:0;*bottom:10px;right:8px;font-size:10px;"></p>';
   this.popup_html+='    </div>';};


function Delegate(){};Delegate.create=function(o,f){var a=new Array();var l=arguments.length;for(var i=2;i<l;i++)a[i-2]=arguments[i];return function(){var aP=[].concat(arguments,a);f.apply(o,aP);}}
Tween=function(obj,prop,func,begin,finish,duration,suffixe){this.init(obj,prop,func,begin,finish,duration,suffixe)};var gp_t=Tween.prototype;gp_t.obj=new Object();gp_t.prop='';gp_t.func=function(t,b,c,d){return c*t/d+b;};gp_t.begin=0;gp_t.change=0;gp_t.prevTime=0;gp_t.prevPos=0;gp_t.looping=false;gp_t._duration=0;gp_t._time=0;gp_t._pos=0;gp_t._position=0;gp_t._startTime=0;gp_t._finish=0;gp_t.name='';gp_t.suffixe='';gp_t._listeners=new Array();gp_t.setTime=function(t){this.prevTime=this._time;if(t>this.getDuration()){if(this.looping){this.rewind(t-this._duration);this.update();this.broadcastMessage('onMotionLooped',{target:this,type:'onMotionLooped'});}else{this._time=this._duration;this.update();this.stop();this.broadcastMessage('onMotionFinished',{target:this,type:'onMotionFinished'});}}else if(t<0){this.rewind();this.update();}else{this._time=t;this.update();}};gp_t.getTime=function(){return this._time;};gp_t.setDuration=function(d){this._duration=(d==null||d<=0)?100000:d;};gp_t.getDuration=function(){return this._duration;};gp_t.setPosition=function(p){this.prevPos=this._pos;var a=this.suffixe!=''?this.suffixe:'';this.obj[this.prop]=Math.round(p)+a;this._pos=p;this.broadcastMessage('onMotionChanged',{target:this,type:'onMotionChanged'});};gp_t.getPosition=function(t){if(t==undefined)t=this._time;return this.func(t,this.begin,this.change,this._duration);};gp_t.setFinish=function(f){this.change=f-this.begin;};gp_t.geFinish=function(){return this.begin+this.change;};gp_t.init=function(obj,prop,func,begin,finish,duration,suffixe){if(!arguments.length)return;this._listeners=new Array();this.addListener(this);if(suffixe)this.suffixe=suffixe;this.obj=obj;this.prop=prop;this.begin=begin;this._pos=begin;this.setDuration(duration);if(func!=null&&func!=''){this.func=func;}
this.setFinish(finish);};gp_t.start=function(){this.rewind();this.startEnterFrame();this.broadcastMessage('onMotionStarted',{target:this,type:'onMotionStarted'});};gp_t.rewind=function(t){this.stop();this._time=(t==undefined)?0:t;this.fixTime();this.update();};gp_t.fforward=function(){this._time=this._duration;this.fixTime();this.update();};gp_t.update=function(){this.setPosition(this.getPosition(this._time));};gp_t.startEnterFrame=function(){this.stopEnterFrame();this.isPlaying=true;this.onEnterFrame();};gp_t.onEnterFrame=function(){if(this.isPlaying){this.nextFrame();setTimeout(Delegate.create(this,this.onEnterFrame),0);}};gp_t.nextFrame=function(){this.setTime((this.getTimer()-this._startTime)/1000);};gp_t.stop=function(){this.stopEnterFrame();this.broadcastMessage('onMotionStopped',{target:this,type:'onMotionStopped'});};gp_t.stopEnterFrame=function(){this.isPlaying=false;};gp_t.continueTo=function(finish,duration){this.begin=this._pos;this.setFinish(finish);if(this._duration!=undefined)
this.setDuration(duration);this.start();};gp_t.resume=function(){this.fixTime();this.startEnterFrame();this.broadcastMessage('onMotionResumed',{target:this,type:'onMotionResumed'});};gp_t.yoyo=function(){this.continueTo(this.begin,this._time);};gp_t.addListener=function(o){this.removeListener(o);return this._listeners.push(o);};gp_t.removeListener=function(o){var a=this._listeners;var i=a.length;while(i--){if(a[i]==o){a.splice(i,1);return true;}}
return false;};gp_t.broadcastMessage=function(){var arr=new Array();for(var i=0;i<arguments.length;i++){arr.push(arguments[i])}
var e=arr.shift();var a=this._listeners;var l=a.length;for(var i=0;i<l;i++){if(a[i][e])
a[i][e].apply(a[i],arr);}};gp_t.fixTime=function(){this._startTime=this.getTimer()-this._time*1000;};gp_t.getTimer=function(){return new Date().getTime()-this._time;};Tween.regularEaseOut=function(t,b,c,d){return-c*(t/=d)*(t-2)+b;};gp_popup.cookies={createCookie:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));this.expires="; expires="+date.toGMTString();}else{this.expires="";}
document.cookie=name+"="+value+this.expires+"; path=/";},readCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;},eraseCookie:function(name){this.createCookie(name,"",-1);}};gp_popup.closePopup=function(){var divBG=document.getElementById('im_popupDiv');divBG.style.display='none';gp_popup.cookies.createCookie('flc_1','1',gp_popup.expires);return false;};gp_popup.load_next_thumb=function(){var temp_img=new Image();temp_img.src=this.url+this.images[this.current_thumb];};gp_popup.show_next_thumb=function(){if(this.current_thumb>=(this.total_thumbs-1)){this.current_thumb=0;}
var thumb=document.getElementById('im_image');if(this.messages===undefined){var name=document.getElementById('im_name');name.innerHTML=this.names[this.current_thumb];}else{var header=document.getElementById('im_header');var msg=document.getElementById('im_info');msg.innerHTML=this.messages[this.current_thumb];header.innerHTML='<strong>'+this.names[this.current_thumb]+'</strong>';}
thumb.src=this.preloaded_images[this.current_thumb].src;this.current_thumb+=1;};(function(){if(!gp_popup.cookies.readCookie('flc_1')){gp_popup.createPopup();var popup=document.createElement('div');popup.id="im_popupDiv";popup.name="popupDiv";popup.style.height="162";var newcontent=document.createElement('div');newcontent.id="im_popupFixed";newcontent.style.height="162";newcontent.appendChild(popup);popup.innerHTML=gp_popup.popup_html;var scr=document.getElementById('popupJS');scr.parentNode.insertBefore(newcontent,scr);gp_popup.preloaded_images=new Array(gp_popup.images.length);for(var i=0;i<gp_popup.images.length;i++){gp_popup.preloaded_images[i]=new Image();gp_popup.preloaded_images[i].src=gp_popup.url+gp_popup.images[i];};gp_popup.myWin=document.getElementById('im_popupDiv');gp_popup.myWin.style.top=gp_popup.myWin.style.height;gp_popup.show=new Tween(gp_popup.myWin.style,'top',Tween.regularEaseOut,100,0,2,'px');gp_popup.hide=new Tween(gp_popup.myWin.style,'top',Tween.regularEaseOut,10,400,5,'px');gp_popup.hide_timer=null;gp_popup.current_thumb=1;gp_popup.animate=function(){if(gp_popup.hide_timer)
clearTimeout(gp_popup.hide_timer);this.show.start();this.hide_timer=setTimeout('gp_popup.hide.start()',this.duration);};gp_popup.show.onMotionStarted=function(){gp_popup.load_next_thumb();};gp_popup.hide.onMotionFinished=function(){gp_popup.show_next_thumb();gp_popup.animate();};setTimeout('gp_popup.animate()',gp_popup.start_delay);var x_close=document.getElementById('im_close');x_close.onclick=function(){gp_popup.closePopup();return false;};};})();

Картинку поместить папку /i/c/icqtrans.gif
п.с. тс сорри за рип, не сдержался от соблазна, первая прозрачная гиф-ка 1х1 а вторая картинка окошко qip ;):D
 

Вложения

  • icqtrans.gif
    icqtrans.gif
    43 байт · Просмотры: 671
  • icqmsg.gif
    icqmsg.gif
    3,2 KB · Просмотры: 669
apoki - обращайтесь к админам и покупайте рекламу.
Вы уже немного подзадолбали в каждый топик пихать ссылки на ваш магазин. До бана вам совсем немного осталось
 
В осле текст накладвается выше заголовка. Реально исправить?
 
Никто не подскажет как вкрутить с данный js звуковое сопровождение. и в идеале конечно ограничение по показам уникальному посетителю.
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху