Forum Moderators: coopster

Message Too Old, No Replies

i need some help to delay the loading of part of the page

         

abdosaad

4:52 pm on Apr 30, 2009 (gmt 0)

10+ Year Member




for example
this is the page
<snip>

i need to delay the appearance on the first add <blue one >

for like 8 or 9 seconds

** if you wait in the page for 15 second you will see that the download link will appear so i want to delay the add before it for 8 second by the same way

i really need your help , thank you any way

[edited by: eelixduppy at 5:07 pm (utc) on April 30, 2009]
[edit reason] no personal URLs, please [/edit]

punisa

9:08 pm on Apr 30, 2009 (gmt 0)

10+ Year Member



You can not post the url, but you can post your code, please do so. We'll take a look.
Judging from this info, I'm already 99% sure we'll have to resolve this with javascript, not the PHP, but let's see the stuff: )

abdosaad

1:40 am on May 1, 2009 (gmt 0)

10+ Year Member



<script type="text/javascript">
<!--
function fc() {
if(c>0){
document.getElementById("dl").innerHTML = ' ';
c=c-1;
setTimeout("fc()", 1000);
} else {
var tt = '<h3 style="font-size:12pt;"><a href="<?php echo $baseurl . "/n.php?u=" . $i; ?>">click here to continue</a></h3>';
document.getElementById("dl").innerHTML = tt;
}
}
var c=15;
if (window.location.hash == "#dlt")
c = 0;
//-->
</script>

<script type="text/javascript">
<!--
fc();
//-->
</script>

eeek

3:52 am on May 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What does that have to do with PHP?