Jump to content

Simple banner


bobatomik

Recommended Posts

there's my site: cdfrdp.qc.ca/2

its french, but u'll understand quite ez ^^

The fact is that my banner (which cycles throught 1 to 4 and loop) is reloaded with the page

index.php handles these parameters: left, main, quote

 

and the quote code is:

<?php
  $quotenb = $_GET['quotenb'];
  $quote = 'quote/' . $quotenb . '.php';
If (file_exists($quote)) {
include($quote);
} else { 
$quotenb=1;
include('quote/1.php');}
?>

which is in a table...

 

the reload itself is triggered by the included quote

 

code in the <head>:

<META HTTP-EQUIV="Refresh"  CONTENT="10;URL=?<?php echo 'main=' . $_GET['main'] . '&' .'left=' . $_GET['left'] . '&' . 'quotenb=' . ++$quotenb ; ?>">

 

 

That way, it works perfectly but...

I was wondering if there was a way to reload only this "included" instead of reloading all the page because it can be quite annoying to have the page go back to the top each 10 sec (even if I put it 20...)

Link to comment
https://forums.phpfreaks.com/topic/44101-simple-banner/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.