I all, really hope someone can help. Never used PHP before and below I have script to increase a web address and list them in a html document. I am creating 20000 web addresses and most of them are duff. Is there away of displaying the size of the download without clicking onto them? Maybe display the size next to the link?
code:
<script type=”text/javascript”>
function showLinks(links){
document.getElementById(“links”).innerHTML = links;
}
//This function actually makes the link list show.
function showLinks(links){
document.getElementById(“links”).innerHTML = links;
}
//This is the function for building the list
function buildList(){
//This is what we use to determine where the loop will start
var start = 1;
//This is what we use to determine where the loop will start
var end = 10;
//This Sets the variable so the += will work inside the ‘While’ function
var links = ”;
//This basically says ‘Does start = end? If not, add another link
while(start <= end){
//This builds the link list, feel free to edit it so it matches your needs
links += ‘<a href=”
/*This checks to see if the list is done being built. If it is, it will call the function that shows the link list
if(start==end)showLinks(links);
//This simply adds 1 to the start variable
start++;
}
}
</script>
<body onload=”buildList()”>
<div id=”links”></div>
</body>
Many Regards Andy