| code |
<?php
error_reporting(0); #Removes Notices that appear with this code
$count_my_page = ("1.txt");
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
?>
|
| code |
<script language="javascript">
function toggle() {
var linkname = "Link Name" // CHANGE THIS TO THE LINK NAME YOU PUT IN THE A TAG!!!!
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = linkname;
}
else {
ele.style.display = "block";
text.innerHTML = linkname;
}
}
</script>
|
| code |
<div><a href="count2.php" onmouseover="java script:toggle();" onmouseout="javascript:toggle();" id="displayText">Link Name</a><br /> <div id="toggleText" style="display: none;"> <?php $myFile = "1.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 5); fclose($fh); echo $theData; ?> </div></div> |


There is there, is there is...
Add as Neofriend