[ acky.net logo ]
Archives
-JavaScripts
-TCL Scripts
-Visual Basic
-CGI Scripts
-Graphics
-Sound Clips

Tutorials
-PhotoShop
-Flash
-JavaScript
-HTML
-IRC/Eggdrops
-Visual Basic
-Perl

Reference
-Windows Tips
-Internet Tips
-Easter Eggs
-Glossary

Listings
-Shell Search

Web Forums
-Announcements
-Shells/Eggdrops
-Visual Basic
-PhotoShop
-Windows Help
-Flash
-HTML
-CGI

Other Services
-Advertise
-Affiliates
-Contacts
-Link to Us
-Report Bugs
-Volunteers
-Web Developing
-Credits


Pop-up windows (with a little help from JavaScript)
Wouldn't it be nice to pop-up a little window from your web pages to display messages once in a while (rather than jumping to another page)?

Well, it's very easy to do using JavaScript.
First of all, click the following link to see an example of our pop-up window:

Back to the top of the page...

Now, let's take a simple HTML anchor tag like the one below:

<A href="#back_to_the_top">

Back to the top of the page...

</A>

and convert it so that it can display a pop-up window when clicked:

<A href="#back_to_the_top" 

OnClick = "hint_wnd = window.open( '', 

'hint_wnd', 'width=50, height=60, resizable=no, scrollbars=no' );
hint_wnd.document.write( 'Hello there!'); return true;"
> Back to the top of the page... </A>

As you can see, we simply added an "OnClick" event tag, made it open a window named "hint_wnd," and finally wrote the string "Hello, there!" to the "hint_wnd" window.

Test it!  Back to the top of the page...


http://www.bsdshellz.net/
http://www.bsdshellz.net/

Email This Page To A Friend

Last updated: Monday, November 27, 2006 - 11:02 AM Eastern Daylight Time
Legal | Privacy Statement | Problems & Questions | Advertise | Link to us
© 1997-2007, All Rights Reserved.


Dedicated Server Provided by HighSpeedHosting