Log in

View Full Version : homepage mod


Ac0l0n
01-22-2007, 10:44 PM
Hey Is There A Hack That Would Ask My Members If They Wanna Make My Forum There Homepage?

cheech47
01-25-2007, 10:15 AM
With the code below you can make a button that bookmarks it, if thats any help

================================================== ==========
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>

// message to show in non-IE browsers
var txt = "Bookmark Us!"

// url you wish to have bookmarked
var url = "http://www.whatever.com";

// caption to appear with bookmark
var who = "Whatever.com"

// 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!

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