انجمن‌های فارس وب

نسخه کامل: اسکریپت های رابط مرورگر - جاوا اسکریپت
شما در حال بازدید از بایگانی ارسال های انجمن هستید این نسخه کامل نیست : برای مشاهده نسخه کامل اینجا کلیک کنید
نوشته چشمکزن در استاتوس بار برای این کار این کود را زیر تگ <head>
بگذارید

نقل قول:
<script language="JavaScript">
<!--
/* attached.
  
   ©
*/
var yourwords = "Thank you for visiting my site!";
var speed = 150;
var control = 1;
function flash()
{
  if (control == 1)
    {
      window.status=yourwords;
      control=0;
    }  
  else
    {
      window.status="";
      control=1;
    }
  setTimeout("flash();",speed);
}
// -->
</script>


و تگ <body>را به تگ  <body onload=flash();"2>

با این کد میتونید همراه با باز شدن وبلاگتون صفحه دیگه ای هم باز کنید



در جایی که نوشته شده your title باید عنوان سایت یا وبلاگتون رو بذارید و در جایی که نوشته



your site آدرس سایتتون یا وبلاگتون رو وارد کنید و در قسمت your text جمله خودتون رو



و در قسمت your mail ایمیلتون رو و در قسمت http://your site.com آدرس وبلاگ یا سایتتون رو



و درست جلوش در قسمت your name site اسم سایتتون رو بنویسید



<SCRIPT LANGUAGE="JavaScript">
<!--
coffeeWin=window.open("","coffeeWin","toolbar=no,width=500,height=500,director ies=no,menubar=no,SCROLLBARS=yes");
coffeeWin.document.write("<HTML>");
coffeeWin.document.write("<HEAD>");
coffeeWin.document.write("<title>your title</title>");
coffeeWin.document.write("</HEAD>");
coffeeWin.document.write("<BODY BGCOLOR=#8080FF TEXT=#FFFFDD>")
coffeeWin.document.write("<CENTER>")
coffeeWin.document.write("<FONT FACE=Times New Roman SIZE=5>");
coffeeWin.document.write("<B>");
coffeeWin.document.write("<FONT SIZE=5>your site</FONT>");
coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>");
coffeeWin.document.write("<P>");
coffeeWin.document.write("your text");
coffeeWin.document.write("<P>");
coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>");
coffeeWin.document.write("<FONT FACE=Times New Roman SIZE=3>");
coffeeWin.document.write("E-mail:<br>");
coffeeWin.document.write("your mail");
coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>");
coffeeWin.document.write("<A HREF=http://your site.com TARGET=MAIN>your name site</A>");
coffeeWin.document.write("</B>");
coffeeWin.document.write("</FONT>");
coffeeWin.document.write("</BODY>");
coffeeWin.document.write("</HTML>");
//-->
</SCRIPT></body>
</html>

برداشتن راست کلیک و گذاشتن منو باید این کد را در زیر تگ <head>

قرار دهید

<style>
<!--
.skin0 {
position:absolute;
text-align:left;
width:200px;
border:2px solid black;
background-color:menu;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.skin1 {
cursor:default;
font:menutext;
position:absolute;
text-align:left;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
width:120px;
background-color:menu;
border:1 solid buttonface;
visibility:hidden;
border:2 outset buttonhighlight;
}
.menuitems {
padding-left:15px;
padding-right:10px;
}
-->
</style>

<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Web Site:  http://www.Ehsansoft.phpbb24.com -->

<!-- This script and many more are available free online at Ehsansoft -->
<!-- The JavaScript Source!! http://Ehsansoft.phpbb24.com -->

<!-- Begin
var menuskin = "skin1"; // skin0, or skin1
var display_url = 0; // Show URLs in status bar?
function showmenuie5() {
var rightedge = document.body.clientWidth-event.clientX;
var bottomedge = document.body.clientHeight-event.clientY;
if (rightedge < ie5menu.offsetWidth)
ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth;
else
ie5menu.style.left = document.body.scrollLeft + event.clientX;
if (bottomedge < ie5menu.offsetHeight)
ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight;
else
ie5menu.style.top = document.body.scrollTop + event.clientY;
ie5menu.style.visibility = "visible";
return false;
}
function hidemenuie5() {
ie5menu.style.visibility = "hidden";
}
function highlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "highlight";
event.srcElement.style.color = "white";
if (display_url)
window.status = event.srcElement.url;
   }
}
function lowlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "";
event.srcElement.style.color = "black";
window.status = "";
   }
}
function jumptoie5() {
if (event.srcElement.className == "menuitems") {
if (event.srcElement.getAttribute("target") != null)
window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
else
window.location = event.srcElement.url;
   }
}
//  End -->
</script>


و این کد را در زیر تگ <body> قرار می دهید

<div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5();">
<div class="menuitems" url="javascript:history.back();">بازگشت به عقب</div>
<div class="menuitems" url="http://Your Weblog">رفتن به خانه</div>
<hr>
<div class="menuitems" url="http://forum.bonyanalam.ir">فورم سایت</div>
<div class="menuitems" url="http://Your Link">قوانین سایت</div>
<hr>
<div class="menuitems" url="http://Fun pic">تصاویر جالب</div>
<div class="menuitems" url="http://Your Weblog">ورود به وبلاگ</div>
</div>
<script language="JavaScript1.2">
if (document.all && window.print) {
ie5menu.className = menuskin;
document.oncontextmenu = showmenuie5;
document.body.onclick = hidemenuie5;
}
</script>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts By Ehsansoft<br>
by <a href="http://ehsansoft.phpbb24.com">The JavaScript Source Whith Ehsansoft</a></font>
</center><p>


در کدی که باید در تگ <body> قرار دهید گزینه های your blog Fun pic Your link ra bayda خودتان پر کنید

مرجع آدرس ها