JavaScript Source Code 3000: Navigation: Remote Control
Remote Control
Simplify the navigation process on your web site by allowing your visitors to open a small remote control window with links to the sections of your site. And, when they click a link, the remote control closes and they are taken to the page in the main window. Great!
JavaScript Source Code 3000: Navigation: Remote Control
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- FIVE STEPS TO INSTALL REMOTE CONTROL:
1. Copy the first section into the HEAD of your main HTML document
2. Add the next code into the BODY of your HTML document
3. Open a new HTML file and save it as: remote-control.html
4. Paste the remote control HTML code into remote-control.html
5. Modify the links to point to the sections of your web site -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Ronnie T. Moore, Editor -->
<!-- Web Site: JavaScript Source Code 3000 -->
<! >
<! >
<!-- Begin
function showRemote() {
self.name = "main"; // names current window as "main"
var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=0,resizable=0,width=150,height=200";
OpenWindow = window.open("remote-control.html", "remote", windowprops); // opens remote control
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form>
<input type=button value="Open Remote Control" onClick="showRemote();">
</form>
</center>
<!-- STEP THREE: Create a new HTML file and save it as: remote-control.html -->
<!-- STEP FOUR: Paste the following HTML code into your remote-control.html page -->
<!-- Put this in the head of a separate, remote-control.html file -->
<html>
<head>
<script language="JavaScript">
<!-- Begin
function closeRemote() {
timer = setTimeout('window.close();', 10);
}
// End -->
</script>
</head>
<body bgcolor="#ffffcc">
Remote Control
<p><a href="http://javascript.internet.com" target="main" onClick="closeRemote()">Home</a>
<p><a href="http://javascript.internet.com/new/" target="main" onClick="closeRemote()">What's New?</a>
<p><a href="http://javascript.internet.com/faq/" target="main" onClick="closeRemote()">JavaScript FAQs</a>
<p><a href="http://javascript.internet.com/forum/" target="main" onClick="closeRemote()">JavaScript Forum</a>
</body>
</html>
<!-- STEP FIVE: Change links above, but don't change the -->
<!-- target="main" or onClick="closeRemote" sections !! -->
<!-- Script Size: 1.76 KB -->
Wyszukiwarka
Podobne podstrony:
05b E65 Remote Control ServicesRepairing Remote ControlsTCM 225926 tchibo pilot uniwersalny, remote controlIntegration of the blaupunkt RC10 infrared remote control with the P54 system15?5 Remote Control Servicecontrol structures continue12 control statements02 ZELIO CONTROL?TALOGUETest di controllowięcej podobnych podstron