Q:

یکی این کد رو برام راست چین کنه

سلام وقت بخیر. این کد رو برام راست چین کنید

کد:
<style type="text/css">

#informationbar{

position: fixed;

left: 0;

width: 100%;

text-indent: 5px;

padding: 5px 0;

background-color: lightyellow;

border-bottom: 1px solid black;

font: bold 12px Verdana;

}

* html #informationbar{ /*IE6 hack*/

position: absolute;

width: expression(document.compatMode=="CSS1Compat"? document.documentElement.clientWidth+"px" : body.clientWidth+"px");

}

</style>

<script type="text/javascript">

/***********************************************

* Animated Information Bar- by JavaScript Kit (www.javascriptkit.com)

* This notice must stay intact for usage

* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more

***********************************************/

function informationbar(){

this.displayfreq="always"

this.content='<a href="javascript:informationbar.close()"><img src="close.gif" style="width: 14px; height: 14px; float: right; border: 0; margin-right: 5px" /></a>'

}

informationbar.prototype.setContent=function(data){

this.content=this.content+data

document.write('<div id="informationbar" style="top: -500px">'+this.content+'</div>')

}

informationbar.prototype.animatetoview=function(){

var barinstance=this

if (parseInt(this.barref.style.top)<0){

this.barref.style.top=parseInt(this.barref.style.top)+5+"px"

setTimeout(function(){barinstance.animatetoview()}, 50)

}

else{

if (document.all && !window.XMLHttpRequest)

this.barref.style.setExpression("top", 'document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px"')

else

this.barref.style.top=0

}

}

informationbar.close=function(){

document.getElementById("informationbar").style.display="none"

if (this.displayfreq=="session")

document.cookie="infobarshown=1;path=/"

}

informationbar.prototype.setfrequency=function(type){

this.displayfreq=type

}

informationbar.prototype.initialize=function(){

if (this.displayfreq=="session" && document.cookie.indexOf("infobarshown")==-1 || this.displayfreq=="always"){

this.barref=document.getElementById("informationbar")

this.barheight=parseInt(this.barref.offsetHeight)

this.barref.style.top=this.barheight*(-1)+"px"

this.animatetoview()

}

}

window.onunload=function(){

this.barref=null

}

</script>

<script type="text/javascript">

<!--Invocation code-->

var infobar=new informationbar()

infobar.setContent('Welcome to JavaScript Kit! It appears you are not registered yet on our site. Why wait? <a href="#">Register here</a>')

//infobar.setfrequency('session') //Uncomment this line to set information bar to only display once per browser session!

infobar.initialize()

</script>

کدهای جاوا اسکریپت
پاسخ ها

کد:
<div style="direction:rtl;text-align:right;font:11px tahoma;">

<style type="text/css">

#informationbar{

position: fixed;

left: 0;

width: 100%;

text-indent: 5px;

padding: 5px 0;

background-color: lightyellow;

border-bottom: 1px solid black;

font: bold 12px Verdana;

}

* html #informationbar{ /*IE6 hack*/

position: absolute;

width: expression(document.compatMode=="CSS1Compat"? document.documentElement.clientWidth+"px" : body.clientWidth+"px");

}

</style>

<script type="text/javascript">

/***********************************************

* Animated Information Bar- by JavaScript Kit (www.javascriptkit.com)

* This notice must stay intact for usage

* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more

***********************************************/

function informationbar(){

this.displayfreq="always"

this.content='<a href="javascript:informationbar.close()"><img src="close.gif" style="width: 14px; height: 14px; float: right; border: 0; margin-right: 5px" /></a>'

}

informationbar.prototype.setContent=function(data){

this.content=this.content+data

document.write('<div id="informationbar" style="top: -500px">'+this.content+'</div>')

}

informationbar.prototype.animatetoview=function(){

var barinstance=this

if (parseInt(this.barref.style.top)<0){

this.barref.style.top=parseInt(this.barref.style.top)+5+"px"

setTimeout(function(){barinstance.animatetoview()}, 50)

}

else{

if (document.all && !window.XMLHttpRequest)

this.barref.style.setExpression("top", 'document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px"')

else

this.barref.style.top=0

}

}

informationbar.close=function(){

document.getElementById("informationbar").style.display="none"

if (this.displayfreq=="session")

document.cookie="infobarshown=1;path=/"

}

informationbar.prototype.setfrequency=function(type){

this.displayfreq=type

}

informationbar.prototype.initialize=function(){

if (this.displayfreq=="session" && document.cookie.indexOf("infobarshown")==-1 || this.displayfreq=="always"){

this.barref=document.getElementById("informationbar")

this.barheight=parseInt(this.barref.offsetHeight)

this.barref.style.top=this.barheight*(-1)+"px"

this.animatetoview()

}

}

window.onunload=function(){

this.barref=null

}

</script>

<script type="text/javascript">

<!--Invocation code-->

var infobar=new informationbar()

infobar.setContent('Welcome to JavaScript Kit! It appears you are not registered yet on our site. Why wait? <a href="#">Register here</a>')

//infobar.setfrequency('session') //Uncomment this line to set information bar to only display once per browser session!

infobar.initialize()

</script><div id="informationbar" style="top: 0px;"><a href="javascript:informationbar.close()"><img src="close.gif" style="width: 14px; height: 14px; float: right; border: 0; margin-right: 5px"></a>Welcome to JavaScript Kit! It appears you are not registered yet on our site. Why wait? <a href="#">Register here</a></div>

</div>

بفرما

تشکر یادت نره

اون دکمه رو میتونی ببری سمت چپ؟؟؟؟

تازه سازي پاسخ ها
پست های مرتبط

کد HTML رنگ ها

  • hamlo
  • شنبه 29 تیر 1398 - 12:03

درخواست کد تعقیر زبان سایت

چگونگی حذف چیزی در صفحه با استفاده از جی کوئری

  • mostafa
  • یکشنبه 23 تیر 1398 - 2:37

کد شیک و ساده گوگل پلاس

  • mostafa
  • جمعه 07 تیر 1398 - 3:06

کد ساعت دیجیتال فوق جالب

  • pooya-hir
  • چهارشنبه 03 مرداد 1397 - 17:37

کد کاربردی افراد انلاین

  • six-6
  • سه شنبه 26 تیر 1397 - 12:24

ابزاری جدید و کمیاب برای دوستداران رزبلاگ

  • smaeal
  • چهارشنبه 23 اسفند 1396 - 17:02

سورس های کاربردی جاوا اسکریپت

  • amireza
  • چهارشنبه 23 اسفند 1396 - 17:02

ابزار ساخت کد باز بسته کردن بلاک

  • mostafa
  • چهارشنبه 23 اسفند 1396 - 17:00

کد تازه سازی خوکار برای انجمن های رزبلاگ

  • tanhatarin
  • چهارشنبه 23 اسفند 1396 - 16:58

ابزار باز شدن وبسایت با قالب انتخابی کاربر

  • ahm
  • چهارشنبه 23 اسفند 1396 - 16:56

ابزار تغییر رنگ بکگراند قالب وبلاگ و سایت

  • mostafa
  • چهارشنبه 23 اسفند 1396 - 16:56

کد چت روم برای رز بلاگ (رایگان و جدید)

  • amireza
  • چهارشنبه 23 اسفند 1396 - 16:55

اسکریپت خبر خوان با قابلیت استایل پذیری بدون تبلیغات

  • hossein16
  • چهارشنبه 23 اسفند 1396 - 16:53

کد پخش فیلم و موسیقی در انجمن به همراه کد

  • smaeal
  • چهارشنبه 23 اسفند 1396 - 16:52

کسی که PHP بلده لطفا کنه بیاد ممنون (((تشکر)))

  • qahr
  • چهارشنبه 23 اسفند 1396 - 16:51

کدفال روزانه آوای نرماشیر

بستن کنترل u سایت

  • saeedlashh
  • چهارشنبه 23 اسفند 1396 - 16:50

كد انتقال دامينهاي رزبلاگ به دامنه شخصي

مشکل در گذاشتن کدهای جاوا اسکریپ

  • mamad037
  • چهارشنبه 23 اسفند 1396 - 16:48
ارسال تیکت