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

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

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 12:51 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
rjrmaku آفلاین



ارسال‌هاAsnwers : 752
عضویتRegistration date : 4 /12 /1391
حمایت کردهthanks : 203
حمایت شدهThanked : 183
پاسخAnswer 37 : کد دکمه که با کلیک بر روش کدی بیفته توی تکست آریا

خوب الان باکس رنگ رو پر نمیکنم چیکار کنم background-color: دیگه توی تکست آریا نیفته

کد:

<style>

body{color:#000;font-family:Tahoma;font-size:14px}

textarea{background:url("http://up.makuonline.ir/textra.png") repeat scroll 0 0 rgba(0,0,0,0);border:1px dashed #000;border-radius:10px;color:#000;direction:ltr;height:150px;margin-top:15px;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:7px;resize:none;width:500px}

input{background-color:#fff;border:2px solid#000;border-radius:4px;color:#000;direction:ltr;font-family:Tahoma;font-size:11px;font-style:normal;font-weight:700;margin-bottom:5px;margin-top:5px;max-width:100%;padding:6px;text-shadow:none}

select{font-size:16px;max-width:100%}

button{background-color:#3abec0;border:1px solid#3abec0;border-radius:3px;color:#000;cursor:pointer;font-family:tahoma;margin-right:5px;margin-top:10px;padding:5px}

button:hover{background-color:#f81a3d;border:1px solid#3abec0;border-radius:3px;color:#eee;margin-right:5px;margin-top:10px;padding:5px}

textarea:hover{border:1px dashed #3abec0;border-radius:10px;box-shadow:0 0 10px 1px#3abec0;transition:all 0.1s ease 0s}

textarea:focus{border:1px dashed #3abec0;border-radius:10px;box-shadow:0 0 10px 1px#3abec0;transition:all 0.1s ease 0s}

</style>

<head>

<meta charset="utf-8">

<meta http-equiv="Content-Language" content="fa">

</head>

<script>

css_cod_maker={

CSS:0,

listcode:'',

add:function(){

this.CSS++;

CSS=this.CSS;

makuonline=document.createElement('makuonline');

makuonline.innerHTML='<hr>انتخاب نوع id یا class : <select id="classid'+CSS+'"><option value=""></option><option value=".">class</option><option value="#">id</option></select><br>@class or id name:<input style="direction:rtl;" type="text" id="calass_id'+CSS+'" placeholder="class or id name"><br>background-color:<input style="direction:ltr;" id="color'+CSS+'" placeholder="background-color">';

document.getElementById('add_new_cod').appendChild(makuonline);

},

make:function(){

this.listcode='';

for(i=0;i<=this.CSS;i++){

if(document.getElementById('calass_id'+i).value==''){

alert('باکس id یا class را پر نکرده اید');

return;

}

else{

this.listcode+=document.getElementById('classid'+i).value+document.getElementById('calass_id'+i).value+'{\nbackground-color:'+document.getElementById('color'+i).value+'\n}\n\n';

}

}

document.getElementById('end_cod').value='//*css cod maker by makuonline *//\n'+this.listcode+'//*css cod maker by makuonline *//';

}

}

</script>

<center>

<table id="add_new_cod">

انتخاب نوع id یا class : <select id="classid0">

<option value=""></option>

<option value=".">class</option>

<option value="#">id</option>

</select><br>

class or id name: <input id="calass_id0" type="text" style="direction:rtl;" placeholder="class or id name"><br>

background-color: <input id="color0" style="direction:ltr;" placeholder="background-color"><br>

</table>

<br>

<button onclick="css_cod_maker.add();">add new class</button>

<button onclick="css_cod_maker.make();">create cod css</button>

<br>

<textarea id="end_cod"></textarea>

</center>







دوشنبه 24 فروردین 1394 - 13:55
وب کاربر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