Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Building the Imperfect Beast: Part 2 (popups.html)

January 19, 1999

Now we begin to walk through the code which comprises popups.html. As we walk through each block of code in sequence the logic of this file should become clear.

Creating the window title
<!-- Pop up menu contents ... custom coded for Insure.com -->
<!-- Design and implementation: Aaron Weiss (aaron@pobox.com)
December 1998-->
<html><head>
<script language="JavaScript1.2">
 document.write("<title>Select a story");
 for (j=0;j<75;j++){document.write("&nbsp;")}
 document.write("</title>");
</script>

When the browser spawns a new window that window's title always appears with either "Netscape" or "Internet Explorer" appended to it, the browser's way of branding itself. The client does not like this. So, the code begins by using JavaScript to write an on-the-fly <title> tag for the page which cleverly inserts 75 spaces after the text, thereby pushing the browser brand off the titlebar. Inelegant, to say the least, but our only choice.

Building the Imperfect Beast: Part 1 (menus.js)
DHTML Pop-Up Menus: A Parable of Triumph and Loss (Based on a True Story)
Defining a stylesheet for the menus


Up to => Home / Authoring / DHTML / Menus




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers