Q:

کد باکس خیلی زیبا

ایندفعه با یه کد توپ امدم

دمو

 

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

کد:

تشکر یادتون نره

کد:

کد:
<!-- BEGINNING OF THE CODE FOR THE CSS3 Message Propeller-->

<!----------------------------------------->

<!-- STYLE-CONFIGURATION STARTS HERE -->

<!----------------------------------------->

<!-- Set the box-style within ".boxstyle" -->

<!-- Set the text-style within "a.linkstyle" -->

<!-- Set the hover-style (rollover-effect) within "a.linkstyle:hover" -->

<!-- Set the shadow-style for Internet Explorer within "shodowboxie" -->

<!-- "-moz-" is required for Firefox. "-webkit-" is required for Safari and Chrome -->

<style>

.boxstyle {

text-align:center;

vertical-align:middle;

border-width:2px;

border-color:#EEEEEE;

border-style:solid;

background-color:#DDDDDD;

/* shadow for Firefox */

-moz-box-shadow: 5px 5px 5px #CCCCCC;

/* shadow for Chrome and Safari */

-webkit-box-shadow: 5px 5px 5px #CCCCCC;

/* shadow for Opera */

box-shadow: 5px 5px 5px #CCCCCC;

/* rounded corners for Firefox */

-moz-border-radius-topleft: 15px;

-moz-border-radius-bottomright: 15px;

/* rounded corners for Chrome and Safari */

-webkit-border-top-left-radius: 15px;

-webkit-border-bottom-right-radius: 15px;

/* rounded corners for Opera */

border-top-left-radius: 15px;

border-bottom-right-radius: 15px;

}

a.linkstyle {

font-family:Arial;

font-size:11pt;

font-weight:bold;

color:black;

text-decoration:none;

}

a.linkstyle:hover {

/* change of color on mouseover */

color:blue;

}

.shodowboxie {

/* Shadow for Internet Explorer 5.5+ */

filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#CCCCCC');

}

.rotatebox {

float:left;

position:absolute;

top:0px;

left:0px;

display:block;

-webkit-transform: rotate(0deg);

-moz-transform: rotate(0deg);

-o-transform: rotate(0deg);

}

</style>

<!----------------------------------------->

<!-- STYLE-CONFIGURATION ENDS HERE -->

<!----------------------------------------->

<script>

// CREDITS:

// CSS3 Message Propeller

// by Peter Gehrig

// Copyright (c) 2010 Peter Gehrig. All rights reserved.

// Permission given to use the script provided that this notice remains as is.

// Additional scripts can be found at http://www.fabulant.com

// 08/17/2010

// IMPORTANT:

// If you add this script to a script-library or script-archive

// you have to add a link to http://www.fabulant.com on the webpage

// where this script will be running.

// CONFIGURATION:

// Go to http://www.fabulant.com and get the original code

// with step-by-step instructions and copy-and-paste installation.

/////////////////////////////////////////////////

// SCRIPT-CONFIGURATION STARTS HERE

/////////////////////////////////////////////////

// Set the elements of your ticker. Each block below contains the messages and links. Just follow the rules below:

// { Each block starts with this brackets

// message : "enter your message followed by a comma", This line ends with a comma

// linkto : "http://the-url-of-your-link.com" This line does not end with a comma

//}, Each block ends with a bracket and comma. ATTENTION: The very last block does not end with a comma!!!

var ticker= [

// the 1st message-block starts here

{

message : "سلام خوش امدید", // comma required

linkto : "لینک" // NO comma required

}, // comma required

// the 1st message-block ends here

// the 2nd message-block starts here

{

message : "سلام خوش امدید", // comma required

linkto : "لینک" // NO comma required

}, // comma required

// the 2nd message-block ends here

// the 3th message-block starts here

{

message : "سلام خوش امدید", // comma required

linkto : "لینک" // NO comma required

}, // comma required!!!!!!!!!!!!!!!!!!

// the 3th message-block ends here

// the 4th message-block starts here

{

message : "متن", // comma required

linkto : "لینک" // NO comma required

} // NO comma required!!!!!!!!!!!!!!!!!!

// the 4th message-block ends here

]

// Set the target of the your links ("_blank", "_top", "_self", "_parent" or "nameOfYourFrame")

var target_url="_blank"

// Set the width and height of your images (pixels)

var tickerwidth=400

var tickerheight=40

// Set the pause (standstill) between the rotations (seconds)

var pause=2

/////////////////////////////////////////////////

// SCRIPT-CONFIGURATION STOPS HERE

/////////////////////////////////////////////////

// do not edit below this line

var maxrotations=2

var step=36

var i_tickerwidth=0

var i_mssg=0

var i=0

var tmr

var maxdegree=maxrotations*360

pause*=1000

function enlarge() {

i+=step

i_tickerwidth+=tickerwidth/(360*maxrotations/step)

if (i_tickerwidth>tickerwidth) {

i_tickerwidth=tickerwidth

}

if (i<=maxdegree && !document.all) {

document.getElementById("dt").innerHTML="<table cellpadding=0 cellspacing=0 width="+tickerwidth+" height="+tickerheight+"><tr><td class='boxstyle'><a href='"+ticker[i_mssg].linkto+"' target='"+target_url+"' class='linkstyle'>"+ticker[i_mssg].message+"</a></td></tr></table>"

document.getElementById("dt").style.MozTransform="rotate("+i+"deg)"

document.getElementById("dt").style.WebkitTransform="rotate("+i+"deg)"

document.getElementById("dt").style.OTransform="rotate("+i+"deg)"

tmr=setTimeout("enlarge()",20)

}

else {

document.getElementById("dt").style.MozTransform="rotate(0deg)"

document.getElementById("dt").style.WebkitTransform="rotate(0deg)"

document.getElementById("dt").style.OTransform="rotate(360deg)"

document.getElementById("dt").innerHTML="<table cellpadding=0 cellspacing=0 width="+tickerwidth+" height="+tickerheight+"><tr><td class='boxstyle'><a href='"+ticker[i_mssg].linkto+"' target='"+target_url+"' class='linkstyle'>"+ticker[i_mssg].message+"</a></td></tr></table>"

clearTimeout(tmr)

i=0

i_tickerwidth=0

i_mssg++

if (i_mssg>ticker.length-1) {

i_mssg=0

}

tmr=setTimeout("enlarge()",pause)

}

}

document.write("<div id='roof' style='position:relative;width:"+tickerwidth+"px;height:"+tickerheight+"px;'>")

if (document.all) {

document.write("<div class='shodowboxie' id='dt' style='width:"+tickerwidth+"px;height:"+tickerheight+"px;background-color:white;'></div>")

}

else {

document.write("<div class='rotatebox' id='dt' style='width:"+tickerwidth+"px;height:"+tickerheight+"px;background-color:white;'></div>")

}

document.write("</div>")

window.onload=enlarge

</script>

<!-- END OF THE CODE FOR THE CSS3 Message Propeller-->

یه چیزی بگم:

موندم کدوم کدت رو تویه وب بزارم

عالی بود

ممنون

موفق باشی

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

کد 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
ارسال تیکت