View from Caedmon Hall onto the Acre

The image should refresh itself automatically. If it does not appear, then reload the page.

Wednesday, June 11, 2008

Live image - embedded in any web site




This live image was embedded here with the following code:

< IFRAME src="http://creativetech.inn.leedsmet.ac.uk/_LiveCam/index.phph=240&w=320" 
height='270' width=320 frameborder='0' >
< IFRAME >


This code snippet can be embedded in any other website. In this specific code it will show a 320x240 image, with the refresh time being encoded in the web site (this will be sometimes subject to change).

The users who embed the image can also parametrize this image more:
< IFRAME 
src="http://creativetech.inn.leedsmet.ac.uk/_LiveCam/index.php?w=320&h=240&r=120&t=Leeds Met"
height='270' width='320' frameborder='0' >
< IFRAME >


The parameters in the URL mean:
w = image with (both width and height parameters will create a resized image)
h = image height
r = refresh time in seconds (if the user wants the update in a certain interval)
t = caption text

In addition to the URL parameters, the IFRAME parameters need to be set properly to include the imave completely (height, width).

A full 640x480 image is shown when no h/w parameter appears in the URL:
< IFRAME 
src="http://creativetech.inn.leedsmet.ac.uk/_LiveCam/index.php"
height='510' width='640' frameborder='0' >
< IFRAME >

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.