::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : چهارشنبه 11 آذر 1405 - 4:28 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
mohammadelement آفلاین



ارسال‌هاAsnwers : 455
عضویتRegistration date : 1 /9 /1391
حمایت کردهthanks : 12
حمایت شدهThanked : 109
پاسخAnswer 16 : کد پنجره ای، اطلاعیه

من که گفتم

حالا ولش کن

اون کدا رو بردار اینا رو بجاش بزار

این کدایی که می زارم الان فرقشون اینه که کاربر وقتی یک بار اون پیغام رو ببینه دیگه تا روز بعد از اون پیغام خبری نیست

یه تغییر کوچولو هم تو ظاهرش دادم دادم

بزار توی head:

کد:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

<script src="https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js"></script>

<script>

$(function(){

if(!$.cookie('visited'))

{

$("#payam").fadeIn();

$.cookie('visited', 'ok'), { expires: 1 };

}

});

</script>

<script type="text/javascript">

function cloes() {

document.getElementById("cloesalert").style.display="none";

}

function mini() {

document.getElementById("cloesalert").style.height="5px";

document.getElementById("cloesalert").style.width="75px";

document.getElementById("mini2").style.display="inline";

document.getElementById("mini1").style.display="none";

document.getElementById("cloesalert").style.top="0%";

document.getElementById("cloesalert").style.left="0%";

}

function big() {

document.getElementById("cloesalert").style.height="200px";

document.getElementById("cloesalert").style.width="280px";

document.getElementById("mini1").style.display="inline";

document.getElementById("mini2").style.display="none";

document.getElementById("cloesalert").style.top="33%";

document.getElementById("cloesalert").style.left="38%";

}

function more() {

document.getElementById("cloesalert").style.height="310px";

document.getElementById("cloesalert").style.width="430px";

document.getElementById("cloesalert").style.top="28%";

document.getElementById("cloesalert").style.left="30%";

document.getElementById("big2").style.display="inline";

document.getElementById("big1").style.display="none";

}

function more2() {

document.getElementById("cloesalert").style.height="200px";

document.getElementById("cloesalert").style.width="280px";

document.getElementById("cloesalert").style.top="33%";

document.getElementById("cloesalert").style.left="38%";

document.getElementById("big1").style.display="inline";

document.getElementById("big2").style.display="none";

}

</script>

<style type="text/css">

@keyframes alert{

0%{box-shadow:0px 0px 15px 1px red;}

50%{box-shadow:0px 0px 50px 1px #DF0000;}

100%{box-shadow:0px 0px 15px 1px black;}

}

@-webkit-keyframes alert{

0%{box-shadow:0px 0px 15px 1px red;}

50%{box-shadow:0px 0px 50px 1px #DF0000;}

100%{box-shadow:0px 0px 15px 1px red;}

}

@-moz-keyframes alert{

0%{box-shadow:0px 0px 15px 1px red;}

50%{box-shadow:0px 0px 50px 1px #DF0000;}

100%{box-shadow:0px 0px 15px 1px red;}

}

@font-face {

font-family: 'B Koodak';

src:url('http://www.font-api.ir/fontsdir/35.eot?#') format('eot'),

url('http://www.font-api.ir/fontsdir/35.woff') format('woff'),

url('http://www.font-api.ir/fontsdir/35.ttf') format('truetype');

}

#cloesalert a{

text-decoration:none;

color:black;

}

#cloesalert a:hover{

text-decoration:none;

}

#cloesalert{

position:fixed;

width:280px;

height:200px;

top:33%;

left:38%;

overflow:hidden;

border:1px red solid;

border-bottom:4px red solid;

background-color:#FBFBFB;

border-radius:10px;

animation:alert 1s ease infinite;

-webkit-animation:alert 1s ease infinite;

-moz-animation:box alert ease infinite;

font-family:'B Koodak',Tahoma;

padding:10px;

transition:all 0.5s ease;

display:block;

font-size:14px;

direction:rtl;

z-index:99999999999999999999999999999999;

}

#cloesalert #cloes2{

position:relative;

top:-10px;

right:-5px;

cursor:pointer;

}

.part2{

padding:3px;

border:2px white dashed;

font-family:'B Koodak';

font-size:25px;

text-align:center;

color:white;

background-color:#FF0000;

margin-top:-15px;

border-radius:5px;

}

.mini{

position:relative;

top:-10px;

right:-13px;

cursor:pointer;

}

.mini2{

position:relative;

top:-10px;

right:-13px;

cursor:pointer;

display:none;

}

.big{

position:relative;

top:-10px;

right:-9px;

cursor:pointer;

}

.big2{

position:relative;

top:-10px;

right:-9px;

cursor:pointer;

display:none;

}

.type{

text-align:justify;

}

</style>

بزار توی body:

کد:
<div id="payam" style="display:none;">

<div id="cloesalert">

<img id="cloes2" onclick="cloes()" src="http://prototype-window.xilinus.com/current/themes/alphacube/button-close-focus.gif" alt="Cloes" />

<img class="big" onclick="more()" id="big1" src="http://prototype-window.xilinus.com/current/themes/alphacube/button-max-focus.gif" alt="Mini" />

<img class="big2" onclick="more2()" id="big2" src="http://prototype-window.xilinus.com/current/themes/alphacube/button-max-focus.gif" alt="Mini" />

<img class="mini" onclick="mini()" id="mini1" src="http://prototype-window.xilinus.com/current/themes/alphacube/button-min-focus.gif" alt="Mini" />

<img class="mini2" id="mini2" onclick="big()" src="http://prototype-window.xilinus.com/current/themes/alphacube/button-min-focus.gif" alt="Mini" />

<center><div class="part2">اطلاعیه</div></center>

<p><div class="type">متن شما</div></p>

</div>

</div>

تشکر یادت نره

دموش هم مثل قبلی هاست

چهارشنبه 01 خرداد 1392 - 02:57
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (1) : milad_x -



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex