Forum Moderators: open
I would like each Iframe to reload itself after waiting randomly between 10 and 45 sec. and randomly pick a thumbnail from a database by every reload.
Is that possible?
As you can see I'm at the moment just refering to a page src='beesite/inc.random.image.php?time=3' within the Iframe to see if it was working, this should instead be a call for the database, I think :) .
Hope someone knows how to crack this.
echo "<table width='360' height='360' cellpadding='10' background='gfx/Billeder-bg.gif' cellspacing='0' border='0'>\n"; /// Start table for thumbs
echo "<tr>\n"; // First row (out of 3)
echo "<td width='100' height='100'><iframe src='beesite/inc.random.image.php?time=3' scrolling='no' width='100' height='100' frameborder='no' marginwidth='0' marginheight='0'></IFRAME></td>\n";
echo "<td></td>\n";
echo "<td></td>\n";
echo "</tr>\n";
<tr number 2> As the first
<tr number 3> As the first
echo "</table>\n"; // end table for thumbs
:)
It's only a "Priority 2" issue anyway, so it's not essential to cut out refreshes altogether. If the images aren't links, then no worries.
I quite like some autorefreshing pages myself, like linkdup.com, but I just wanted to point out the W3C guidelines here.
W3C Accessibility Guidelines point 7.4: "Until user agents provide the ability to stop the refresh, do not create periodically auto-refreshing pages. This automatic refresh can be very disorienting to some users."
If you're really worried about it, include a link that says "Halt slide show" or something, which downloads the current page but without the <meta> tag -- easy enough to implement in PHP.
Re the meta refresh tag:
<meta http-equiv="refresh" content="10" />
will cause the current document to reload after 10 seconds. As a general rule of thumb, any <meta> tag with an http-equiv attribute in some way affects the behaviour of the browser (such as selecting a particular character set or, as here, causing it to send a request to the server), and may not be relevant to spiders.
[webmasterworld.com...]