pvg1975
asked on
Refresh Image every 10 seconds
Hello Guys,
How can refresh this link:
<a href="javascript:this.newW indow = window.open(https://secure.mywebsite.com/client2/rchat.asp?acct=45545454,'Trilogy','toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,width=600,height=450,replace=no');this.newWindow.focus()"><img src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0"></a>
Every 10 seconds (in the same line of code)?
Thanks.
How can refresh this link:
<a href="javascript:this.newW
Every 10 seconds (in the same line of code)?
Thanks.
ASKER
Hello Ronnaan,
I am looking to put the script in the same line than the original one:
<a href="javascript:this.newW indow = window.open(https://secure.mywebsite.com/client2/rchat.asp?acct=45545454,'Trilogy','toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,width=600,height=450,replace=no');this.newWindow.focus()"><img src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0"></a>
I am looking to put the script in the same line than the original one:
<a href="javascript:this.newW
<a href="javascript:this.newW indow = window.open(https://secure.mywebsite.com/client2/rchat.asp?acct=45545454,'Trilogy','toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,width=600,height=450,replace=no');this.newWindow.focus()">
<img id="myImage" src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0">
<script type="text/javascrïpt>"
function reloadImage() {
id = 'myImageId';
im = document.getElementById(id );
src = im.srcl
im.src = '';
im.src = src;
}
setInterval('reloadImage() ', 10000);
</script>
</a>
-r-
<img id="myImage" src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0">
<script type="text/javascrïpt>"
function reloadImage() {
id = 'myImageId';
im = document.getElementById(id
src = im.srcl
im.src = '';
im.src = src;
}
setInterval('reloadImage()
</script>
</a>
-r-
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Zvonko!
Yes, that's what I am looking for, but it didn't work (is not refreshing)
Yes, that's what I am looking for, but it didn't work (is not refreshing)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then have
<script type="text/javascrïpt>"
function reloadImage() {
id = 'myImageId';
im = document.getElementById(id
src = im.srcl
im.src = '';
im.src = src;
}
</script>
<body onload="setInterval('reloa
Not sure if you want to have added a random var?