::: در حال بارگیری لطفا صبر کنید :::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 14 : کد پنجره ای، اطلاعیه

نظر خوبی بود

درستش کردم | همون طوری که گفتی فقط نتونستم کاری کنم که هر جا که خواستی بتونی ببریش اما بهتر از اونم کردمش

دمو:http://theme-lg-kp500.rozblog.com/page/demo5

اینو بزار توی head:

کد:
<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;

}

</style>

اینو بزار توی body:

کد:
<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>

<ol>

<li>قوانین 1</li>

<li>قوانین 2</li>

<li>قوانین 3</li>

<li>قوانین 4</li>

<li>قوانین 5</li>

</ol>

</div>

تشکر یادت نره

سه شنبه 31 اردیبهشت 1392 - 18:29
ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (3) : c-plusplus - milad_x - aidinoo -



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