1
dean_collins
need help with randomisation of webcam iframe

I need some help with the code below, basically it is a modification of Bassmans webcam module but it now allows for a drop down box which allows you to open multiple cameras instead of only 1.

What I need to do is implement some form of refresh of the iframe at the end.

I understand most times the iframe is on a seperate url but I dont know how to implement the dropdown box selection on 1 page with the iframe on this page.

I could do a meta refresh of the whole page every 60 seconds but if I did that then the selection gets lost and it needs to be redropped and selected again.

If you dont want to write the whole code just an idea on what to do with selecting the drop box elsewhere will be enough to get my going.

TIA,
Dean


<?php
//****************************************************
//Webcam XOOPS Module v.1 by Bassman
//Website: http://www.bassmanthemes.com
//
//
//
//
//****************************************************
include ('../../mainfile.php');
include (
'../../header.php');
?>

<html>
<head>

<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Webcam</title>

</head>

<body>
<p>Welcome to the webcam portal for <a href="http://www.aussienymeetup.net">
www.aussienymeetup.net</a> </p>
<p>We've put together a great selection of webcams for you to view.</p>
<p>Please select from one of the choices below</p>
</body>

<head>

<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>

<FORM 
METHOD=POST onSubmit="return dropdown(this.gourl)"Target="webcamembed">
<SELECT NAME="gourl">
<OPTION VALUE="">Choose a Destination...
<OPTION VALUE="http://203.220.16.174/-wvhttp-01-/GetStillImage"                    >The Rocks (Sydney NSW)
<OPTION VALUE="http://www.thesurfclub.com.au/Webcam/image.jpg"                    >The Surf Club (Mooloolaba QLD)
<OPTION VALUE="http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/034.jpg"        >RTA Harbour Bridge (Sydney NSW)
<OPTION VALUE="http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/016.jpg"          >RTA North Sydney (Sydney NSW)
<OPTION VALUE="http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/180.jpg"        >RTA College St (Sydney NSW)
<OPTION VALUE="http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/034.jpg"        >RTA Anzac Bridge (Sydney NSW)
<OPTION VALUE="http://www.wrl.unsw.edu.au/coastalimaging/argus/narrabn/latest/c5.snap.jpg"    >Narrabeen (Sydney NSW)
<OPTION VALUE="http://61.88.31.20:15001/netsnap.jpg?scale=60"                        >Ulladulla Town Cam (NSW)
<OPTION VALUE="http://www.scenicworld.com.au/webcam/cam3.jpg"                        >Three Sisters (Katoomba NSW)
<OPTION VALUE="http://www.scenicworld.com.au/webcam/KatoombaFalls.jpg"                >Blue Mountains (Katoomba NSW)
<OPTION VALUE="http://home.iprimus.com.au/bexleyboy/webcam.jpg?1127629822136"            >Strathfield Station (Sydney NSW)
<OPTION VALUE="http://insvr1.midcoastwater.com.au/mcwcam.jpg"                        >Midcoast Water (Forster NSW)
<OPTION VALUE="http://insvr1.midcoastwater.com.au/Taree/tareecam.jpg"                    >Midcoast Water (Taree NSW)
<OPTION VALUE="http://www.rosebay.tased.edu.au/webcam/tiny.jpg"                    >Rose Bay School (Tas)
<OPTION VALUE="http://www.transport.tas.gov.au/traffic_updates/CapImg2.jpg"                >Argyle St (Hobert Tas)
<OPTION VALUE="http://www.abc.net.au/webcam/5ancam1.jpg"                        >ABC Adelaide City View (Adelaide SA)
<OPTION VALUE="http://www.transport.sa.gov.au/data/citycam/adelaideview.jpg"            >TSA Adelaide Suburbs View (Adelaide SA)
<OPTION VALUE="http://www.transport.sa.gov.au/data/outer/outer.jpg"                    >TSA Adelaide Harbour View (Adelaide SA)
<OPTION VALUE="http://www.gorgecreekorchards.com.au/web.gif"                        >Gorge Creek Orchards (Mareeba Qld)
<OPTION VALUE="http://www.wrl.unsw.edu.au/coastalimaging/argus/palmqld/latest/c5.snap.jpg"    >Palm Beach Nth (Currumbin Qld)
<OPTION VALUE="http://www.wrl.unsw.edu.au/coastalimaging/argus/palmqld/latest/c1.snap.jpg"    >Palm Beach Sth (Currumbin Qld)
<OPTION VALUE="http://www.wrl.unsw.edu.au/coastalimaging/argus/rainbow/latest/c4.snap.jpg"    >Rainbow Bay (QLD)
<OPTION VALUE="http://www.itsq.com.au/webcam/images/mecure.jpg"                    >Brisbane (QLD)
<OPTION VALUE="http://www.dpi.wa.gov.au/coastaldata/coastcam/livegfx/camswan/live.jpg?0.7415324296011424"        >Swanbourne South Beach (Perth WA)
<OPTION VALUE="http://www.dpi.wa.gov.au/coastaldata/coastcam/livegfx/camcsc/live.jpg?0.6298197066288096"        >Cottesloe Beach (Perth WA)
<OPTION VALUE="http://202.53.36.92/webmedia/smccam4.jpg"                        >Port of Melbourne (Melbourne VIC)
<OPTION VALUE="http://www.lakemountainresort.com.au/cams/lake_mc4.jpg"                >Lake Mountain (Marysville Vic)
<OPTION VALUE="http://www.aad.gov.au/asset/webcams/macca/small/MI0509250517s.jpg"        >Macquarie Island (Australian Antarctic Station)
<OPTION VALUE="http://www.aad.gov.au/asset/webcams/casey/small/C0509250510s.jpg"        >Casey Station (Australian Antarctic Station)
</SELECT>
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>

</head>
</html>



<?php
    OpenTable
();
 echo 
"<center><iframe name="webcamembed" scrolling="auto" width="650" height="490" marginwidth="0" marginheight="0" frameborder="no"></iframe>";
    
CloseTable();

include 
XOOPS_ROOT_PATH.'/footer.php';
?>
.
My Xoops site
www.aussienymeetup.net

Login

Who's Online

161 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits