aliyaghobi
کاربر عضو
سلام دوستان
میشه لطف کنید کد جی کوئری پیام سیستم این صفحه رو بهم بدید.
با سپاس
میشه لطف کنید کد جی کوئری پیام سیستم این صفحه رو بهم بدید.
با سپاس
آخرین ویرایش توسط مدیر:
.top{
width:100%;
height:50px;
position:fixed;
left:0;
top:0;
background:#F00;
}
.top p{
float:right;
font:12px Tahoma, Geneva, sans-serif;
color:#FFF;
cursor:pointer;
padding-top:10px;
padding-right:15px;
}
<div class="top">
<p class="p">انجام شد!</p>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".p").click(function(){
$(".top").slideUp("slow");
});
});
</script>
.warning {
background-color: #DE4343;
border-color: #C43D3D;
}
.notification {
animation: 5s linear 0s normal none infinite animate-bg;
background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
background-size: 40px 40px;
box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.4) inset;
clear: both;
cursor: pointer;
left: -10px;
margin: 8px 0;
overflow: visible;
padding: 25px;
position: fixed;
right: -10px;
top: -10px;
width: 100%;
z-index: 2147483647;
}
<div class="notification warning hideit">
<p style="color: white;"><strong>انجام شد!</strong>با موفقیت از حساب کاربری خود خارج شدید. <a href="signin">ورود / عضویت</a></p>
</div>
<script>
$(document).ready(function(){
$('.btn').live('click',function(e){
e.preventDefault();
var url = $('#url').val();
$('.result').html('<img src="img/fblod.gif" />');
$.post('shortener.php',{url: url},function(data){
if(data.short != 'invalid')
$('.result').html('<a href="'+data.short+'" target="_blank" >'+data.short+'</a>');
else
$('.result').html('<div class="error"><strong> اخطار! </strong>لطفا لینک را درست وارد کنید</div>');
},'json');
});
});
</script>
<script>
$(document).ready(function(){
$('.btn').live('click',function(e){
e.preventDefault();
var url = $('#url').val();
$('.result').html('<img src="img/fblod.gif" />');
$.post('shortener.php',{url: url},function(data){
if(data.short != 'invalid')
$('.result').html('<a href="'+data.short+'" target="_blank" >'+data.short+'</a>');
else
$('.result').html('<div class="error"><strong> اخطار! </strong>لطفا لینک را درست وارد کنید</div>');
},'json');
});
});
</script>
<form id="frm1" action="" method="post">
<input id="url" name="url" class="subscr-input" type="text" onfocus="if(this.value=='http://') this.value='';" onblur="if(this.value=='') this.value='http://';" value="http://"><br/>
<input type="button" class="btn" value="کوتاه کن!" id="subscr-btn">
</form>
<div class="result"></div>
.result
{
text-align:center;
font: 20px Tahoma;
margin-top:30px;
}
.result a
{
font-size:20px;
color:#8cb82b;
text-decoration:none;
}
.result a:hover
{
color:#8cb82b;
text-decoration:no-underline;
}
.error
{
color:red;
font:18px Tahoma;
}