Elxis CMS Forum

Support => General => Topic started by: ROUBOS on November 05, 2009, 03:42:04

Title: Flash on header keeps reloading with every click
Post by: ROUBOS on November 05, 2009, 03:42:04
Hi,
I have a flash header on my site which loads images like a slideshow importing from an xml file.
It works thanks to the support here in the forum.

I was wondering though if it is possible to stop it from reloading every time a menu item is clicked. Does the entire page refresh when clicking a menu link?
I thought that only the main-body would refresh...

thanks
Title: Re: Flash on header keeps reloading with every click
Post by: ks-net on November 05, 2009, 09:40:00
Topic moved here...

*
wrong thought !
*

every menu link pointing to a new page .. just as every(almost)  site out there does.
every page is a new page.

in general you can do this with iframes...but putting your main site in an iframe is not recommended!
first of all.. for the engines...


Title: Re: Flash on header keeps reloading with every click
Post by: xmanhattan on November 05, 2009, 10:30:06
I think this is what you want.  This will show flash only on the front page or a different flash on the other pages.
This goes in your template/index.php file.

Code: [Select]
<div id="mainwrap">

<?php
// php code to change banner according to front page or not
global $option;
if (($option == &#39;com_frontpage&#39;) || ($option == &#39;&#39;)) { ?>

<div id="oktoheader">
<!-- begin - flash or banner here -->  
<!-- end - flash here -->  
</div>
<?php } else { ?>
<div id="oktoheader2">
<!-- begin - flash or banner here -->  
<!-- end - flash here -->  
</div>
<?php ?>

Title: Re: Flash on header keeps reloading with every click
Post by: ks-net on November 05, 2009, 10:39:39
only load in frontpage .. or..
play continuously while browsing site?

i think that the most likely is that he wants slideshow to continue playing while browsing..
Title: Re: Flash on header keeps reloading with every click
Post by: ROUBOS on November 05, 2009, 12:17:03
Yes was hoping to keep the flash playing continuously.
But no.. I hate frames...
Title: Re: Flash on header keeps reloading with every click
Post by: xmanhattan on November 05, 2009, 13:01:47
Then you will probably have to do that with a cookie.