[Solved] reload picture in a Pivotx page

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

[Solved] reload picture in a Pivotx page

Postby lassowski » Thu Mar 04, 2010 12:44 pm

Hi!
I'm not very experienced with blogs and pivotx. Using Pivotx 2.0 I'm trying to reload a picture in a newly created page by this little snippet of javascript:

Code: Select all
<script language="JavaScript"><!--
function reloadImage() {
    var now = new Date();
    if (document.images) {
        document.images.Storch.src = 'images/webcam.jpg?' + now.getTime();
    }
    setTimeout('reloadImage()',5000);
}

setTimeout('reloadImage()',5000);
//--></script>


I inserted the code with the HTML Source Editor in the Main Text box.

Nothing happens automatically, while reloading the whole page shows the new image.

What am I doing wrong here?

Frank

[Edit] This was a javascript error of mine, I didn't define the "Storch" name for the image... Pardon me for this unnecessary posting.[/Edit]
lassowski
 
Posts: 28
Joined: Thu Mar 04, 2010 12:09 pm

Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron