Homeowner Loans | Advertising | Remortgaging | Personal Loans | Free Ringtones
HTML and my Webcam [Archive] - ZGeek

PDA

View Full Version : HTML and my Webcam


GendoIkari2
04-03-2004, 09:16 AM
Hey guys, if you have a minute, please check out http://kevskam.tripod.com/ and see the basic design i want to put around my webcam image. the only way i could figure out how to do it was to make a table with 0 borders and its still a pain in the ass, i just gave up. it looks like crap and has to load all 8 images plus the webcam every 15 seconds. obviously, this is no good.
I am using Dreamweaver and am lookin for a way to load the image inside the singular "TV" image that i have, instead of doing the whole splitting it into 8 images thing. This i think will look alot less crapy and such. any help would be awesome!! thanks guys

GendoIkari2
04-03-2004, 09:18 AM
ANOTHER NOTE/QUESTION:
the webcam is using webcam32 to do the image uploading, and I am wondering if theres a way to set it to only upload the image and not reload the entire page, so the other images dont have to reload as well.

hijukal
04-03-2004, 09:48 AM
Change:
<table width="455" height="491" border="0" align="center">

to:
<table width="455" height="491" border="0" align="center" cellspacing="0" cellpadding="0">

Also, in the IMG tags, add:
HSPACE="0" VSPACE="0"
to ensure that there are no gaps around the images; though it probably won't be needed.

Probably the best way to get just the image reloading would be to make it an IFRAME in the middle of the page, and simply reload the frame every n seconds.

GendoIkari2
04-03-2004, 10:06 AM
hey, thanks a lot dude, that helped a lot. I almost got it, but im not home right now and need to edit one or two of the pics. but thanks a bunch for that. now i just gotta figure out how to do the whole IFRAME thing. i should be able to figure it out.

GendoIkari2
04-03-2004, 10:26 AM
kyle, i hate you. hehe, j/j.
but hey, about that IFRAME. the code i found goes as such:
<P ALIGN=center><IFRAME SRC="two.html" WIDTH=300 HEIGHT=100></IFRAME></P>

so my question i guess is, am i able to replace the two.html as shown there is my camp pic image? if so, then where do i put the code for the javascript? OR, do i have to put the cam on a totally seperate page and have it load in the IFRAME?

midg3t
04-03-2004, 10:29 AM
Originally posted by GendoIkari2
do i have to put the cam on a totally seperate page and have it load in the IFRAME? Yes. two.html will be your webcam page with the javascript* or whatever is required.

Javascript sucks bawls. If it's just to refresh the page, use a
<meta http-equiv="refresh" content="10">
tag in the head.

GendoIkari2
04-03-2004, 03:25 PM
ok...so im supposed to have an entirely seperate page for the webcam itself. that page will be displayed in the IFRAME, correct? if thats right, then how will the IFRAME display only the webcam image? i would think it would also display the surrounding page and probably the stupid tripod ad at the bottom. maybe im just stupid, cause im not fantastic with HTML. it seems like such a forkin easy task though...

hijukal
04-03-2004, 07:45 PM
Originally posted by GendoIkari2
ok...so im supposed to have an entirely seperate page for the webcam itself. that page will be displayed in the IFRAME, correct?

Correct. Make 2.html ONLY show the JPEG image when 2.html is viewed on it's own (i.e. if that's all it shows with not viewed through the IFRAME, that's all it will show when viewed through it). Put the META refresh in 2.html as well.

You may need to mess around with DIVs to get the image to get pushed right against the side of 2.html. Something like
<DIV ID="blah" style="position:absolute;left:0;top:0;"><img sec="webcam.jpg"></DIV>
may work though I can't be bothered to fully test. Should be OKish though with a bit of tinkering.

If the Tripod ad only appears at the bottom, you should be OK. If it appears at the top you may need to get a bit fancy with DIV layering and Z-Indexing to make the image appear in front of the ad. This is probably the easiest way without reloading the entire page and without messing around with JavaScript.

GendoIkari2
08-03-2004, 08:00 AM
now i know i dont know all that much about HTML, but this page is just eating my face. I am having a lot of trouble with this with this page. My friend who actually knows a good deal about html cant figure it out. now im having a couple of problems, like for some reason hte page is not showing the TV images as touching but instead seperated by about an inch, and i cant figure out why. then the whole IFRAME thing isnt working out. we are clueless, and im pissed. i think it may be tripod, but i dont know what else to use.