
Add a Link to Your Site
Click Here For Associate and Affiliate Programs
<a href="home.html" onMouseOver = "document.homeImage.src='homeLitUp.gif'; return true;" onMouseOut = "document.homeImage.src='homeNormal.gif'; return true;"> <img name="homeImage" src="homeNormal.gif"> </a>
<html>
<head>
<script language="JavaScript"><!--
function showStatus(text) {
window.setTimeout('window.status="' + text + '"', 1);
}
//--></script>
</head>
<body>
<a href="somewhere.htm" onMouseOver="showStatus('status message');return true" onMouseOut="window.status='';return true">link text</a>
</body>
</html>
<html>
<head>
<script language="JavaScript"><!--
function alignRight() {
// can't be done
}
//--></script>
<script language="JavaScript1.1"><!--
function alignRight() {
window.scroll(1000000,0);
}
//--></script>
<script language="JavaScript1.2"><!--
function alignRight() {
window.scrollTo(1000000,0);
}
//--></script>
<body onLoad="alignRight();">
<pre>
012345678901234567890123456780123456789012345678901234567890123456789012345678901234567899012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
</pre>
<body>
</html>
It is usually difficult to avoid the margins browsers will automatically place around your image. If you know the size of the image you wish to place in your pop-up window, the alternative to using the <IMG src="">-tag is using the <BODY background>-tag. Open a window with the size of your image, and create a html-document on-the-fly with the image as a background. Place this function inside the <HEAD> section of your page:
<script language="JavaScript">
function picture(picgoal,picname) {
PicWin=window.open("",picname,'status=0,scrollbars=0,resizable=0,width=100,height=100,screenX=50,screenY=50,top=50,left=50');
PicWin.document.open();
PicWin.document.writeln('<html>');
PicWin.document.writeln('<head>');
PicWin.document.writeln('<title>Picture in a window</title>');
PicWin.document.writeln('</head>');
PicWin.document.writeln('<body background="'+picgoal+'">');
PicWin.document.writeln('</body>');
PicWin.document.writeln('</html>');
PicWin.document.close();
}
</script>
<A HREF="http://www.picture.gif" onClick="picture(this,'picturewindow'); return false"&rt;Click here</A>
<form> <select onChange="if (this.options[this.selectedIndex].value != "") location.href=this.options[this.selectedIndex].value"> <option>--Select a Link-- <option value="http://www.yoursite.org">yoursite.org </select> </form>
<a href="http://www.yoursite.org/" onMouseOver="if (document.images) document.images['theImage'].src='anotherimage.gif';" onMouseOut="if (document.images) document.images['theImage'].src='originalimage.gif';" ><img name="theImage" src="originalimage.gif">
<html>
<head>
<script language="JavaScript"><!--
function playSound() {
if (document.embeds) {
if (navigator.appName == 'Netscape')
document.embeds[0].play();
else
document.embeds[0].run();
}
}
//--></script>
</head>
<body onLoad="playSound();parent.otherframe.location='realpage.html';">
<embed src="sound.mid" hidden=true loop=false autostart=true>
</body>
</html>
<frameset rows="100%,*"> <frame src="about:blank" name="otherframe"> <frame src="sound.htm"> </frameset>
<script language="JavaScript"><!--
var BroW = navigator.appVersion;
//check visitor screen resolution
if (BroW >= 4) {
x = screen.width ; y = screen.height
if (document.layers) {
if ((x >= 800) && (x <= 1028)) {x = 1028}
if ((y >= 600) && (y <= 780)) {y = 780}
if ((x >= 640) && (x <= 800)) {x = 800}
if ((y >= 480) && (y <= 600)) {y = 600}
if (x <= 640) {x = 640}
if (y <= 480) {y = 480}
}
Res = x + "x" + y
} else {
Res = 'unknown'
}
// redirect low resolution
// replace www.yoursite.org/640x480p.htm with your own host and page name
if (Res == '640 + "x" + 480')
location.href="http://www.yoursite.org/640x480p.htm";
//--></script>
<input type="button" name="button" style="width: 200" value="abc">
<SPAN STYLE="cursor:hand; color:blue; text-decoration:underline"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.webmastersink.com/webman');">
Click Here to Make My Site Your Home Page
</SPAN>
<FORM>
<INPUT TYPE="button"
VALUE="Make My Site Your Home Page"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.webmasterwsink.com/webman');">
</FORM>
Visit Web Masters Ink
Supporters of Web Site Theory and Philosophy
webman and webman contents © 1998-2009 Dave Masters