GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/CST2608/_Archive/Lab02/Notes/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Unofficial Ubuntu Starter Guide - How to install DHCP Server for automatic IP addresses assignment?</title> <meta name="description" content="Unofficial Ubuntu Starter Guide - How to install DHCP Server for automatic IP addresses assignment?"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Linuxtopia, Free Linux Book, Ubuntu Enterprise Linux, Ubuntu Starter Guide, Free Ubuntu On-line books"> <script language="JavaScript" type="text/JavaScript" src="/images/myfreetemplates.js"></script> <link href="/styles/linuxtopia.css" rel="stylesheet" type="text/css"> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.linuxtopia.org/linuxtopia.rss"> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-350808-1"; urchinTracker(); </script> <!-- Begin Tribal Fusion Text Links --> <LINK href="http://ctxt.tribalfusion.com/ctxt/textlinks.css" type="text/css" rel="stylesheet"> <SCRIPT> var tf_pubSiteId=87; var tf_maxKeywords=5; </SCRIPT> <SCRIPT src="http://ctxt.tribalfusion.com/ctxt/textlinks.js" type="text/javascript"></SCRIPT> <!-- _End_ Tribal Fusion Text Links --> <div id="search-div"> <form action="http://www.linuxtopia.org/SearchResults.html" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-7393409044112403:n9o0jl-7n7c" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="20" /> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script> </div> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('/images/btn_home_dn.jpg','/images/btn_about_dn.jpg','/images/btn_contact_dn.jpg','/images/btn_products_dn.jpg','/images/btn_support_dn.jpg','/images/btn_news_dn.jpg')"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="87"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="342" rowspan="2"><img src="/images/toplogo.jpg" width="342" height="87"></td> <td width="34" rowspan="2"><img src="/images/topmidspace.jpg" width="34" height="87"></td> <td background="/images/topbg.jpg"><img src="/images/topbg.jpg" width="1" height="54"></td> </tr> <tr> <td background="/images/topnavbg.jpg"> <img src="/images/btn_home.jpg" name="btn_home" width="55" height="33" id="btn_home" onClick="location.href='/index.html'" onMouseOver="MM_swapImage('btn_home','','/images/btn_home_dn.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/navspacer.jpg" width="1" height="33"><img src="/images/btn_library.jpg" name="btn_library" width="67" height="33" id="btn_library" onClick="location.href='/online_books/index.html'" onMouseOver="MM_swapImage('btn_library','','/images/btn_library_dn.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/navspacer.jpg" width="1" height="33"><img src="/images/btn_register.jpg" name="btn_register" width="67" height="33" id="btn_register" onClick="location.href='/register/index.html'" onMouseOver="MM_swapImage('btn_register','','/images/btn_register_dn.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/navspacer.jpg" width="1" height="33"><img src="/images/btn_store.jpg" name="btn_store_dn.jpg" width="83" height="33" id="btn_store" onClick="location.href='/linux_store/index.html'" onMouseOver="MM_swapImage('btn_store','','/images/btn_store_dn.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/navspacer.jpg" width="1" height="33"><img src="/images/blank.jpg" width="21" height="33"><a href="http://feeds.feedburner.com/linuxtopia"><img src="/images/xml_logo.gif" width="29" height="15"></a></td> </tr> </table></td> </tr> <tr> <td valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="/images/topnavbg.jpg"> <tr bgcolor="#297dac"> <td colspan="2" align="center"><table border="0" cellpadding="1"><tr><td> <script src="http://tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=728X90&cwpid=502380&cwwidth=728&cwheight=90&cwpnet=1&cwtagid=11649"></script> </td></tr></table> </td> </tr> <tr width="200"> <td width="200" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#98bfdc" height="20"> <td valign="top" align="center"><h1>Contents</h1></td> </tr> <tr> <td height="1"><img src="/images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td><img src="/images/spacer.gif" width="1" height="1"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20" rowspan="18"><img src="/images/spacer.gif" width="20" height="1"></td> <td><br> <span class="sidelinks">On-line Guides</span></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/index.html">All Guides</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_for_beginners_index.html">Linux for Beginners</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/office_tools_index.html">Office Productivity</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_installation_index.html">Linux Installation</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_security_index.html">Linux Security</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_tools_index.html">Linux Utilities</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_virtualization_index.html">Linux Virtualization</a></td> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_kernel_index.html">Linux Kernel</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_administration_index.html">System/Network Admin</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_programming_index.html">Programming</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_programming_index.html">Scripting Languages</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_devtools_index.html">Development Tools</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/web_development_index.html">Web Development</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/linux_gui_toolkit_index.html">GUI Toolkits/Desktop</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/database_guides_index.html">Databases</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/online_books/mail_systems/postfix_documentation/index.html">Mail Systems</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/linux_store/index.html">Book Store</a></td> </tr> <tr> <td rowspan="10"><img src="/images/spacer.gif" width="20" height="1"></td> <td><br> <span class="sidelinks">How To Guides</span></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/xen_virtualization/index.html">Xen Virtualization</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">General System Admin</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">Linux Security</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">Linux Filesystems</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">Web Servers</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">Graphics & Desktop</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/index.html">PC Hardware</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/HowToGuides/windows/index.html">Windows</a></td> </tr> <tr> <td><img src="/images/arrow.jpg" width="20" height="10"><a class="navlink" href="/ProblemSolutions/index.html">Problem Solutions</a></td> </tr> <tr> <td rowspan="2"><img src="/images/spacer.gif" width="20" height="1"></td> <td> <span class="sidelinks"> <span class="sidelinks"><script type="text/javascript"><!-- google_ad_client = "pub-7393409044112403"; google_alternate_ad_url = "http://www.linuxtopia.org/includes/skyscraper_burst.html"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text_image"; //2007-01-26: Skyscraper Left google_ad_channel = "0582899761"; google_color_border = "98BFDC"; google_color_bg = "2271A0"; google_color_link = "FFFFFF"; google_color_text = "FFFFFF"; google_color_url = "FFFF66"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script language="JavaScript"> <!-- function resize_iframe(id, size) { document.getElementById(id).height=size; document.getElementById(id).height=size; } //--> </script> <script language="Javascript" type="text/javascript"> <!-- Hide script from old browsers pageCount = new Array(0,0,0,0) function writeAdContent() { Adcontent1.document.write("<html><head><\/head><body bgcolor=\"#98bfdc\">") Adcontent1.document.write("<!-- TF 160x600 JScript VAR code -->") Adcontent1.document.write("<center><script language=javascript><!--") Adcontent1.document.write("document.write('<scr'+'ipt language=javascript src=\"http:\/\/a.tribalfusion.com\/j.ad?site=Linuxtopia&adSpace=ROS&size=160x600&type=var&requestID='+((new Date()).getTime() % 2147483648) + Math.random()+'\"><\/scr'+'ipt>');") Adcontent1.document.write("\/\/-->") Adcontent1.document.write("<\/script>") Adcontent1.document.write(" <a href=\"http:\/\/a.tribalfusion.com\/i.click?site=Linuxtopia&adSpace=ROS&size=160x600&requestID=256262336\" target=_blank>") Adcontent1.document.write(" <img src=\"http:\/\/a.tribalfusion.com\/i.ad?site=Linuxtopia&adSpace=ROS&size=160x600&requestID=256262336\"") Adcontent1.document.write("width=160 height=600 border=0 alt=\"Click Here\"><\/a>") Adcontent1.document.write("<\/noscript>"); Adcontent1.document.write("<\/center>"); Adcontent1.document.write("<!-- TF 160x600 JScript VAR code -->"); Adcontent1.document.write("<\/body><\/html>"); Adcontent1.document.close() } function writeAdContent_burst() { } function writeAdContent_burst_offline() { Adcontent1.document.write("<html><head><\/head><body bgcolor=\"#98bfdc\">") Adcontent1.document.write("<!-- BEGIN RAW TAG - 160 x 600 - Linuxtopia.org: Run-of-site - DO NOT MODIFY -->") Adcontent1.document.write("<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=160 HEIGHT=600 SRC=\"http:\/\/ad.bannerconnect.net\/imp?z=10&Z=160x600&s=72461&t=3\"><\/IFRAME>") Adcontent1.document.write("<!-- END TAG -->") Adcontent1.document.close() } // End hiding script from old browsers --> </script> <table> <tr> <td> <iframe id="skyiframe1" src="/includes/noadd.html" bgcolor="yellow" width="160" height="0" name="Adcontent1" align="left" frameborder="0" marginheight="10">Your browser does not support iframes</iframe> </td> </tr> <tr> <td> <iframe id="skyiframe2" src="/includes/skyscraper_adsdaq.html" scrolling="no" width="160" height="610" name="Adcontent2" align="left" frameborder="0" marginheight="10">Your browser does not support iframes</iframe> </td> </tr> <tr> <td> <!--PUT AD HERE IF DESIRED --> </td> </tr> </table> </span></td> </tr> <tr> <td> </tr> </td> </span> </table></td> </tr> </table></td> <td valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="10" colspan="3" background="/images/navbasebg.jpg"><img src="/images/navbasebg.jpg" width="1" height="10"></td> </tr> <tr> <td colspan="3" align="center"> <br> <script type="text/javascript"><!-- google_ad_client = "pub-7393409044112403"; google_alternate_color = "FFFFFF"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2006-10-24: Blue Adblock google_ad_channel = "1679823108"; google_color_border = "98BFDC"; google_color_bg = "2271A0"; google_color_link = "FFFFFF"; google_color_text = "FFFFFF"; google_color_url = "FFFF66"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> <tr> <td width="40"> </td> <td> <p> </p> <!--BEGIN CHAPTER--> <div id=EchoTopic> <table summary="Header navigation table" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <th colspan="3" align="center">The Unofficial Ubuntu Starter Guide</th> </tr> <tr> <td align="left" valign="bottom" width="10%"> <a href="index_191.html" accesskey="P">Prev</a></td> <td align="center" valign="bottom" width="80%"> <a href="index.html">Home</a></td> <td align="right" valign="bottom" width="10%"> <a href="index_193.html" accesskey="N">Next</a></td> </tr> </tbody> </table> <p class="question"><a id="installdhcpserver" name="installdhcpserver">Q: How to install DHCP Server for automatic IP addresses assignment?</a></p> <ol class="answer"> <li>Read <a href="index.html#generalnotes">General Notes</a></li> <li>Read <a href="index_008.html#extrarepositories">How to add extra repositories?</a></li> <li><pre class="description"> e.g. Assumed that "eth0" is the interface for network card IP Address Range: 192.168.0.100 to 192.168.0.200 Subnet Mask: 255.255.255.0 DNS Servers: 202.188.0.133, 202.188.1.5 Domains: tm.net.my Gateway Address: 192.168.0.1</pre></li> <li><pre class="terminal"> sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup sudo gedit /etc/default/dhcp3-server</pre></li> <li>Find this line <pre class="file"> ... INTERFACES=""</pre></li> <li>Replace with the following line <pre class="file"> INTERFACES="eth0"</pre></li> <li>Save the edited file (<a href="sample/dhcp3-server_installdhcpserver" onclick="window.open(this.href,'_blank');return false;">sample</a>)</li> <li><pre class="terminal"> sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup sudo gedit /etc/dhcp3/dhcpd.conf</pre></li> <li>Find this section <pre class="file"> ... # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org; default-lease-time 600; max-lease-time 7200; ...</pre></li> <li>Replace with the following lines <pre class="file"> # option definitions common to all supported networks... #option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org; #default-lease-time 600; #max-lease-time 7200;</pre></li> <li>Find this section <pre class="file"> ... # A slightly different configuration for an internal subnet. #subnet 10.5.5.0 netmask 255.255.255.224 { # range 10.5.5.26 10.5.5.30; # option domain-name-servers ns1.internal.example.org; # option domain-name "internal.example.org"; # option routers 10.5.5.1; # option broadcast-address 10.5.5.31; # default-lease-time 600; # max-lease-time 7200; #} ...</pre></li> <li>Replace with the following lines <pre class="file"> # A slightly different configuration for an internal subnet. subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.100 192.168.0.200; option domain-name-servers 202.188.0.133, 202.188.1.5; option domain-name "tm.net.my"; option routers 192.168.0.1; option broadcast-address 192.168.0.255; default-lease-time 600; max-lease-time 7200; }</pre></li> <li>Save the edited file (<a href="sample/dhcpd.conf_installdhcpserver" onclick="window.open(this.href,'_blank');return false;">sample</a>)</li> <li><pre class="terminal"> sudo /etc/init.d/dhcp3-server restart</pre></li> </ol> <br/> <hr/> <h2><a id="databaseserver" name="databaseserver">Database Server</a></h2> <hr/> <table summary="Footer navigation table" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <th colspan="3" align="center">The Unofficial Ubuntu Starter Guide</th> </tr> <tr> <td align="left" valign="bottom" width="10%"> <a href="index_191.html" accesskey="P">Prev</a></td> <td align="center" valign="bottom" width="80%"> <a href="index.html">Home</a></td> <td align="right" valign="bottom" width="10%"> <a href="index_193.html" accesskey="N">Next</a></td> </tr> </tbody> </table> </div> <!--END CHAPTER--> <script type="text/javascript"><!-- google_ad_client = "pub-7393409044112403"; google_alternate_color = "FFFFFF"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728x15_0ads_al_s"; //2006-10-17: linkunit google_ad_channel = "2539173363"; google_color_border = "98BFDC"; google_color_bg = "FFFFFF"; google_color_link = "000066"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <p> <script language="Javascript" type="text/javascript"> function writeBCBoxAdContent() { BoxAdcontent.document.write("BC"); BoxAdcontent.document.write("<html><head><\/head><body>"); BoxAdcontent.document.write("<!-- BEGIN RAW TAG - 300 x 250 - Linuxtopia.org: Run-of-site - DO NOT MODIFY -->"); BoxAdcontent.document.write("<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC=\"http:\/\/ad.bannerconnect.net\/imp?z=2&Z=300x250&s=72461&t=3\"><\/IFRAME>"); BoxAdcontent.document.write("<!-- END TAG -->"); BoxAdcontent.document.close(); } function writeTribalBoxAdContent() { BoxAdcontent.document.write("<html><head><\/head><body>"); BoxAdcontent.document.write("<!-- TF 336x280 JScript VAR code -->"); BoxAdcontent.document.write("<center><script language=javascript><!--"); BoxAdcontent.document.write("document.write('<scr'+'ipt language=javascript src=\"http:\/\/a.tribalfusion.com\/j.ad?site=Linuxtopia&adSpace=ROS&size=336x280&type=var&requestID='+((new Date()).getTime() % 2147483648) + Math.random()+'\"><\/scr'+'ipt>');"); BoxAdcontent.document.write("\/\/-->"); BoxAdcontent.document.write("<\/script>"); BoxAdcontent.document.write("<noscript>"); BoxAdcontent.document.write("<a href=\"http:\/\/a.tribalfusion.com\/i.click?site=Linuxtopia&adSpace=ROS&size=336x280&requestID=1076511298\" target=_blank>"); BoxAdcontent.document.write("<img src=\"http:\/\/a.tribalfusion.com\/i.ad?site=Linuxtopia&adSpace=ROS&size=336x280&requestID=1076511298\""); BoxAdcontent.document.write("width=336 height=280 border=0 alt=\"Click Here\"><\/a>"); BoxAdcontent.document.write("<\/noscript>"); BoxAdcontent.document.write("<\/center>"); BoxAdcontent.document.write("<!-- TF 336x280 JScript VAR code -->"); BoxAdcontent.document.write("<\/body><\/html>"); BoxAdcontent.document.close(); } </script> <table width="100%"> <tr> <td width="50%"> <script type="text/javascript"><!-- google_ad_client = "pub-7393409044112403"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; //2006-10-24: Blue Box google_ad_channel = "4030855801"; google_color_border = "98BFDC"; google_color_bg = "2271A0"; google_color_link = "FFFFFF"; google_color_text = "FFFFFF"; google_color_url = "FFFF66"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> <td> <script src="http://tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=300X250&cwpid=502380&cwwidth=300&cwheight=250&cwpnet=1&cwtagid=11537"></script> </td> </tr> </table> </td> <td width="25"> </td> </tr> </table></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> </tr> </table></td> </tr> <tr> <td height="2" background="/images/basebg1.jpg"><img src="/images/basebg1.jpg" width="1" height="5"></td> </tr> <tr> <td height="4" valign="top" background="/images/basebg2.jpg"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="2" class="baseline"> Published under the terms of the GNU General Public License</td> <td align="right" class="baseline"><a href="http://www.interspire.com/" class="baseline">Design by Interspire</a> </td> </tr> </table></td> </tr> </table> </body> <script type="text/javascript" lang="JavaScript"> var length = document.documentElement.offsetHeight; var scroll = document.body.scrollHeight; //document.write ("Height = " + scroll ); // if (scroll > 1700) { // resize_iframe('skyiframe1', 620); // writeAdContent(); // } // if (scroll > 2200) { // // resize_iframe('skyiframe2', 620); // writeAdContent2(); // } // if (scroll > 2800) { // // resize_iframe('skyiframe3', 620); // writeAdContent3(); // } // This used to hide and show a ggl skyscraper //if (scroll > 1700) // showdiv('skyscraper2'); // if (scroll > 1600 ) { // writeTribalBoxAdContent(); // } //here you place the ids of every element you want. var ids=new Array('a1','a2','a3','thiscanbeanything'); function switchid(id){ hideallids(); showdiv(id); } function hideallids(){ //loop through the array and hide each element by id for (var i=0;i<ids.length;i++){ hidediv(ids[i]); } } function hidediv(id) { //safe function to hide an element with a specified id if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(id).style.display = 'none'; } else { if (document.layers) { // Netscape 4 document.id.display = 'none'; } else { // IE 4 document.all.id.style.display = 'none'; } } } function showdiv(id) { //safe function to show an element with a specified id if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(id).style.display = 'block'; } else { if (document.layers) { // Netscape 4 document.id.display = 'block'; } else { // IE 4 document.all.id.style.display = 'block'; } } } </script> </html>