Link to home
Start Free TrialLog in
Avatar of Rowby Goren
Rowby GorenFlag for United States of America

asked on

How to I create "consoles"

First of all, some applause for the new look of Experts Exchange.  I especially like the idea of the search feature.

Now my question. How do I create those annoying little boxes which pop up when someone first enters a web site.  Usually they're about one or two inches square. You know, those boses which have little advetisements, which form a different window, and can only be gotten rid of by clicking on the "x" in the upper right corner.  

In think they'ren called consoles.

If I'm not being clear, please ask
ASKER CERTIFIED SOLUTION
Avatar of chewymon
chewymon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chewymon
chewymon

Sorry--

4) should read:  onLoad="navbar()"
Avatar of Rowby Goren

ASKER

Thanks for the quick response, chewymoon.  

 I will accept your answer and give you your points, but will wait until tomorrow in case you want to add some commet or modifications

Rowby
(rowby@earthlink.net
If you go to:

www.geocities.com/SiliconValley/Peaks/8601

Click on the site map link, you will see it in action.
The only difference is that there I chose a click instead instead of automatic load.  Other than that, the code is identical.
I just noticed that I left out the following at the end of the first code snippet.  It has been a long day.  Just add it to the end of the snippet in 2).

// end hiding -->
</SCRIPT>
Just so you know, I tested it in Netscape 3.0 (which I keep on my computer for testing pages, and it worked fine.

thanks.  The console looks great on your site.  I will keep thisn open until tomorrow  in case you have some additional thoughts -- then I'll give you an "EXCELLENT!"  GRADE!

Rowby
Hi, I get the following Java error in netscape communicator 4.5

JavaScript Error: http://testdomain.com/, line 13:

unterminated string literal.

    window.open("mypage.html", JavaScript Error: http://testdomain.com/, line 13:

unterminated string literal.

    window.open("mypage.html", "myRemote","height=450,width=70,resizable=1,screenX=20,left=20,

and at the bottom of the error screen is the usual

...............................^  (with the "^" under the comma of:     mypage.html",


Also, I notice that  onBlur="setTimer()"

appears as text in mypage.html  
Since javascript is case sensitive it is possible that the new communicator is trying to read myRemote as an event handler like onClick.  Try renaming it myremote or anything else in lower case.  If the onBlur shows as text in your page but not in mine, my first guess would be a mistyping of a punctuation mark.  I spent one afternoon debugging a page until I noticed I had a period instead of a comma.  Secondly, in javascript you may use either single quotaion (') or double quotation (") but you must treat them like HTML tags and use the same at both ends.  When nested, then you must use different ones inside a string than are used to enclose the string.    

If the onBlur does not show as text in my page with the same browser you can check the source of my popup at:

/SiliconValley/Peaks/8601/jnavbar.html

That will allow you to view the source and check my BODY tag against yours.

Another thing you might try is that the LANGUAGE attribute usage is changing in the latest standards.  Try this:

<SCRIPT TYPE="text/js" LANGUAGE="javascript">

The browsers that understand TYPE will use it and older versions will use the LANGUAGE declaration.  Hope this helps.

If you check the web for javascript sources, you will notice that the 4.x versions of IE and NN handle it differently.  It would be nice that when a standard is accepted, all the software developers would stick to it.  Oh well.

It also occured to me that if you are not using the proper DOCTYPE, the browser might be refusing to read the newer conventions.  For me the 4.0Transitional seems to work best across platforms and browsers.
I'll check it out. Thanks!