فهرست اصلی
موضوعات
آرشیو مطالب
لینکستان
اگر می خواهید با وبسایت ما تبادل لینک کنید لینک ما را با نام " مــوبايل،دانلــــود،مــوزيك،گيم،فيلم و.. " قرار دهید و در بخش تماس با ما و یا نظرات لینک خود را قرار دهید.
کد های جاوا
مرتبط با : کد جاوا
یک تقویم زیبای جدولی
متن در حال روشن و خاموش شدن
فیلتر شکن قوی
ساعت عقربه دار و تاریخ به دنبال موس
مرلین - عروسک کوچک سخنگو در سایت
تغییر رنگ مداوم پشت صفحه
برداشتن تبلیغات بلاگ اسکای
تغییر رنگ پشت صفحه با انتخاب کاربر
نشانگر مشخصات جستجوگر
وقت بخیر فارسی
افکت رقص نور به متن
نمایش متن شما در کنار
موس به صورتی بسیار جالب
افکت رقص نور به متن
افکت رقص نور به متن
یک منو بسیار زیبا نمایش متن به صورت افکت
به حرکت در آوردن آسکرول لاک از بالا به پایین
نما یش لینک به صورت منویی
نمایش متن به صورت افکت
ا ضافه کردن صفحه در بوکمارک
دو خط قرمز بسیار زیبا به دنبال موس
لینک قرار دادن سایت در هوم پیج
از کار انداختن راست کلیک
قرار دادن جستجوگر کلمه در سایت
از چپ به راست بردن اسکرول بار
قرار دادن متن در پنجره ای زیبا
آموزش کپی کردن کدهای جاوا
مرتبط با : کد جاوا
سلام دوستان عزیز
این مطلبی رو که می خوام بگم شاید خیلی ها بلد باشند و این مطلب رو خیلی پیش پا افتاده بدونند ولی یادتون باشه که شما هم یه روزی نمی دونستید پس اینو برای اونایی میگم که توی کپی کردن کدها در قالبشون مشکل دارند.
شاید در جاهای دیگه دیده باشید که گفتند این کدها رو بصورت تگ بادی کپی کنید.
بصورت خیلی ساده یعنی در ابتدای کدی که می خواهید کپی کنید این کد رو قرار بدید .
<html> <title><-BlogTitle-></title> </body>
و در انتهای کد هم این کد رو قرار بدید .
</body> <html>
امیدوارم دیگه مشکلی نداشته باشید.
امتحان کدها بر روي کامپيوتر خود بدون نیاز به اینترنت
مرتبط با : کد جاوا
شايد دوست داشته باشيد قبل از اينکه اسکريپت ها رو در وبلاگتون بکار ببريد اون رو در کامپيوتر خودتون تست کنيد و نتيجه رو ببينيد خوب براحتی ميتوانيد اين کار را انجام دهيد.
براحتی توسط Notepad می توانيد اين کار را انجام دهيد ابتدا Notepad را باز کرده بعد از باز کردن برنامه Notepad . اسکريپتی را که ميخواهيد بر روی کامپيوتر خود تست کنيد را در اين برنامه قرار دهيد ( کپی کنید) و سپس به منوی FIle رفته و سپس بر روی Save As کليک کنيد. نام اين اسکريپت script.html و بعد فايلی را که ذخيره کرده ايد را باز کرده و بدين صورت ميتوانيد نتيجه اسکريپت مورد نظر را مشاهده نماييد....
آموزش کپی کردن کدهای جاوا
مرتبط با : کد جاوا
سلام دوستان عزیز
این مطلب رو قبلا هم گفته بودم ولی آقا سروش دوباره پرسیدند برای همین دوباره گذاشتم
شاید در جاهای دیگه دیده باشید که گفتند این کدها رو بصورت تگ بادی کپی کنید.
بصورت خیلی ساده یعنی در ابتدای کدی که می خواهید کپی کنید این کد رو قرار بدید .
< html > < title ><-BlogTitle -></title > </ body >
و در انتهای کد هم این کد رو قرار بدید .
</ body > < html >
امیدوارم دیگه مشکلی نداشته باشید.
کدهای جاوا
مرتبط با : کد جاوا
Audio
انتخاب کنید -- -- -- -- -- -- -- کدهای موزیک کدهای لینکها کدهای تصاویر کدهای موس کدهای ساعت کدهای یاهو کدهای مختلف
پخش فايل صوتی پس زمينه
کد گذاشتن آهنگ در وبلاگ
مرتبط با : کد جاوا
نکته مهم:هرگز از فرمت هاي پر حجم استفاده نکنيد.بهترين و کم حجم ترين فرمت براي موزيک داخل وبلاگ MIDI هست که البته به صورت بي کلام ميباشد ولي در کل به سرعت باز شدن صفحه لطمه نميزند.اينم ادرس يک سايت براي موزيک هاي MIDI: http://iranianmidi.com
کد اهنگ با کنترل کاربر
کد اهنگ بدون کنترل
کد های جاوا برای متحرک کردن لینکدونی و قسمت پیوندهای وبلاگ
مرتبط با : کد جاوا
برای متحرک کردن لینکدونی یا پیوندهای وبلاگ فقط کافیه این کد رو در قسمت بالای جایی که می خواهید متحرک کنید کپی کنید.
یا اگه بخواهید کل کدهای اون قسمت رو عوض کنید میتونید از این کدهای استفاده کنید
برای دیدن کدها به ادامه مطلب برید.
<-LinkTitle-> آرشیو پیوندهای روزانه
<-LinkTitle->
<BlogLinkDumpBlock>
<MARQUEE onmouseover=stop(); onmouseout=start(); scrollAmount=1 direction=up width="185" height=166 style="text-decoration: none; text-align: center" scrolldelay="2"> <BlogLinks>
<a href="<-LinkUrl->" target="_blank" ><-LinkTitle-></a><br>
</BlogLinks></MARQUEE></BlogLinkDumpBlock></BlogLinksBlock>
اسکریپت های ویژهء جاوا
مرتبط با : کد جاوا
اسکریپت های ویژهء جاوا
دوستان در این صفحه اسکریپت های زیبایی برای شما قرار داده ام .
به شما پیشنهاد می کنم که تمامی این اسکریپت ها را امتحان کنید .
Drop Down
یک منو بسیار زیبا
<!-- START OF Drop Down DHTML -->
<!-- SUMMARY BRIEFS
This DHTML script will create a drop down link box out of
an ordinary link. VERY COOL!!!!
The top portion of this script goes above the <BODY> tag.
The second portion goes where you want the drop down link
box to be.
-->
<style>
<!--
#wrapper{
position:relative;
height:30px
}
#wrapper2{
position:absolute
}
#coffeemenu03{
filter:revealTrans(Duration=1.5,Transition=12)
visibility:hide
}
-->
</style></HEAD>
<BODY>
<ilayer id="coffeemenu01" height=35px>
<layer id="coffeemenu02" visibility=show>
<span id="wrapper">
<span id="wrapper2" onClick="dropit2();event.cancelBubble=true;return false">
<font face="Verdana"><b><a href="notthisbrowser.html">Click Here To Navigate</a></b></font>
</span>
</span>
</layer>
</ilayer>
<script language="JavaScript1.2">
var enableeffect=true
var selection=new Array()
selection[0]='<font face="ARIAL BLACK"><a href="http://www.setayeshnet.blogfa.com">Order Our Stuff</a><br>'
selection[1]='<a href="http://www.setayeshnet.blogfa.com">Contact Us via E-mail</a><br>'
selection[2]='<a href="http://www.setayeshnet.blogfa.com">Help With Our Items</a><br>'
selection[3]='<a href="http://www.setayeshnet.blogfa.com">Products We Have</a><br>'
selection[4]='<a href="http://www.setayeshnet.blogfa.com">Services We Offer</a><br></font>'
if (document.layers)
document.coffeemenu01.document.coffeemenu02.visibility='show'
function dropit2(){
if (document.all){
coffeemenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX
coffeemenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
if (coffeemenu03.style.visibility=="hidden"){
if (enableeffect)
coffeemenu03.filters.revealTrans.apply()
coffeemenu03.style.visibility="visible"
if (enableeffect)
coffeemenu03.filters.revealTrans.play()
}
else{
hidemenu()
}
}
}
function dropit(e){
if (document.coffeemenu03.visibility=="hide")
document.coffeemenu03.visibility="show"
else
document.coffeemenu03.visibility="hide"
document.coffeemenu03.left=e.pageX-e.layerX
document.coffeemenu03.top=e.pageY-e.layerY+19
return false
}
function hidemenu(){
if (enableeffect)
coffeemenu03.filters.revealTrans.stop()
coffeemenu03.style.visibility="hidden"
}
function hidemenu2(){
document.coffeemenu03.visibility="hide"
}
if (document.layers){
document.coffeemenu01.document.coffeemenu02.captureEvents(Event.CLICK)
document.coffeemenu01.document.coffeemenu02.onclick=dropit
}
else if (document.all)
document.body.onclick=hidemenu
</script>
<div id="coffeemenu03" style="position:absolute;left:0;top:0;layer-background-color:#C0C0C0;background-color:#C0C0C0;width:200;visibility:hidden;border:2px solid black;padding:0px">
<script language="JavaScript1.2">
if (document.all)
coffeemenu03.style.padding='4px'
for (i=0;i<selection.length;i++)
document.write(selection[i])
</script>
</div>
<script language="JavaScript1.2">
if (document.layers){
document.coffeemenu03.captureEvents(Event.CLICK)
document.coffeemenu03.onclick=hidemenu2
}
</script>
<!-- END OF Drop Down DHTML -->
Message Reader
نمایش متن به صورت افکت
<!-- START OF Message Reader DHTML -->
<!-- SUMMARY BRIEFS
This DHTML script will cycle through 4 different text links.
You can adjust the text and links below to meet your webpage.
IMPORTANT
Make suer that this body tag is included in your webpage. It
activates the Message Reader.
-->
<body onload="if (document.all||document.layers) {regenerate2();update()}">
<style>
<!--
#msgline{
position:relative;
layer-background-color:black;
width:400;
height:12;
}
#msgtext{
background-color:black;
position:absolute;
border: 1px solid black;
width:400;
height:12;
}
.msgtextfont{
font:bold 16px Arial;
postition:absolute;
left:5px;
text-decoration:none;
color:white;
}
.msgtextfont a{
color:white;
text-decoration:none;
}
-->
</style>
<div id="msgline">
<div id="msgtext" class="msgtextfont">Starting Messages...</div>
</div>
<script language="JavaScript1.2">
var speed=4000
var news=new Array()
news[0]="<a href='http://www.setayeshnet.blogfa.com'>First line of text....</a>"
news[1]="<a href='http://www.setayeshnet.blogfa.com'>Second line of text....</a>"
news[2]="<a href='http://www.setayeshnet.blogfa.com'>Third line of text....</a>"
news[3]="<a href='http://www.setayeshnet.blogfa.com'>Add as many as you want....</a>"
i=0
if (document.all)
tickerobject=document.all.msgtext.style
else
tickerobject=document.msgline.document
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}
function update(){
BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
if (document.layers){
document.msgline.document.msgtext.document.write('<span class="msgtextfont">'+news[i]+'</span>')
document.msgline.document.msgtext.document.close()
}
else
document.all.msgtext.innerHTML=news[i]
if (i<news.length-1)
i++
else
i=0
setTimeout("update()",speed)
}
function BgFade(red1, grn1, blu1, red2,
grn2, blu2, steps) {
sred = red1; sgrn = grn1; sblu = blu1;
ered = red2; egrn = grn2; eblu = blu2;
inc = steps;
step = 0;
MsgDither();
}
function MsgDither() {
var epct = step/inc;
var spct = 1 - epct;
if (document.layers)
tickerobject.bgColor =
Math.floor(sred * spct + ered *
epct)*256*256 +
Math.floor(sgrn * spct + egrn * epct)*256 +
Math.floor(sblu * spct + eblu * epct);
else
tickerobject.backgroundColor=
Math.floor(sred * spct + ered *
epct)*256*256 +
Math.floor(sgrn * spct + egrn * epct)*256 +
Math.floor(sblu * spct + eblu * epct);
if ( step < inc ) {
setTimeout('MsgDither()',50);
}
step++;
}
</script>
<!-- END OF Message Reader DHTML -->
Rolling Credits
به حرکت در آوردن آسکرول لاک از بالا به پایین
<!-- START OF Rolling Credits DHTML -->
<!-- SUMMARY BRIEFS
This example shows how you can create a webpage
that scrolls up. The webpage must be long (vertically)
in order for the effect to work.
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
var position = 0;
function scroller() {
if (position != 320) {
position++;
scroll(0,position);
clearTimeout(timer);
var timer = setTimeout("scroller()",3); timer;
}
else
{
location.replace("#");
}
}
// -->
</SCRIPT>
</HEAD>
<BODY onload="scroller()">
<CENTER>
<font face="VERDANA, ARIAL" size="5" color=804040>Rolling Credits</font><p>
<font face="VERDANA, ARIAL" size="4">This script allows you to:
<HR WIDTH=350 NOSHADE>
<P>
www.setayeshnet.blogfa.com<P>
Place<P> text<P> descriptions<p>
of <P>any <P>sort<p>
and it will <P>scroll up<p>
the page <P>until its done.<p>
<P>
You can even<P>
make <A HREF="http://www.setayeshnet.blogfa.com/">Links.</A><p>
Or<P>
use<P>
images.<p>
<p></font>
</CENTER>
<!-- END OF Rolling Credits DHTML -->
Slide Out
نمایش لینک به صورت منویی
<!-- START OF Slide Out DHTML -->
<!-- SUMMARY BRIEFS
This DHTML script is an entire webpage by itself. Open it
up into a blank webpage and try it out. You can then add
your content around it. Basically, you can have 5 different
"layers" which switch when the user clicks on the appropriate
links. You can adjust the links, colors, and text below.
IMPORTANT
This example has an image. It is found in the CoffeeCup
Software folder on your hard drive.
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
n = (document.layers) ? 1:0
ie = (document.all) ? 1:0
function init() {
slideoutActive = 0
if (n) {
slideout1 = document.slideoutInterface.document.slideoutContent.document.slideoutContent1
slideout2 = document.slideoutInterface.document.slideoutContent.document.slideoutContent2
slideout3 = document.slideoutInterface.document.slideoutContent.document.slideoutContent3
slideout4 = document.slideoutInterface.document.slideoutContent.document.slideoutContent4
slideout5 = document.slideoutInterface.document.slideoutContent.document.slideoutContent5
}
if (ie) {
slideout1 = slideoutContent1.style
slideout2 = slideoutContent2.style
slideout3 = slideoutContent3.style
slideout4 = slideoutContent4.style
slideout5 = slideoutContent5.style
}
slideoutShown = slideout1
slideoutShown.xpos = 0
slideoutNew = "none"
slideoutNew.xpos = -285
}
function slideout(which) {
if (!slideoutActive && slideoutShown != which) {
slideoutActive = 1
slideoutNew = which
slideoutNew.xpos = -285
slideoutLeft()
}
}
function slideoutLeft() {
if (slideoutShown.xpos > -285) {
slideoutShown.xpos -= 15
slideoutShown.left = slideoutShown.xpos
setTimeout("slideoutLeft()",30)
}
else {
hide(slideoutShown)
show(slideoutNew)
setTimeout("slideoutRight()",50)
}
}
function slideoutRight() {
if (slideoutNew.xpos < 0) {
slideoutNew.xpos += 15
slideoutNew.left = slideoutNew.xpos
setTimeout("slideoutRight()",30)
}
else {
slideoutShown = slideoutNew
slideoutActive = 0 // stops the sequence
}
}
function show(showobj) {
if (n) showobj.visibility = "show"
if (ie) showobj.visibility = "visible"
}
function hide(hideobj) {
if (n) hideobj.visibility = "hide"
if (ie) hideobj.visibility = "hidden"
}
//-->
</SCRIPT>
<STYLE TYPE="text/css">
<!--
A {color:#000000; font-family:'Arial'; font-weight:bold; font-size:10pt; text-decoration:none; line-height:20pt;}
STRONG {font-family:'Arial'; font-size:15pt; font-weight:bold; line-height:25pt;}
P {font-family:'Arial'; font-size:10pt; line-height:13pt;}
TD {font-family:'Arial'; font-size:10pt; line-height:13pt;}
#slideoutInterface {position:absolute; left:50; top:50; width:400; height:250; clip:rect(0,400,250,0); background-color:#000000; layer-background-color:#000000; visibility:visible;}
#slideoutSidebar1 {position:absolute; left:5; top:5; width:100; height:30; clip:rect(0,100,30,0); background-color:#9797FF; layer-background-color:#9797FF;}
#slideoutSidebar2 {position:absolute; left:5; top:40; width:100; height:30; clip:rect(0,100,30,0); background-color:#FFFF00; layer-background-color:#FFFF00;}
#slideoutSidebar3 {position:absolute; left:5; top:75; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF80C0; layer-background-color:#FF80C0;}
#slideoutSidebar4 {position:absolute; left:5; top:110; width:100; height:30; clip:rect(0,100,30,0); background-color:#00FF80; layer-background-color:#00FF80;}
#slideoutSidebar5 {position:absolute; left:5; top:145; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF5353; layer-background-color:#FF5353;}
#slideoutContent {position:absolute; left:110; top:5; width:285; height:240; clip:rect(0,285,240,0); background-color:#000000; layer-background-color:#000000;}
#slideoutContent1 {position:absolute; left:0; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:visible;}
#slideoutContent2 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
#slideoutContent3 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
#slideoutContent4 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
#slideoutContent5 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
//-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" onLoad="init()">
<DIV ID="slideoutInterface">
<DIV ID="slideoutSidebar1"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout1)">Contact Us</A></P></DIV>
<DIV ID="slideoutSidebar2"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout2)">Help</A></P></DIV>
<DIV ID="slideoutSidebar3"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout3)">Services</A></P></DIV>
<DIV ID="slideoutSidebar4"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout4)">Products</A></P></DIV>
<DIV ID="slideoutSidebar5"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout5)">Order</A></P></DIV>
<DIV ID="slideoutContent">
<DIV ID="slideoutContent1">
<P ALIGN="CENTER"><STRONG>Contact Us</STRONG>
<P>
<TABLE BORDER=0 WIDTH=275><TD>
You can add <A HREF="http://www.setayeshnet.blogfa.com"><FONT COLOR=BLUE>Links</FONT></A>.
<P>
Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
<P>
Or just use text to explain what you have or what you are doing.
</TD></TABLE>
</P>
</DIV>
<DIV ID="slideoutContent2">
<P ALIGN="CENTER"><STRONG>Help</STRONG>
<P>
<TABLE BORDER=0 WIDTH=275><TD>
You can add <A HREF="http://www.setayeshnet.blogfa.com"><FONT COLOR=BLUE>Links</FONT></A>.
<P>
Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
<P>
Or just use text to explain what you have or what you are doing.
</TD></TABLE>
</P>
</DIV>
<DIV ID="slideoutContent3">
<P ALIGN="CENTER"><STRONG>Services</STRONG>
<P>
<TABLE BORDER=0 WIDTH=275><TD>
You can add <A HREF="http://www.setayeshnet.blogfa.com"><FONT COLOR=BLUE>Links</FONT></A>.
<P>
Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
<P>
Or just use text to explain what you have or what you are doing.
</TD></TABLE>
</P>
</DIV>
<DIV ID="slideoutContent4">
<P ALIGN="CENTER"><STRONG>Products</STRONG>
<P>
<TABLE BORDER=0 WIDTH=275><TD>
You can add <A HREF="http://www.setayeshnet.blogfa.com"><FONT COLOR=BLUE>Links</FONT></A>.
<P>
Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
<P>
Or just use text to explain what you have or what you are doing.
</TD></TABLE>
</P>
</DIV>
<DIV ID="slideoutContent5">
<P ALIGN="CENTER"><STRONG>Order</STRONG>
<P>
<TABLE BORDER=0 WIDTH=275><TD>
You can add <A HREF="http://www.setayeshnet.blogfa.com"><FONT COLOR=BLUE>Links</FONT></A>.
<P>
Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
<P>
Or just use text to explain what you have or what you are doing.
</TD></TABLE>
</P>
</DIV>
</DIV>
</BODY>
</HTML>
<!-- END OF Slide Out DHTML -->
Zoom Message
نمایش متن به صورت افکت
<!-- START OF Zoom Message DHTML -->
<!-- SUMMARY BRIEFS
This example shows how you can create a webpage
that displays lines of text that appear to be
flying out of the webpage. Our example has an image.
IMPORTANT
The image used in this example can be found in the
CoffeeCup Software folder. You do not need an image
for it to work.
-->
<!-- Style Sheet created with the CoffeeCup StyleSheet Maker++ -->
<!-- http://www.coffeecup.com -->
<style type="text/css">
body
{
background-color:#FFFFFF;
font-family: Arial;
font-size:10pt;
}
</style>
<script>
//<!--Change this text-->
text=new Array('www.setayeshnet.blogfa.com','The Best Website')
//<!--This is the number of words in your message-->
var numText=5
//<!--These are the colors the last word will fade to. The first color is the main color.-->
color=new Array('#000000','#2F2F2F','#4F4F4F','#7F7F7F','#408080')
//<!--This is the total number of colors from above.-->
var numColors=5
//<!--This is the size you want the zoom to end at.-->
var endSize=70
//<!--This is the speed you want it to zoom in.-->
var Zspeed=30
//<!--This is the speed the colors will fade.-->
var Cspeed=200
//<!--This is the font of the fade in message.-->
var font='Arial Black'
//<!--This will allow you to have the message stay or go. True will make it go.
// False will make it stay.-->
var hide=false
var size=10
var gonum=0
var ie, n;
if (document.all) {
n=0
ie=1
zoomText='document.all.zoom.innerText=text[num]'
zoomSize='document.all.zoom.style.fontSize=size'
closeIt=""
fadeColor="document.all.zoom.style.color=color[num]"
}
if (document.layers) {
n=1;ie=0
zoomText=""
zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"
closeIt="document.zoom.document.close()"
fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"
}
function zoom(num,fn){
if (size<endSize){
eval(zoomText)
eval(zoomSize)
eval(closeIt)
size+=5;
setTimeout("zoom("+num+",'"+fn+"')",Zspeed)
}else{
eval(fn);
}
}
function fadeIt(num){
if (num<numColors){
eval(fadeColor)
eval(closeIt)
num+=1;
setTimeout("fadeIt("+num+")",Cspeed)
}else{
hideIt()
}
}
function hideIt(){
if(hide){
if(ie)document.all.zoom.style.visibility="hidden"
if(n)document.layers.zoom.visibility="hidden"
}
}
function init(){
if(ie){
document.all.zoom.style.color=color[0]
document.all.zoom.style.fontFamily=font
}
if(ie || n) go(0)
}
function go(num){
gonum+=1
size=10
if(num<numText){
zoom(num,'go('+gonum+')')
}else{
fadeIt(0)
}
}
</script>
</head>
<body onload="init()" bgcolor="FFFFFF">
<CENTER> </CENTER><P>
<div id="zoom" align="center" style="position:absolute; top:150">
</DIV>
<!-- END OF Zoom Message DHTML -->
Add Bookmark
اضافه کردن صفحه در بوکمارک
<!-- START OF Add Bookmark in IE DHTML -->
<!-- SUMMARY BRIEF
This code will allow you to put a link on your
page that, when clicked, will add a URL to the
user's Favorites.
NOTE: This will only work for IE users. It will
NOT work for users using Netscape.
You can change the bookmark link and text in the
var bookmarkurl and var bookmarktitle attributes
below.
You can change the text of the actual link in the
<A HREF> code that you will place for your link
to appear in your page. It is located at the
bottom of this page.
-->
<!-- Put this code inside of your <HEAD> tag. -->
<script language="JavaScript1.2">
<!--
var bookmarkurl="http://www.setayeshnet.blogfa.com/"
var bookmarktitle="-=[ Webloger Web Site ]=-"
function ccaddbookmark() {
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//-->
</script>
<!-- Put this code into your page wherever you want the link to be. -->
<a href="javascript:ccaddbookmark()" target="_self">
<font size="1" face="Arial">[ Add Webloger to your Favorites ]</font>
</a>
<!-- END OF Add Bookmark in IE DHTML -->
Mouse Cursor Crosshairs
دو خط قرمز بسیار زیبا به دنبال موس
<!-- START OF Mouse Cursor Crosshairs DHTML -->
<!-- SUMMARY BRIEF
This DHTML script will make a crosshair to follow
your mouse cursor around.
You can change the color of the crosshair by changing
the color hex codes in the <style> tag in the <head>
of your document.
-->
<!-- Put this portion of the script inside of your <HEAD> tag -->
<style>
<!--
#leftright, #topdown{
position: absolute;
left: 0;
top: 0;
width: 1px;
height: 1px;
layer-background-color: #FF0000;
background-color: #FF0000;
z-index: 100;
font-size: 1px;
}
-->
</style>
<!-- Put this code after your <BODY> tag. -->
<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div>
<div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>
<script language="JavaScript1.2">
<!--
if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}
function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}
function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
//-->
</script>
<!-- END OF Mouse Cursor Crosshairs DHTML -->
Default Start Up Page Link
لینک قرار دادن سایت در هوم پیج
<!-- START OF Default Start Up Page Link (IE) DHTML -->
<!-- SUMMARY BRIEF
This code makes a link that will set the user's
default start up page (homepage) to whatever
link you specify.
You can change the URL (http://www.setayeshnet.blogfa.com)
to anything else you want. You can also change
the Link Text in the code below. Make sure not
to change any other code.
-->
<!-- Put this code wherever you want the link to be in your page. -->
<font face="Tahoma" size="2" color="#008000">
<a class="chlnk" style="cursor:hand; text-decoration:none; font-weight:700"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.setayeshnet.blogfa.com/');">
Click here to make Webloger your default homepage!
</a>
</font>
<!-- END OF Default Start Up Page Link (IE) DHTML -->
Disable Right Click Menu
از کار انداختن راست کلیک
<!-- START OF Disable Right Click Menu DHTML -->
<!-- SUMMARY BRIEF
This code will disable all right click menus
in all browsers and on all operating systems.
-->
<!-- Put this code inside of your <HEAD> tag. -->
<SCRIPT LANGUAGE="JavaScript">
<!--
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}
// -->
</script>
<!-- END OF Disable Right Click Menu DHTML -->
Find In Page Form
قرار دادن جستجوگر کلمه در سایت
<!-- START OF Find In Page Form DHTML -->
<!-- SUMMARY BRIEF
This DHTML script mimics the Find (Ctrl+F)
feature in your browser. It will look in the
current page for whatever text the user inputs.
If it finds the text, it hilights the text so
the user can see it. If it doesn't find the
text, it pops up a javascript alert stating
that the text was not found on the current page.
-->
<!-- Put this portion of the script inside of your <HEAD> tag -->
<script language="JavaScript">
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("Not found.");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert("Not found.");
}
}
return false;
}
</script>
<!-- Put this code into your page where you want the search form to appear. -->
<form name="search" onSubmit="return findInPage(this.string.value);">
<font size=3><input name="string" type="text" size=15 onChange="n = 0;"></font>
<input type="submit" value="Find">
</form>
<!-- END OF Find In Page Form DHTML -->
Left-to-Right Page Scroll
از چپ به راست بردن اسکرول لاک
<!-- START OF Left-to-Right Page Scroll DHTML -->
<!-- SUMMARY BRIEF
This code will automatically scroll the page
from left to right in the browser window.
You can change the speed that the page scrolls
by changing the var speed attribute in the code.
Do not use negative numbers!
-->
<!-- Put this code inside of your <HEAD> tag. -->
<script language="JavaScript1.2">
<!--
// Change the scrolling speed by changing the var speed attribute below.
// The higher the number, the faster the page will scroll.
// Do not use negative numbers!
var speed=2
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startscroll()
}
function leftrightscroll(){
if (document.all)
temp=document.body.scrollLeft
else
temp=window.pageXOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollLeft+speed
else
currentpos=window.pageXOffset+speed
window.scroll(currentpos,0)
}
else{
currentpos=0
window.scroll(currentpos,0)
}
}
function startscroll(){
setInterval("leftrightscroll()",10)
}
window.onload=initialize
//-->
</script>
<!-- END OF Left-to-Right Page Scroll DHTML -->
Scrollable Embedded Window
قرار دادن متن در پنجره ای زیبا
<!-- START OF Scrollable Embedded Window DHTML -->
<!-- SUMMARY BRIEF
This DHTML script will put a small, fixed,
scrollable window into your page. You can
change the height, width, background color
and content of the window.
How to configure the script:
The width of the "window" is 170 and the
height is 150. To alter the height and width
of the window, change ALL instances of 170 to
another value, and the same for 150 (it'll be
faster if you just do a search-and-replace).
You can also give the window a different
background color by changing "white" to another
color name or hex code. Also, change the text
to whatever you want by replacing the text (you
can use HTML as well) inside of the <DIV> tag.
-->
<!-- Put this code into your page wherever you want the small window to be. -->
<ilayer name="scroll1" width=170 height=150 clip="0,0,170,150">
<layer name="scroll2" width=170 height=150 bgColor="white">
<div id="scroll3" style="width:170;height:150;background-color:yellow;overflow:scroll">
This is a nifty little script that allows you to put any content you want within a scrollable mini "window". This will allow you to save valuable screen space while making your page more "interactive".
<br><br>
This script uses two different techniques, one for Internet Explorer and one for Netscape, to create the scrollable window.
<br><br>
IE 4+ users will be able to use scrollbars to scroll the window, while Netscape users will have to use the "up" and "down" buttons instead (since Netscape does not support the adding of scrollbars to the "window" contents).
</div>
</layer>
</ilayer>
<script>
var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-150>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}
function clearup(){
if (window.temp2)
clearInterval(temp2)
}
function cleardown(){
if (window.temp)
clearInterval(temp)
}
</script>
<br><span style="display:none" style=&{nsstyle};><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+150;return false">Bottom</a></span>
<!-- END OF Scrollable Embedded Window DHTML -->
آخرین مطالب ارسالی
امکانات
خوش آمديد ميهمان
آمار بازديد:
بازديد کلي :
نویسندگان :
لینک دوستان
تبلیغات متنی
مکان تبليغات شما
شما مي توانيد با کمترين هزينه در اين مکان تبليغ خود را قرار دهيد.
مکان تبليغات شما
شما مي توانيد با کمترين هزينه در اين مکان تبليغ خود را قرار دهيد.