کد باکس خیلی زیبا
کد:
تشکر یادتون نره
کد:
<!-- 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-->
یه چیزی بگم:
موندم کدوم کدت رو تویه وب بزارم
عالی بود 
ممنون
موفق باشی