DHTML scripts

DHTML scripts webcam in a popup
 

DHTML script
categories

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers

Add script
Account login

 

Home > Scripts > DHTML scripts & JavaScripts > Windows > Webcam in a popup

 

Webcam in a popup

AUTHORS: Erik Bosrup, webcam addition by Kathleen More
TYPE: Freeware
BROWSERS:
IE 4+, IE 5+, IE 6+, NS 6+

The overLIB script of Erik Bosrup but now modified for webcam and webcam with caption, both in a popup by Kathleen Moore.


EXAMPLES

It takes a sec to load, click on the desired popup style to see the webcam popup window.

a) Webcam in a popup

b) Webcam with caption in the popup


1) Download this ZIP file
with the overlib.js script file and unzip into the appropriate directory.

2) Insert the following code anywhere in the <BODY> section of your page.

then copy (CTRL-C) & paste (CTRL-V)

3) Insert the following HTML code inside the <BODY> section where you want the popup box to appear on your page.

Example a)

then copy (CTRL-C) & paste (CTRL-V)

Example b)

then copy (CTRL-C) & paste (CTRL-V)

4) To change the size of the popup window and the link to the webcam look for this piece of HTML code:

Example a)
<A HREF="javascript:void" onMouseOver="return overlib('<html><head><body><table width=200 height=210><tr><td background=http://www.sunplus.com/fuji/cam/now.jpg><br></td></td></table>')" onMouseOut="nd();">Webcam in a popup window</A>

Example b)
<A HREF="javascript:void" onMouseOver="return overlib('<html><head><body font link=#FFFFFF><table width=200 height=210><tr><td background=http://www.sunplus.com/fuji/cam/now.jpg><br></td></td></table>', CAPTION, 'Mount Fuji Webcam:', FGCOLOR, '#FFFFFF', BGCOLOR, '#000000', BORDER, 3, CAPTIONFONT, 'Arial', TEXTFONT, 'Arial', TEXTSIZE, '2')" onMouseOut="nd();">Webcam with caption in the popup</A>

5) To change the background colors and the border of the popup box in examples a), look for this piece of code in the .js file:

// Main background color (the large area)
// Usually a bright color (white, yellow etc)

if (typeof ol_fgcolor == 'undefined') { var ol_fgcolor = "#CCCCFF";}

// Border color and color of caption
// Usually a dark color (black, brown etc)

if (typeof ol_bgcolor == 'undefined') { var ol_bgcolor = "#333399";}

Have a look also at dhtml_script_43 for other examples using the main overLIB script.


[BACK] [TOP]

 

BLOGS - BOOKMARKS - FONTS - FRIENDS - GAMES - HEADLINES
MUSIC - PIXELS - SCRIPTS - SOFTWARE - SOUNDS - WEB SEARCH

 


Copyright © 1997-2008 SimplytheBest Inc. Legal Disclaimer.
All copyrights acknowledged. All rights reserved.