Results 1 to 15 of 15
Put an image over the top of something? Forum: Myspace ForumReplies: 3
Having trouble adding top image over background image Forum: Myspace ForumReplies: 3
image Forum: Graphics ForumReplies: 1
How do I swap an image for BOTH an image and a sound? Forum: Website Scripts ForumReplies: 1
01-31-2003, 08:05 PM #1
Need Help! Image from another source displays if first image errors...
Basically, I have a webcam on my website. And what I want to do is have a Webcam Offline image to display when it's not online. To put in a img of the current capture from the webcam, all i have to do is use a normal img tag, only have it point to my IP (img src="ip"). When the webcam is offline, it errors and gives the little red X. Now, I know this exists because I've used it before, and I lost the code. I remember it being OnError="" or something like that... if anyone can help, please do
01-31-2003, 08:23 PM #2
This script may be of help...may not
let me know
01-31-2003, 11:23 PM #3
no, that's not what I need. I know that all you do is add a simple code to the end of the <img> tag, something like <img src="12.250.***.***" OnError="offline.jpg">
its something like OnError= but im not sure
02-01-2003, 03:37 AM #4
if anyone finds out, reply here please. i would like to know too
02-01-2003, 09:56 AM #5
This only works on browsers with good DOM -
02-01-2003, 01:28 PM #6
02-02-2003, 12:04 AM #7
wait... it doesnt work... whenever i put it on a server (it works fine when i open the .html file locally) it just keeps trying to load it then IE errors saying "Stack Overflow"
02-02-2003, 06:53 AM #8
Dyu wanna post your version here so we can see?
02-02-2003, 04:16 PM #9
02-02-2003, 04:29 PM #10
Sorry, i meant your version of the script.
The error from IE will happen if there is an error.
Its looping, when you get an error (like, the file does not exist) it calls the function. If the function also errors, then it calls itself and loops. This will call a stack error.
So, post your code, lets see where the error is.
02-02-2003, 05:02 PM #11
sorry, im a noob...
02-02-2003, 05:09 PM #12
your not a noob, I didnt make myself clear.
Also, where is this script hosted? as in web address?
02-02-2003, 05:13 PM #13
(it might freeze IE)
02-02-2003, 05:14 PM #14
heh, i found out what the problem is... for some reason it doesnt like .gifs... jpegs work fine... hrm, thats odd
anyone know WHY this is?
02-02-2003, 05:38 PM #15
Both links just worked fine for me . Odd.