Friday, April 23, 2010

10 second delay then auto redirect from landing page

put javascript code in the head

<script type="text/javascript">

function Func1()
{
//alert("Delayed 3 seconds");
document.location.href='index.php?option=com_content&view=article&id=6&Itemid=1&lang=en';
}

function Func1Delay()

{setTimeout("Func1()", 100000);}

</script>

then in the conditional div put,

<body>

<!-- for landing page session-->

<?php
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {

?>

write landing page html

<script language="javascript">

Func1Delay();
</script>
<?php

} else {

?>

main home page html

<?php
} ?>

</body>


7 comments:

  1. Good job...Thanks! Rayhan, itiw

    ReplyDelete
  2. THANKS SURANJIT! Its informative post. Indeed, its helpful addition and saved many hours of me.
    landing page

    ReplyDelete
  3. Awesome information. I am really surprised with this topic. Keep up the good work and post more here to read. Affordable Logo Design

    ReplyDelete
  4. Thanks for sharing such a wonderful post with us. Fax Less Payday Loan

    ReplyDelete
  5. really interesting post, thanks for the sharing keep more posting like this. payday loanz

    ReplyDelete
  6. With having so much content and articles do you ever run into any issues of plagiarism or copyright violation? My blog has a lot of unique content I’ve either created myself or outsourced but it seems a lot of it is popping it up all over the internet without my authorization. Do you know any solutions to help prevent content from being stolen? airport limousine pearson I’d truly appreciate it.

    ReplyDelete