Results 1 to 10 of 13
Threaded View
-
27th Oct 2011, 06:00 PM #9It begins...
Quick and messy code, but it works. You'll need to style the DIV elements though.
PHP Code:<?php
if (isset($_GET['link']))
{
$link = trim($_GET['link']);
}
?>
<script type="text/javascript"><!--
function ReplaceContentInContainer(id,content) {
var container = document.getElementById(id);
container.innerHTML = content;
}
//--></script>
<div
id="example3div"
style="border-style:dotted;
padding:10px;
font-size:24px;
width:200px;
text-align:center;">
</div>
<script type="text/javascript"><!--
var containerID = "example3div";
var number = 10; //change to no. of secs to wait
var timerID = setInterval("CountdownTimer()",1000);
function CountdownTimer() {
if(number > 1) {
number--;
ReplaceContentInContainer(containerID,number);
}
else {
clearInterval(timerID);
ReplaceContentInContainer(containerID,'<a href="<?php echo $link; ?>"><?php echo $link; ?></a>');
}
}
//--></script>
- Copy the code, save it to a file. Save file as .php (anyfile.php).
- Link in the formatCode:http://example.com/file.php?link=http://filehost.com/file.ext
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Simple Logo Needed
By CammyD in forum Graphics AreaReplies: 6Last Post: 25th May 2012, 07:51 PM -
Needed Simple Link shortenin script full page
By ECW in forum Web Application/Script SupportReplies: 1Last Post: 7th Jan 2012, 03:42 AM -
[Hiring] Coder - Simple Link Checker Script
By viruz99 in forum Completed TransactionsReplies: 4Last Post: 16th Dec 2011, 06:41 PM -
A simple clarification needed
By Funny in forum File Host DiscussionReplies: 2Last Post: 10th Aug 2011, 04:14 PM -
Simple jQuery help needed
By Netguy in forum Web Development AreaReplies: 6Last Post: 4th Jan 2011, 10:20 AM
themaManager - edit and manage...
Version 4.19 released. Open older version (or...