View Full Version : Sample Code های JavaScript
eyes_shut_number1
پنج شنبه 28 تیر 1386, 23:52 عصر
این تاپیک رو زدم که همه دوستان Sample هایی که از جاوا اسکریپت دارند
اینجا برای بچه ها بذارند
اولیشم خودم میذارم
یه Onmouse over که منو رو باز میکنه
یا علی
<html>
<head>
<style>
.fifteenth{position:absolute;width:170px;backgroun d-color:yellow;border:3px solid black;font:normal 13px Verdana;line-height:19px;z-index:99;visibility:hidden;}.fifteenth a{text-decoration:none;color:red;padding-left:10px;padding-right:10px;}#sixteenth{background-color:highlight;}#sixteenth a{color:white;}
</style>
<script>
var seventeenth=new Array();seventeenth[0]='<div class="fdspoia"><a href="http://StaticMarkets.com">http://StaticMarkets.com</a></div>';seventeenth[0]+='<hr>' (http://StaticMarkets.com">http://StaticMarkets.com</a></div>';seventeenth[0]+='<hr>') ;seventeenth[0]+='<div class="fdspoia"><a href="http://google.com">http://google.com</a></div>';seventeenth[0]+='<div (http://google.com">http://google.com</a></div>';seventeenth[0]+='<div) class="fdspoia"><a href="http://yahoo.com">http://yahoo.com</a></div>';var (http://yahoo.com">http://yahoo.com</a></div>';var) eighteenth=document.all&&navigator.userAgent.indexOf("Opera")==-1;var nineteenth=document.getElementById&&!document.all;var twentieth=document.layers;
function first2(second2,third2){
if (!document.all&&!document.getElementById&&!document.layers)return;fourth2();fifth2=eighteent h? document.all.sixth2 : nineteenth? document.getElementById("sixth2") : twentieth? document.sixth2 : "";fifth2.twentieth3=(eighteenth||nineteenth)? fifth2.style : fifth2;
if (eighteenth||nineteenth)fifth2.innerHTML=third2;
else{fifth2.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="fourth2()" onmouseout="fourth4()">'+third2+'</layer>');fifth2.document.close();}fifth2.nineteenth3=(ei ghteenth||nineteenth)? fifth2.offsetWidth : fifth2.document.gui.document.width;fifth2.first4=( eighteenth||nineteenth)? fifth2.offsetHeight : fifth2.document.gui.document.height;fifteenth3=eig hteenth? event.clientX : nineteenth? second2.clientX : second2.x;sixteenth3=eighteenth? event.clientY : nineteenth? second2.clientY : second2.y;var seventeenth3=eighteenth? document.body.clientWidth-fifteenth3 : window.innerWidth-fifteenth3;var eighteenth3=eighteenth? document.body.clientHeight-sixteenth3 : window.innerHeight-sixteenth3;
if (seventeenth3<fifth2.nineteenth3)fifth2.twentieth3.left=eighteen th? document.body.scrollLeft+fifteenth3-fifth2.nineteenth3 : nineteenth? window.pageXOffset+fifteenth3-fifth2.nineteenth3 : fifteenth3-fifth2.nineteenth3;
else fifth2.twentieth3.left=eighteenth? document.body.scrollLeft+fifteenth3 : nineteenth? window.pageXOffset+fifteenth3 : fifteenth3;
if (eighteenth3<fifth2.first4)fifth2.twentieth3.top=eighteenth? document.body.scrollTop+sixteenth3-fifth2.first4 : nineteenth? window.pageYOffset+sixteenth3-fifth2.first4 : sixteenth3-fifth2.first4;
else fifth2.twentieth3.top=eighteenth? document.body.scrollTop+event.clientY : nineteenth? window.pageYOffset+sixteenth3 : sixteenth3;fifth2.twentieth3.visibility="visible";return false;}
function second4(twelfth4, third4) {while (third4.parentNode)
if ((third4 = third4.parentNode) == twelfth4)return true;return false;}
function fourth4(){
if (window.fifth2)fifth2.twentieth3.visibility=(eight eenth||nineteenth)? "hidden" : "hide";}
function fifth4(second2){
if (eighteenth&&!fifth2.contains(second2.toElement))fourth4();
else if (nineteenth&&second2.tenth4!= second2.ninth4&& !second4(second2.tenth4, second2.ninth4))fourth4();}
function thirteenth4(){
if (eighteenth||nineteenth||twentieth)fourteenth4=set Timeout("fourth4()",9 * eleventh3);}
function fourth2(){
if (window.fourteenth4)clearTimeout(fourteenth4);}
function fifteenth4(second2,eleventh4){
if (document.all)fdstyra=event.srcElement;
else if (document.getElementById)fdstyra=second2.eighth4;
if (fdstyra.fdsiopa=="fdspoia"){fdstyra.id=(eleventh4=="on")? "sixteenth" : "";}
else{while(fdstyra.id!="sixth2"){fdstyra=document.getElementById? fdstyra.parentNode : fdstyra.parentElement;
if (fdstyra.fdsiopa=="fdspoia"){fdstyra.id=(eleventh4=="on")? "sixteenth" : "";}}}}
if (eighteenth||nineteenth)document.onclick=fourth4;
</script>
<title></title>
</head>
<body>
<div id="sixth2" class="fifteenth" onMouseover="fourth2();fifteenth4(event,'on')" onMouseout="fifteenth4(event,'off');fifth4(event)"></div>
<a href='#' onMouseover='first2(event,seventeenth[0])' onMouseout='thirteenth4()'>Menu</a><br>
</body>
</html>
eyes_shut_number1
پنج شنبه 28 تیر 1386, 23:53 عصر
یه منوی سه تایی با High LIght
<html>
<head>
<title></title>
</head>
<body>
<div style="background-color: yellow; layer-background-color: yellow; border: 1px none #000000; position: absolute; border-color: #0000FF; border-style: groove; border-width: 2; cursor: default; color: red;"><nobr>
<span id="first" onClick="doit(1,'click')" onMouseOver="doit(1,'over')" onMouseOut="doit(1,'out')"> http://StaticMarkets.com </span>
<span id="second" onClick="doit(2,'click')" onMouseOver="doit(2,'over')" onMouseOut="doit(2,'out')"> http://google.com </span>
<span id="third" onClick="doit(3,'click')" onMouseOver="doit(3,'over')" onMouseOut="doit(3,'out')"> http://yahoo.com </span>
</nobr></div>
<script>
var firsturl="
شرمنده!!! 7-8 بار ویرایش کردم نشد درست کنم!
eyes_shut_number1
جمعه 29 تیر 1386, 00:01 صبح
امید وارم دوستان یاری کنند و اگه کد ها مشکلی داشت درست کنند!
ممنون
eyes_shut_number1
جمعه 29 تیر 1386, 11:25 صبح
این کد برای بکگراند به صورت رندم هست
<html>
<head>
<script language='Javascript'>
function fifteenth(sixteenth){ seventeenth = '';
for (var eighteenth = 0; eighteenth < 16; eighteenth++) { seventeenth = sixteenth.color[eighteenth].value; if (sixteenth.color[eighteenth].checked){ document.bgColor = seventeenth } } }
function second2(){ document.bgColor = nineteenth(); }
function nineteenth(){ twentieth = new Date(); first2 = twentieth.getSeconds(); if (first2 > 44) first2 = first2 - 45;
else if (first2 > 29) first2 = first2 - 30;
else if (first2 > 16-1) first2 = first2 - 16; if (first2 == 0 ) return 'olive';
else if (first2 == 1 ) return 'lime';
else if (first2 == 2 ) return '#fc45dc';
else if (first2 == 3 ) return 'green';
else if (first2 == 4 ) return 'purple';
else if (first2 == 5 ) return 'gray';
else if (first2 == 6 ) return 'yellow';
else if (first2 == 7 ) return 'aqua';
else if (first2 == 8 ) return 'black';
else if (first2 == 9 ) return 'white';
else if (first2 == 10 ) return 'silver';
else if (first2 == 11 ) return 'teal';
else if (first2 == 12 ) return 'red';
else if (first2 == 3 ) return 'blue';
else if (first2 == 14 ) return 'maroon';
else if (first2 == 15 ) return 'navy'; }
</script>
<title></title>
</head>
<body>
<form>
<input type='button' value='Click to change the page background color' onClick='second2()'>
</form>
</body>
</html>
eyes_shut_number1
جمعه 29 تیر 1386, 11:27 صبح
با این متا تگ میتوننین صفحه رو بعد از مدت مشخص به یه آدرس بفرستین
<meta http-equiv='refresh' content='5; URL=http://staticmarkets.com/html/index1.html'>
eyes_shut_number1
جمعه 29 تیر 1386, 11:34 صبح
با بردن موس روی لینکها رنگ یکگراند رو عوض کنید
<html>
<head>
<title></title>
</head>
<body>
<a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">T</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightslategray'">r</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">y</a> <a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">m</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightblue'">o</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='white'">v</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightslategray'">i</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">n</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">g</a> <a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightblue'">y</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='white'">o</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">u</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">r</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='azure'">c</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">u</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightblue'">r</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='white'">s</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightslategray'">o</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='azure'">r</a> <a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightgreen'">o</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightblue'">v</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='red'">e</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">r</a> <a href="javascript:;"
ONMOUSEOVER ="document.bgColor='white'">t</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightslategray'">h</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='azure'">i</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">s</a> <a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightblue'">t</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='white'">e</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='silver'">x</a><a href="javascript:;"
ONMOUSEOVER ="document.bgColor='lightslategray'">t</a>
</body>
</html>
eyes_shut_number1
جمعه 29 تیر 1386, 11:34 صبح
دوستان اگه در مورد کدها(سمپل ها )سوال داشتین مطرح کنید همچنین اگه مشکلی داشت
یه جوریم نشون بدین از این کار راضی هستین تا دلسرد نشم
ممنون
eyes_shut_number1
جمعه 29 تیر 1386, 11:44 صبح
یه برنامه با سه دکمه که میتونه درایور هاتونو نشون بده
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title></title>
</head>
<body>
<form action='file:///a|/'>
<input type='submit' value='A:\ drive'>
</form><p>
<form action='file:///c|/'>
<input type='submit' value='C:\ drive'>
</form><p>
<form action='file:///d|/'>
<input type='submit' value='D:\ drive'>
</form><p>
</body>
</html>
اگر یکم دستکاریش بکنید میتونه فایلهای توی پوشه رو هم نشون بده و خیلی کارهی دیگه هم بکنه
eyes_shut_number1
شنبه 30 تیر 1386, 00:20 صبح
ممنون! بعد از 36 دیدار هنوز دوستان نه نظری دادن نه...!
باشه پس تا این که معلوم شه اصلا این تاپیک به درد دوستان میخوره یا نه من دیگه پست نمیدم.
ممنون
Behrouz_Rad
شنبه 30 تیر 1386, 00:27 صبح
اگر میخوای به امید نظر و تشکر فعالیتی رو انجام بدی، بهتره انجام ندی. :)
eyes_shut_number1
شنبه 30 تیر 1386, 01:01 صبح
دنبال تشکر نیستم!
مثل این میمونه که تو کامپیوتر خودت بشینی همون چیزایو که درست کردی دوباره درست کنی!
با عقل جور در نمیاد
جالبش اینه که نظر نمیدن بگن اقا اصلا نمیخوایم سمپل واسمون بذاری!!
البته اگه مثل پست شما باشه که کامپیوتر رو میبوسم میذارم کنار ;-) Kidding!
اینم یه سمپل دیگه!
یه افکت نسبتا معمولی برای باز شدن پنجره!
<html>
<head>
<script language='JavaScript' type='text/JavaScript'>
//Made by 1st JavaScript Editor
//http://www.yaldex.com
//Come and get more (free) products
var fifteenth=10;var sixteenth=10;var seventeenth=75;
function eighteenth(nineteenth){twentieth=nineteenth;
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){window.open(nineteenth); return;}first2=window.open('','','scrollbars');fir st2.moveTo(0,0);first2.resizeTo(50,50);second2();}
function second2(){
if (fifteenth>=screen.availHeight-3)seventeenth=0;first2.resizeBy(7,seventeenth);fif teenth+=7;sixteenth+=7;
if (sixteenth>=screen.width-7){first2.location=twentieth;fifteenth=100;sixteen th=100;seventeenth=7;return;}setTimeout('second2() ',60);}
</script>
<title></title>
</head>
<body>
<p><a href="javascript:eighteenth('http://StaticMarkets.com/html/index1.html')">Click to open window</a>
<p><a href="javascript:eighteenth('http://StaticMarkets.com/html/index1.html')">Click to open window</a>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:06 صبح
یک آتو اسکرول واقعا جالب
پیشناهاد میدم حتما تستش کنید
<html>
<head>
<script language='JavaScript' type='text/JavaScript'>
//Made by Eyes_shut_number
//http://www.Staticmarkets.com.com
var fifteenth=2;var sixteenth=3,seventeenth=2,eighteenth=3,nineteenth=-1;
function twentieth(){first2();};
function third2(){
if (document.all){fourth2=document.body.scrollTop;}el se{fourth2=window.pageYOffset;}
if (seventeenth==0){seventeenth=1;}else{seventeenth=0 ;}
if (seventeenth==0){eighteenth=fourth2;}else{nineteen th=fourth2;}
if (eighteenth!=nineteenth){
if (document.all){sixteenth=document.body.scrollTop+f ifteenth;}else{sixteenth=window.pageYOffset+fiftee nth;}window.scroll(0,sixteenth);}else{sixteenth=0; window.scroll(0,sixteenth);}};
function first2(){setInterval('third2()',12);};window.onloa d=twentieth;
</script>
<title></title>
</head>
<body>
<!-- You can remove the code below -->
<h2 align="center"">eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!!eyes_shut_number1@yahoo.com.mx !!!!!!!! fm.1384@yahoo.com !!!!!!!!!!!! <br>
<h2 align="center"">www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! www.StaticMarkets.com (http://www.StaticMarkets.com) !!!!!!!!! .<br>
Creat By Eyes_shut_number
<!-- Stop removing -->
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:09 صبح
تغییر رنک اسکرول بار!
<html>
<head>
<style type='text/css'>
body {
scrollbar-face-color: red;
scrollbar-shadow-color: yellow;
scrollbar-highlight-color: #00FF40;
scrollbar-3dlight-color: #999999;
scrollbar-darkshadow-color: #505050;
scrollbar-track-color: #cccccc;
scrollbar-arrow-color: #cccccc;
}
</style>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<title></title>
</head>
<body>
<!-- eyes_shut_number1 -->
<h2 align="center"">eyes_shut_number1@yahoo.com.mx !!!!!! Staticmarkets.com
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
eyes_shut_number1@yahoo.com.mx (yeyes_shut_number1@yahoo.com.mx) !!!!!! www.Staticmarkets.com
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:13 صبح
قرار دادن متن متحرک در تایتل!
<html>
<head>
<Script Language="JavaScript" Type="Text/JavaScript">
//Made by 1st JavaScript Editor
//http://www.yaldex.com
//Come and get more (free) products
first3=24;second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3);twelfth3=eleventh3-2*second3;
var first2="Eyes_shut_number1";var thirteenth=1;var ninth=1;function fifteenth() {
document.title=first2.substring(twelfth3, thirteenth);
if (thirteenth >= first2.length) {thirteenth=1;window.setTimeout("eighth2()",300); } else {thirteenth++;
window.setTimeout("fifteenth()",60); } }function eighth2() {
document.title=first2.substring(thirteenth, first2.length);
if (thirteenth >= first2.length) {thirteenth=1;
document.title = "\xa0";
window.setTimeout("fifteenth()", 100);
} else {thirteenth++;window.setTimeout("eighth2()", 50);}}window.onload=fifteenth;
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:23 صبح
نمایش ساعات بینولمللی کشور ها در تایتل بار
<html>
<head>
<Script Language="JavaScript" Type="Text/JavaScript">
//Made by eyes_shut_number
var fdsvba = new Array()
fdsvba[0]="Azores,-2";fdsvba[1]="Baghdad,3";fdsvba[2]="Beijing,8";fdsvba[3]="Berlin,2";fdsvba[4]="Buenos Aires,-3";
fdsvba[5]="Chicago,-6";fdsvba[6]="Denver,-7";fdsvba[7]="Hong Kong,8";fdsvba[8]="Honolulu,-10";fdsvba[9]="Johannesburg,2";
fdsvba[10]="Kairo,2";fdsvba[11]="Lima,-5";fdsvba[12]="London,0";fdsvba[13]="Mexico City,-6";fdsvba[14]="Moscow,3";
fdsvba[15]="New York,-5";fdsvba[16]="Paris,1";fdsvba[17]="Perth,8";fdsvba[18]="Rio de Janheiro,-3";fdsvba[19]="San Francisco,-8";
fdsvba[20]="Sydney,11";fdsvba[21]="Tokyo,9";
var third2=600;
var seventh2=10;first3=24;var ninth;var fifth2;var eleventh2;var fdsmba;var nineteenth;var sixteenth2;var fdsxva=0;var fdsqea;
function fdsxma() {
fdsqea=" - ------------------------------------";
for (fdsbya=0;fdsbya<=fdsvba.length-1;fdsbya++) {sixteenth2=fdsvba[fdsbya].split(",");eighteenth3= new Date();ninth=eighteenth3.getUTCHours();
ninth=eval(ninth);fifth2=eval(sixteenth2[1]);nineteenth=eval(fifth2+ninth);if (nineteenth <0) {nineteenth=24+nineteenth}
if (nineteenth >=24) {nineteenth=nineteenth-24}eleventh2=eighteenth3.getUTCMinutes();fdsmba=ei ghteenth3.getUTCSeconds();
if (sixteenth2[0]=='igotec') {eleventh2=eval(eleventh2+30);if (eleventh2>=60) {eleventh2=eval(eleventh2-60);nineteenth=eval(nineteenth+1);}}
if (eval(eleventh2) < 10) {eleventh2="0"+eleventh2}if (eval(fdsmba) < 10) {fdsmba="0"+fdsmba}if (eval(nineteenth) < 10) {nineteenth="0"+nineteenth}
eighteenth3 = nineteenth+":"+eleventh2;fdsqea+=" ------ "+sixteenth2[0]+": "+eighteenth3;}
fdsqea+=" - ------------------------------------";fdsnua();}
function fdsnua() {second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3);twelfth3=eleventh3-2*second3+1;if (fdsxva<=fdsqea.length-1) {
document.title=fdsqea.substring(fdsxva,fdsqea.leng th-twelfth3);
fdsxva=fdsxva+seventh2;var fdsjga=setTimeout("fdsxma()",third2)}else {fdsxva=0;clearTimeout(fdsjga);fdsxma();}}
window.onload=fdsxma;
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:26 صبح
یه افکت بر روی تایتل بار
<html>
<head>
<Script Language="JavaScript" Type="Text/JavaScript">
//eyes_shut_number1
var seventh2=50;first3=24;
var ninth = new Array()
ninth[0]="Eyes_shut_number1"
seventh2=seventh2*10;seventh2=1000-seventh2;var third2=1000;var thirteenth=40;var fourteenth2="\xa0";var fdseba=0;var fdsrqa=0;var twentieth3=thirteenth;var fdsxba="\xa0";var fdseza="\xa0";var fdsuxa=1;
function fdsyea() {second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3);twelfth3=eleventh3-2*second3+1;fdsxba="\xa0";for (fdscna=0;fdscna<twentieth3;fdscna++) {fdsxba+="\xa0";}
for (fdscna=0;fdscna<ninth[fdsrqa].length;fdscna++) {var fdspza=ninth[fdsrqa].substring(fdscna,fdscna+twelfth3);fdspza=fdspza+f dsxba;fdseza+=fdspza;}fdsqma();}
function fdsqma() {
document.title = fdseza;
twentieth3--;if (twentieth3>=0) {fdseza="\xa0";var fdsvia=setTimeout("fdsyea()", seventh2);}else {
clearTimeout(fdsvia);twentieth3=thirteenth;var fdsvia=setTimeout("fdswva()", third2);
}}function fdswva() {fdsrqa++;if (fdsrqa>ninth.length) {fdsrqa=0;}fdsyea();}window.onload=fdsyea;
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:32 صبح
سه تا افکت زیبا بر روی متن (دادن های لایت و سایه و بر جسته کردن )
<html>
<head>
<Script Language="JavaScript" Type="Text/JavaScript">
//Made eyes_shut_number1
function fdsdsa() {fdssda.tenth=setInterval ("fdswza('fdssda')",2);}
function ninth() {
document.title = "\xa0";}
twentieth();
function twentieth() {fdssda={fdscsa:
0,fdssca:"\xa0",second2:1,seventeenth:1,fdseta:-1,fdsvza:-1,fdsyra:-1,fdsqxa:0,fdstua:["Eyes_shut_number1",7,10,1]};}
function fdswza(fdsnca) {first3=24;second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3);twelfth3=eleventh3-second3-9;var fdscta=eval(fdsnca);if (fdscta.fdseta==fdscta.second2) {if (fdscta.seventeenth==fdscta.fdscsa) {clearInterval(fdscta.tenth);
document.title = fdscta.fdssca;return;}
else {if (fdscta.fdscsa>0) fdscta.seventeenth++;fdscta.fdseta=-1;fdscta.fdsvza=fdscta.fdsyra;}}if (fdscta.fdsvza==fdscta.fdsyra) {fdscta.fdseta++;fdscta.fdsrba=fdscta.fdstua[fdscta.fdseta*4];fdscta.fdscua=fdscta.fdstua[fdscta.fdseta*4+1];fdscta.fdsima=fdscta.fdstua[fdscta.fdseta*4+2];fdscta.fdsyra=fdscta.fdstua[fdscta.fdseta*4+3];fdscta.fdsvza=0;fdscta.fdsgya=1;fdscta.fdsqxa=0;} if (twelfth3-fdscta.fdsima-fdscta.fdsqxa==0) {var fdscoa=eval("fdsrka"+fdscta.fdscua+"(fdscta.fdsrba,fdscta.fdsgya++,fdsnca);");fdscta.fdsqxa=0;if (fdscoa!="\xa0")
document.title = fdscoa;
else {fdscta.fdsvza++;fdscta.fdsgya=1;}}fdscta.fdsqxa++ ;}
function fdsrka7(fdslja,fdshpa){if (fdslja.length/2+3<fdshpa) return "\xa0";if (fdslja.length/2<fdshpa) return fdslja;for (var i=0,fdscta="\xa0"; i<fdslja.length/2-fdshpa; i++,fdscta+="\xa0");return fdscta+fdslja.substring(0,fdshpa)+fdslja.substring (fdslja.length-fdshpa,fdslja.length);}
fdsdsa();
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:34 صبح
حرکت متن از گوشه که با هر بار خوردنش به گوشه ها یا دیواره مسیرش عوض میشه!
(دوست عزیزم اقای TABIB گفتن فقط روی IE اجرا میشه)
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made Eyes_shut_number1
document.write("<style type='text/css'>#seventeenth {position:absolute;left:0;top:0;visibility:hide;vi sibility:hidden;font-size:14pt;font-family:Verdana;}</style>");
function fifteenth(){sixteenth();}window.onload=fifteenth;
function eighteenth(){window.location.reload();}window.onre size=eighteenth;var nineteenth='<font color="red">Eyes_shut_number1</font>';var twentieth='';var first2 = 20;var second2;var third2;var fourth2 = 60;var fifth2;var sixth2;var fifteenth3 = 0;var sixteenth3 = 0;var seventeenth3 = 'right';var eighteenth3 = 'down';var nineteenth3 = true;var twentieth3;
function sixteenth() {
if (document.all) {fifth2 = document.body.clientWidth;sixth2 = document.body.clientHeight;document.all('seventeen th').style.visibility = 'visible';second2=seventeenth.offsetWidth;third2=s eventeenth.offsetHeight;}
else if (document.layers) {fifth2 = window.innerWidth;sixth2 = window.innerHeight;second2=document.seventeenth.do cument.width;third2=document.seventeenth.document. height;document.layers['seventeenth'].visibility = 'show';}setTimeout('first4()',400);
if (twentieth!='')setTimeout('second4()',twentieth);}
function first4() {
if (nineteenth3 == true) {third4();
if (document.all) {document.all('seventeenth').style.left = fifteenth3 + document.body.scrollLeft;document.all('seventeenth ').style.top = sixteenth3 + document.body.scrollTop;}
else if (document.layers) {document.layers['seventeenth'].left = fifteenth3 + pageXOffset;document.layers['seventeenth'].top = sixteenth3 + pageYOffset;}fourth4=setTimeout('first4()',20);}}
function third4() {
if (seventeenth3 == 'right') {
if (fifteenth3 > (fifth2 - second2 - first2)) { seventeenth3 = 'left';}}
else if (seventeenth3 == 'left') {
if (fifteenth3 < (0 + first2)) {seventeenth3 = 'right';}}
if (eighteenth3 == 'down') {
if (sixteenth3 > (sixth2 - third2 - first2)) {eighteenth3 = 'up';}}
else if (eighteenth3 == 'up') {
if (sixteenth3 < (0 + first2)) {eighteenth3 = 'down';}}
if (seventeenth3 == 'right') {fifteenth3 = fifteenth3 + first2;}
else if (seventeenth3 == 'left') {fifteenth3 = fifteenth3 - first2;}else {fifteenth3 = fifteenth3;}
if (eighteenth3 == 'down') {sixteenth3 = sixteenth3 + first2;}
else if (eighteenth3 == 'up') {sixteenth3 = sixteenth3 - first2;}else {sixteenth3 = sixteenth3;}}
function second4(){
if (document.all)seventeenth.style.visibility='hidden ';
else if (document.layers)document.seventeenth.visibility=' hide';clearTimeout(fourth4);}
if (document.all||document.layers){document.write('<span id="seventeenth"><nobr>'+nineteenth+'</nobr></span>');}
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:36 صبح
یک نوشته که با تایم اوت خاص هر یک از حروفش بزرگ میشه!
برای جلب توجه یوزر خیلی خوبه مخصوصا برای تبلیغ
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made Eyes_shut_number1
var fifteenth = -1;var sixteenth;var seventeenth;var eighteenth = 250;var nineteenth = new Array();nineteenth[1] = " eyes_shut_number1 ";nineteenth[2] = " EYES_SHUT_NUMBER1 ";
function twentieth() { fifteenth++;
if(fifteenth == 0){ document.first2.second2.value = nineteenth[1]; }
if(fifteenth == 1){ document.first2.second2.value = nineteenth[2].substring(0, 1) +nineteenth[1].substring(23, 1); }
if(fifteenth > 1){ nineteenth[3] = nineteenth[1].substring(0, fifteenth - 1) + nineteenth[2].substring(fifteenth - 1,fifteenth) + nineteenth[1].substring(23, fifteenth); document.first2.second2.value = nineteenth[3]; }
if(fifteenth == nineteenth[1].length){ fifteenth = -1; } sixteenth = setTimeout("twentieth()",eighteenth); }window.onload=twentieth;
</script>
<title></title>
</head>
<body>
<center>
<form name="first2">
<input name="second2" type="text" style="1 background-color: #80ff00; layer-background-color: #80ff00; color: red; border: 1px none #000000; background-color: #CCFFCC; border-color: #FF0000; border-style: solid;" size="30" maxlength="300">
</form>
</center>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 01:37 صبح
Fade In و Fade Out شدن یک متن
(دوست عزیزم اقای TABIB گفتن فقط روی IE اجرا میشه)
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made Eyes_shut_number1
fifteenth = ((navigator.appVersion.indexOf('MSIE')>0) && (parseInt(navigator.appVersion) >= 4));var sixteenth=0, seventeenth=0, eighteenth = 3, nineteenth = 10, first2;
function fifth2(){
if (fifteenth) { sixteenth +=eighteenth; seventeenth+=nineteenth; sixth2=32;
if(seventeenth>100) seventeenth=100;
if(sixteenth>100) { sixteenth=100; eighteenth =-10; nineteenth =-3; sixth2=350; }
if(sixteenth<0) sixteenth=0;
if(seventeenth<0) { seventeenth=0; eighteenth =3; nineteenth =10; sixth2=200; } fifteenth3.style.filter='Alpha(Opacity='+seventeen th+',FinishOpacity='+sixteenth+',style=2)'; first2=setTimeout('fifth2()',sixth2); }} setTimeout('fifth2()',9);
</script>
<title></title>
</head>
<body>
<center>
<div id='fifteenth3' style="width:500px; font-family: 'Courier New', Courier, mono; font-size: 36pt; color: red; Filter:Alpha(Opacity=0,FinishOpacity=0,style=2); background-color: yellow; layer-background-color: yellow; border: 2px none #000000;">Eyes_shut_number1</div>
</center>
</body>
</html>
tabib_m
شنبه 30 تیر 1386, 13:01 عصر
سلام
ممنون بابت سمپل ها
امیدوارم همچنان ادامه داشته باشن
کدی که توی پست شماره ی 18 گذاشتی، همون کد پست قبلیشه، ممنون میشم اگه درستش کنی...
کدهای 19 و 21 هم فقط با IE کار میکنن...
در کل، به خاطر زحماتت ممنون
اگر همه ی این ها رو توی یک فایل زیپ میذاشتی و آپلود میکردی، راحتتر و قابل استفاده تر بود
باز هم ممنون
eyes_shut_number1
شنبه 30 تیر 1386, 13:12 عصر
احتمالان نرفته بوده من دوبار پست زدم
الان درستش میکنم
به نظرم اینطوری واسه بحث رو کد ها بهتره و همچنین سرچ کردن
100% ادامه میدم اگه شما هم یاری کنین
ممنون جناب سید محسن حائری (طبیب زاده) از پیشنهادتون
eyes_shut_number1
شنبه 30 تیر 1386, 14:08 عصر
یک افکت جالب بروی متن که متن رو ار کوچیک به بزرگ نشون میده
البته درست کردنش کار سختی نیست
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made by eyes_shut_number1
function fifteenth(sixteenth){var seventeenth=sixteenth.toUpperCase();
var eighteenth=1;
for (nineteenth=0;nineteenth<seventeenth.length;nineteenth++)
{document.write(seventeenth.charAt(nineteenth).fon tsize(eighteenth).bold());
if (eighteenth<7)eighteenth++;
else eighteenth=1;}}fifteenth('eyes_shut_number1');
</script>
<title></title>
</head>
<body>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 14:10 عصر
یه چیزی شبیه Marquee ولی دیدنی تر چون میتونین متنها را پشت سر هم و بدون delay نمایش بدین
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made by eyes_shut_number1
var fifteenth = null;var sixteenth = false;var seventeenth,eighteenth=0,nineteenth=0;
function fourth2() {var twentieth,first2,second2=' eyes_shut_number1 ';first2=(75/second2.length)+1;
for(twentieth=0;twentieth<=first2;twentieth++) second2+=' '+second2;
document.third2.fourth2.value=second2.substring(ni neteenth,nineteenth+100);
if(nineteenth++==38) nineteenth=0;seventeenth=setTimeout('fourth2()',60 0/10); }
function fifth2() {
if(!eighteenth) {clearTimeout(seventeenth);eighteenth=1; }
else {fourth2();eighteenth=0; } }
window.onload=fourth2;
</script>
<title></title>
</head>
<body>
<form name='third2'>
<input type='text' name='fourth2' size='90'>
</form>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 14:11 عصر
این نوع افکتها که روی متن میاند معروفند به wavetext
<html>
<head>
<script language="JavaScript" type="Text/JavaScript">
//Made by eyes_shut_number1
function fifteenth(){sixteenth();}window.onload=fifteenth;d ocument.write("<Style type = 'text/css'>.nineteenth { color: red;font-family: Verdana;font-size: 12pt;font-weight: normal}</style>");var twentieth;var first2 = true;var second2 = 1;
function sixteenth(){
if (document.all)twentieth = window.setInterval( 'third2()', 120 );}
function third2(){
if ( second2 > 15 || second2 < 1 )first2 = !first2;
if ( first2 )second2++;else second2--;fourth2.filters('wave').phase = second2 * 18;fourth2.filters('wave').strength = second2;}
</script>
<title></title>
</head>
<body>
<div ID = 'fourth2' Style = 'width:600px; filter:wave(add=0, freq=4, light=0, phase=2, strength=5)' class = 'nineteenth'>eyes_shut_number1</div>
</body>
</html>
eyes_shut_number1
شنبه 30 تیر 1386, 14:12 عصر
یک Wavetext دیگه
<html>
<head>
//made by Eyes_shut_number1
<style type = "text/css">
.nineteenth3 { color: red; font-family: "Times New Roman", Times, serif; font-size: 36pt; font-weight: bold}
</style>
<script language="javascript" type="text/javascript">
var fifteenth; var sixteenth = true; var seventeenth = 2;
function eighteenth() {
if (document.all) fifteenth = window.setInterval( "nineteenth()", 150 ); }
function nineteenth() {
if ( seventeenth > 22 || seventeenth < 2 ) sixteenth = !sixteenth;
if ( sixteenth ) seventeenth++; else seventeenth--; twentieth.filters( "wave" ).phase = seventeenth * 22; twentieth.filters( "wave" ).strength = seventeenth; }
window.onload=eighteenth;
</script>
<title></title>
</head>
<body>
<center>
<div ID = "twentieth" Style = "width:650px; filter:wave(add=0, freq=3, light=1, phase=1, strength=6)" class = "nineteenth3">eyes_shut_number1</div>
</center>
</body>
</html>
javad3151
چهارشنبه 24 مرداد 1386, 12:41 عصر
خیلی ممنون، امیدوارم که ادامه بدی
اگر همه ی این ها رو توی یک فایل زیپ میذاشتی و آپلود میکردی، راحتتر و قابل استفاده تر بود
من هم همین نظر رو دارم، اگر توی یه فایل همه رو با هم جمع کنید خیلی بهتره
hector2000
چهارشنبه 24 مرداد 1386, 16:14 عصر
با سلام
کد چند برنامه و بازی جالب را بصورت پیوست ارسال می کنم امیدوارم مورد توجه قرار گیرد.
1-دوتا ماشین حساب
2-بازی snake
3-Rocket blaster
4-minesweeper(مین یاب)
موفق باشید
hector2000
پنج شنبه 27 دی 1386, 23:56 عصر
مبدل تاریخ مبلادی به شمسی
این برنامه از تاریخ 100 میلادی به بعد را حساب می کند.
(http://www.persianscience.ir/)
pesarkhobeee
دوشنبه 01 بهمن 1386, 18:25 عصر
امیدوارم این حرکت ادامه پیدا کنه.
بهر حال خیلی از کدهایی که دوستان در بالا ضمیمه کردن در :
http://www.iranw3.com/codes.asp
هست! و خیلی بیشتر از اون!!!!
پیشنهاد میکنم همه یه نگاه بندازن.
و همچنین به google:
http://www.google.com/search?q=%DA%A9%D8%AF%D9%87%D8%A7%DB%8C+%2B+java+s cript&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
ali_kolahdoozan
دوشنبه 01 بهمن 1386, 18:39 عصر
دوست من نمی خواهم دلسرد و ... بشی اما اینها توی نرم افزارهای مختلف ریختن . اگر کار می خواهی بکنی برو سراغ clientcallback و ... و با اونها سورس برای ajax محض بزار این گلی گلیها همه جا هست .
msadgd
دوشنبه 27 آبان 1387, 23:13 عصر
سلام.
ممنون از زحماتتون.
فقط همه چيز رو گفتيد غير از اوني كه من مي خواستم. من به يك ماركويي marquee احتياج دارم كه از جنس جاوا اسكريپت باشه (از ماركويي استفاده نشه) كه متن اون درواقع متني نباشه كه توي كد جاوا اسكريپت نوشته بشه بلكه يك ليبل Label هست از نوع asp.net كه محتواش هنگام لود صفحه از بانك خونده ميشه و درون ليبل قرار مي گيره. من ميخوام اين متن ليبل به صورت متحرك (و البته از چپ به راست چون فارسي هست) نشون داده بشه. لينكهايي كه دوستان داده بودن هم نتونسيت مسمر ثمر باشه.
ممنون اگه راهنمايي كنيد
Exception
سه شنبه 28 آبان 1387, 20:49 عصر
سلام.
ممنون از زحماتتون.
فقط همه چيز رو گفتيد غير از اوني كه من مي خواستم. من به يك ماركويي marquee احتياج دارم كه از جنس جاوا اسكريپت باشه (از ماركويي استفاده نشه) كه متن اون درواقع متني نباشه كه توي كد جاوا اسكريپت نوشته بشه بلكه يك ليبل Label هست از نوع asp.net كه محتواش هنگام لود صفحه از بانك خونده ميشه و درون ليبل قرار مي گيره. من ميخوام اين متن ليبل به صورت متحرك (و البته از چپ به راست چون فارسي هست) نشون داده بشه. لينكهايي كه دوستان داده بودن هم نتونسيت مسمر ثمر باشه.
ممنون اگه راهنمايي كنيد
سلام.
الان اینو نوشتم برات:
اینو اول توی header صفحه اضافه کن:
<script type="text/javascript">
function rotateText(l,t){
if(typeof(l)=='string')l=document.getElementById(l );
var s=l.innerHTML+' ';
setInterval(function(){s=s.substring(1)+s.substrin g(0,1);l.innerHTML = s;},t);
}
</script>این تابع رو هم سمت سرور اضافه کن:
protected void RotateText(Label l, int ms)
{
l.Page.ClientScript.RegisterStartupScript(
l.GetType(),
"rotateLabel1",
String.Format("rotateText('{0}',{1});", l.ClientID, ms),
true);
}بعدش اینجوری فراخونی کن احتمالا توی Page_Load:
RotateText(Label1, 100);که پارامتر اول اسم Label هست و پارامتر دوم وقفه بین حرکت متن (به میلی ثانیه)
ضمنا اگر خواستی که تمام متن Label از همون اول دیده نشه، اون رو توی یک div مثل این قرار بده:
<div style="width:100px;overflow:hidden;white-space:nowrap">
<asp:Label ID="Label1" runat="server" Text="این یه متن آزمایشی است. اگر نیمتونید این رو بخونید، عیبی نداره!"></asp:Label>
</div>
msadgd
سه شنبه 28 آبان 1387, 22:47 عصر
exeption عزيز از لطفت ممنونم.
اگه اون قسمت سمت سرور رو بتوني با VB بنويسي خيلي ممنون ميشم چون هر كاري كردم نتونستم به vb تبديلش كنم.
مرسي
Exception
چهارشنبه 29 آبان 1387, 01:39 صبح
exeption عزيز از لطفت ممنونم.
اگه اون قسمت سمت سرور رو بتوني با VB بنويسي خيلي ممنون ميشم چون هر كاري كردم نتونستم به vb تبديلش كنم.
مرسي
والله من که خیلی وقته VB.NET کار نمیکنم ولی تا اونجا که یادم میاد، این کد نباید فرقی بکنه تو VB.NET.
کجاش رو مشکل داری؟
janbozorgi
چهارشنبه 29 آبان 1387, 07:53 صبح
ممنون! بعد از 36 دیدار هنوز دوستان نه نظری دادن نه...!
باشه پس تا این که معلوم شه اصلا این تاپیک به درد دوستان میخوره یا نه من دیگه پست نمیدم.
ممنون
سلام
ناراحت نشو از بس تاپیک جذاب بود همه بفکر استفاده بودن نه تشکر و نظر
ادامه بده...
msadgd
چهارشنبه 29 آبان 1387, 10:05 صبح
</script>[/code]این تابع رو هم سمت سرور اضافه کن:
[code] protected void RotateText(Label l, int ms)
{
l.Page.ClientScript.RegisterStartupScript(
l.GetType(),
"rotateLabel1",
String.Format("rotateText('{0}',{1});", l.ClientID, ms),
true);
[/code
سلام
ببين عزيز، اين l چيه؟ يعني l.page يعني چي اينجا رو اشكال ميگيره و توي تعريف void قسمت (label l, int ms) فكر ميكنم اشكال تايپي باشه چون label l معني نميده يا حداقل توي vb معني نميده. كلا اگه قسمت به قسمت يه توضيح كوچولو بدي شايد خودم بتونم تبديلس كنم. البته ببخشيد كه وقتت رو ميگيرم. :خجالت:
ممنونم
emad_67
چهارشنبه 29 آبان 1387, 12:47 عصر
ببين عزيز، اين l چيه؟ يعني l.page يعني چي اينجا رو اشكال ميگيره و توي تعريف void قسمت (label l, int ms) فكر ميكنم اشكال تايپي باشه چون label l معني نميده يا حداقل توي vb معني نميده. كلا اگه قسمت به قسمت يه توضيح كوچولو بدي شايد خودم بتونم تبديلس كنم. البته ببخشيد كه وقتت رو ميگيرم. :خجالت:
فکر کنم ایشون با سینتکس C# نوشته. من خودم vb بلد نیستم ولی شما l رو متغییری از کلاس Lable تعریف کن و int رو هم به همین شکل. l.page هم به رفرنسی به صفحه ای که اون label داخلش هست ایجاد میکنه.
msadgd
چهارشنبه 29 آبان 1387, 14:45 عصر
عماد جان خيلي گلي
ممنون از راهنماييت. با راهنماييت تونستم با VB بنويسمش. خدا خيرت بده.
همينطور از Exeption عزيز به خاطر كار خوبش ممنونم. خيلي برام مفيد بود. خدا خيرت بده.
همينطور بقيه دوستان. كه توي اين تاپيك زحمت كشيدن.
msadgd
چهارشنبه 29 آبان 1387, 15:34 عصر
ببخشيد كه دوباره سوال مي كنم :خجالت:
خواستم ببينم توي روش گفته شده (پست 33) امكان داره كه متن ليبل متحرك، كاملا از كادر خارج بشه و بعد دوباره همون متن متحرك نمايش داده بشه؟
ببخشيد اگه زياد سوال مي كنم. :خجالت:
emad_67
چهارشنبه 29 آبان 1387, 19:49 عصر
اگر به اون شکل میخوای بهتره متن رو توی یه div بزاری و بعد div رو متحرک کنی. این چیزی که الان هست متن حرکت نمیکنه و فقط حرف به حرف نوشته میشه.
Exception
چهارشنبه 29 آبان 1387, 20:06 عصر
ببخشيد كه دوباره سوال مي كنم :خجالت:
خواستم ببينم توي روش گفته شده (پست 33) امكان داره كه متن ليبل متحرك، كاملا از كادر خارج بشه و بعد دوباره همون متن متحرك نمايش داده بشه؟
ببخشيد اگه زياد سوال مي كنم. :خجالت:
الان این به فکرم رسید:
<script type="text/javascript">
function rotateText(l,t){
if(typeof(l)=='string')l=document.getElementById(l );
var s=l.innerHTML.slice(0);var sl=s.length;var i=-sl;
setInterval(function(){i=i>sl?-sl:i+1;if(i<0)l.innerHTML=l.innerHTML.substring(1);else l.innerHTML=s.substring(0,i);},t);
}
</script>
البته اگر انیمیشن درست و حسابی میخوای، راهش همونه که عماد گفت
msadgd
چهارشنبه 29 آبان 1387, 20:57 عصر
Exeption عزيز ممنون اين هم قشنگه :لبخندساده:
عماد جان همونطور كه گفتم متن نمايش داده شده رو از بانك sql مي خونم براي همين نميشه توي يك div قرار بدم. حداقل اينكه من بلد نيستم :خجالت:
راستش چون اولين باره كه دارم از جاوا استفاده ميكنم چيز خاصي به ذهنم نميرسه. ممنون ميشم كمك كنيد. متاسفانه قسمت حساس سايت هست و نميشه حذفش كرد. :بامزه: البته پاك كردن صورت مساله هيچوقت كار درستي نيست. :لبخند:
ازلطف همگي ممنونم.
emad_67
چهارشنبه 29 آبان 1387, 22:19 عصر
عماد جان همونطور كه گفتم متن نمايش داده شده رو از بانك sql مي خونم براي همين نميشه توي يك div قرار بدم. حداقل اينكه من بلد نيستم :خجالت:
مشکلی نیست که، شما یه div بزار و بعد label و هرچی رو میخوای توی اون div قرار بده و bind کن. ما فقط div رو متحرک میکنیم و بعد هرچی توش باشه متحرک میشه. نمونشون سرچ کنی فکر کنم توی اینترنت پیدا کنی. اگر پیدا نکردی بگئ تا بنویسم یه نمونه برات.
رضا قربانی
سه شنبه 02 خرداد 1391, 03:34 صبح
4 سال بعدددددددددد
بکشین بالا و ادامه بدید....
Beginner2013
چهارشنبه 03 خرداد 1391, 08:45 صبح
4 سال بعدددددددددد
بکشین بالا و ادامه بدید....
باید به صورت اعلان می بود
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.