cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I need to refresh a page to see images.

Hi, in order to see picture of the editorial team here http://www.scoot-around.com/about I need to refresh the page, always. Can you please help.

2 REPLIES 2
Super User II
Super User II

Re: I need to refresh a page to see images.

Hi, You can refresh /reload page  by this code

<html>
<head>
<script>
    var newImage = new Image();
function updateImage() {
    if(newImage.complete) {
           newImage.src=document.getElementById("img").src;
           var temp = newImage.src;
           document.getElementById("img").src=newImage.src;
           newImage = new Image();
           newImage.src=temp+"?" + new Date().getTime();

}
setTimeout(updateImage, 1000);
};
</script>
</head>
<body onload="updateImage();">
<img id="img" src="URL" style="position:absolute;top:0;left:0;height:50%;width:50%"/>
</body>
</html>
Zulfiqar Anees | GoDaddy Pro | Founder/CEO at FastTech Media, TechMag, and ZulWeb.

Re: I need to refresh a page to see images.

thank you, Zulfiqar,

 

Though my question was a bit different. Why do I need to refresh a page just to see images executed by a simple code like this one:

 

<div id="team_member">
<img id="photo" typeof="foaf:Image" src="/sites/default/files/adam.png" alt="Adam ROBERTSON ">
<div id="name_title">
<div class="name">Adam NAME</div>
<div class="title">Editor / Film and Theatre</div>
</div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer id enim libero. Vestibulum at finibus sapien. Morbi quis convallis tellus. Suspendisse porttitor feugiat ante, ac molestie erat sagittis a. Sed congue velit ut ornare lacinia. Proin vitae massa consequat, venenatis lorem et, facilisis velit.
</div>

 

Never seen a glitch like this one. So annoying.