ببینید این بدرد شما میخورهکد:============================================================ 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 [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] // [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] // Free for all users, but leave in this header // message to show in non-IE browsers var txt = "Bookmark Us!" // url you wish to have bookmarked var url = "[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] // caption to appear with bookmark var who = "CodeLifter.com Software and Scripts" // do not edit below this line // =========================== var ver = navigator.appName var num = parseInt(navigator.appVersion) if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) { document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" '); document.write('onMouseOver=" window.status=') document.write("txt; return true ") document.write('"onMouseOut=" window.status=') document.write("' '; return true ") document.write('">'+ txt + '</a>') }else{ txt += " (Ctrl+D)" document.write(txt) } </script> </font> ============================================================ 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 = "<img src='some.gif' width='100' height='30' border='0'>" Use an image name (and full http:// path if needed) as shown above. Take special care to use single quotes where shown! ============================================================





علاقه مندی ها (Bookmarks)