PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : home page صفحه



haji
04-05-2009, 03:49 PM
سلام
من چطوری می تونم کاری کنم وقتی طرف وارد سایت می شه سوال بکنه که آیا این صفحه را برای شما home page بکنم؟ یا نه؟

mhadaily
04-05-2009, 04:20 PM
================================================== ==========
Script: Bookmark This Page Script

Functions:

In IE browsers, the script automatically opens the dialog
to add your bookmark to the visitor's favorites. In other
browsers, the message in the txt variable is shown.

Update 07-03-01: see tech note at end to use an image
instead of text for the link.

Browsers: IE 4.0 and later (degrades gracefully in others)

Author: etLux
================================================== ==========

Put the following script in the body of your page. Set the
font with tags around the script as shown.

<font color="#000000" size="2" face="Arial">
<script>

// (C) 2000 <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
// <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
// Free for all users, but leave in this header

// message to show in non-IE browsers
var txt = &quot;Bookmark Us!&quot;

// url you wish to have bookmarked
var url = &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

// caption to appear with bookmark
var who = &quot;CodeLifter.com Software and Scripts&quot;

// do not edit below this line
// ===========================

var ver = navigator.appName
var num = parseInt(navigator.appVersion)
if ((ver == &quot;Microsoft Internet Explorer&quot;)&amp;&amp;(num &gt;= 4)) {
document.write(&#039;&lt;A HREF=&quot;javascript:window.external.AddFavorite(url,w ho);&quot; &#039;);
document.write(&#039;onMouseOver=&quot; window.status=&#039;)
document.write(&quot;txt; return true &quot;)
document.write(&#039;&quot;onMouseOut=&quot; window.status=&#039;)
document.write(&quot;&#039; &#039;; return true &quot;)
document.write(&#039;&quot;&gt;&#039;+ txt + &#039;&lt;/a&gt;&#039;)
}else{
txt += &quot; (Ctrl+D)&quot;
document.write(txt)
}
&lt;/script&gt;
&lt;/font&gt;

================================================== ==========

Addendum: Using an Image instead of Text for the Link.

You can use an image instead of the text for this link by
using the following in the txt variable:

var txt = &quot;&lt;img src=&#039;some.gif&#039; width=&#039;100&#039; height=&#039;30&#039; border=&#039;0&#039;&gt;&quot;

Use an image name (and full <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> path if needed) as shown
above. Take special care to use single quotes where shown!

================================================== ==========



ببینید این بدرد شما میخوره

mhadaily
04-05-2009, 04:23 PM
یک جستو هم در اینترنت بکنید کد ها ی مشابه زیاد هستن