::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 5:59 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
پیشنهاد (01) طراحی ابزار اسلایدر متن جدید
تعداد بازدیدvisits : 166
saman آفلاین



ارسال هاAnswers : 132
عضویتRegistration date : 28 /12 /1390
حمایت کردهThanks : 66
حمایت شدهThanked : 48
پیشنهاد (01) طراحی ابزار اسلایدر متن جدید

سلام.

این کد ابزاری که پیشنهاد میکنم ساخته بشه.....

کد:

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

<!-- java code tablo elanat -->

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

<style>

.textstyle{

/* style attributes for the text */

/* ATTENTION: font-color and background-color must be set within the script */

font-family:traffic;

font-size:20pt;

padding:5px;

text-decoration:none;

}

.textboxstyle{

/* style attributes for the text-box */

/* ATTENTION: width and height must be set within the script */

overflow:hidden;

border-style:solid;

border-width:0px;

border-color:white;

/* shadow for Firefox */

-moz-box-shadow: 5px 5px 8px #AAAAAA;

/* shadow for Safari and Chrome */

-webkit-box-shadow: 5px 5px 8px #AAAAAA;

/* shadow for Opera */

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

/* shadow for Internet Explorer */

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

}

</style>

<!-- END OF STYLE CONFIGURATION -->

<script>

<!-- Beginning of JavaScript -

// CREDITS:

// Flip-Color-Board with lamellar effect

// by Peter Gehrig

// Copyright (c) 2011 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

// IMPORTANT:

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

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

// where this script will be running.

var message= [

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

// START OF CONFIGURATION ZONE

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

// Set your messages and the corresponding links below

// Add as many links as you like

{

text : "کدستان مویسرکس",

linkto : "http://moisrex.rozblog.com"

}, // comma required

{

text : "ترفندستان تریکفا",

linkto : "http://www.trickfa.ir"

} // comma NOT required

]

// target of the message-link.

// Allowed values are "_top", "_blank", "_parent", "_self" or the name of your frame

var target_url="_blank"

// width of scroller (pixels)

var textwidth=300

// height of scroller (pixels)

var textheight=42

// number of lamellas.

var x_slices=20

// two colors (required for the color-flip-effect)

var color1="#cccccc"

var color2="333333"

// pause beween the messages (seconds)

var pause=2

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

// END OF CONFIGURATION ZONE

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

// do not edit below this line

var horizontal_pos=0

var vertical_pos=0

var i_loop=0

var i_message=0

var width_slice=Math.ceil(textwidth/x_slices)

var cliptop=0

var clipbottom=textheight

var i_clipright=1

var content=""

var bg_ticker=new Array(color1,color2)

var font_color=new Array(color2,color1)

var i_color=0

pause=pause*1000

function initiate() {

getcontent()

for (i=0;i<=x_slices;i++) {

document.getElementById("s"+i).innerHTML=content

var thiss=eval("document.getElementById('s"+i+"').style")

thiss.left=0+"px"

thiss.top=0+"px"

}

document.getElementById("whole").style.left=horizontal_pos+"px"

document.getElementById("whole").style.top=vertical_pos+"px"

i_message++

openlamellar()

}

function openlamellar() {

clipleft=-width_slice

clipright=0

if (i_clipright<=width_slice) {

for (i=0;i<=x_slices;i++) {

var thiss=eval("document.getElementById('s"+i+"').style")

thiss.clip ="rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)"

clipleft+=width_slice

clipright=clipleft+i_clipright

}

i_clipright++

var timer=setTimeout("openlamellar()",30)

}

else {

clearTimeout(timer)

document.getElementById("whole").innerHTML=content

var timer=setTimeout("changemessage()",pause)

}

}

function getcontent() {

content="<table cellpadding=0 cellspacing=0 width="+textwidth+" height="+textheight+">"

content+="<tr valign=middle><td bgcolor="+bg_ticker[i_color]+" align='center'>"

content+="<a href='"+message[i_message].linkto+"' class='textstyle' style='color:"+font_color[i_color]+";' target="+target_url+">"

content+=message[i_message].text

content+="</a></td></tr></table>"

}

function changemessage() {

i_color++

if (i_color>1) {i_color=0}

i_clipright=0

clipleft=0

clipright=0

for (i=0;i<=x_slices;i++) {

var thiss=eval("document.getElementById('s"+i+"').style")

thiss.clip ="rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)"

}

if (i_message>message.length-1) {i_message=0}

getcontent()

for (i=0;i<=x_slices;i++) {

document.getElementById("s"+i).innerHTML=content

}

i_message++

openlamellar()

}

document.write("<div align='center' class='textboxstyle' style='position:relative;width:"+textwidth+"px;height:"+textheight+"px;'>")

document.write("<span id='whole' style='position:absolute;'></span>")

for (i=0;i<=x_slices;i++) {

document.write("<span id='s"+i+"' style='position:absolute;'></span>")

}

document.write("</div>")

window.onload=initiate

// - End of JavaScript - -->

</script>

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

<!-- java code tablo elanat -->

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

</center>

سامان
چهارشنبه 20 دی 1391 - 13:44
وب کاربرUser's blog ارسال پیامsend p.m. نقل قولReply سپاس گزارمThanks



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