4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: callme on May 21, 2006, 09:40:01 AM
-
hello
i am traying to added webcams to my gallery
how it is possible please to change the Template file for JPG to when in the upload the option webcam in cat_id = 48
this template is correct
thanks for your help the is an erreure in the template
<!-- Template file for JPG Files -->
<p align="center"><img src="{media_src}" name="myImageName" >
<input type="hidden" name="cat_id" value="{cat_id}" />
<script language="JavaScript">
if (cat_id=48)
{
time=10000
}
else
{
time=1000000
}
function reloadImage() {
if (document.images) {
document.images.myImageName.src = '{media_src}?' + (new Date()).getTime();
}
setTimeout('reloadImage()',time);
}
setTimeout('reloadImage()',time);
</script>
</p>
-
please help me how i have to correct this template
thanks
-
not knowing the problem makes it very difficult to help...
-
the is an erreure in the template synthaxe
please can you help me thanks
-
maybe instead of
if (cat_id=48)
use:
var cat_id = {cat_id};
if (cat_id==48)
-
hello
i tray your proposition but i have no reloade of the image after the time
thanks for your help
-
hello
please can some one help me
thanks