deadlock Message Board
[ July Full List | Post A Reply ]

how about 2 seperate scripts?
From Andrew on 11 July '02
replying to Re: Script posted by Ted

2 seperate scripts;

print page:
Use this print button to allow your surfers to directly print a
web page simply by clicking on the button!

Directions: Simply copy the below into the <body> section of your
page:

--------------------------------------------------------------------------------

<center>
<SCRIPT Language="Javascript">

function printit(){
if (window.print) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</OBJECT>';

document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting
dialog box WebBrowser1.outerHTML = "";

}
}
</script>

<SCRIPT Language="Javascript">
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
document.write('<form><input type=button value="Print this
Page" name="Print" onClick="printit()">
</form>');

}
</script>
</center>

--------------------------------------------------------

make home page:

<p align="center"><a class="chlnk" HREF="http://www.DESIRED
URL.com"
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.DESIRED
URL.com/');" style="color: #0000FF">
<font face="Verdana"
size="1">
<b>Make

This Your Home Page!</b></font></a>




Your Reply

*Your name:
*Message subject:
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)