Screen jumps when picture is displayed

[size=10pt]My web site, www.ka3pmw.us uses a table to displat images on the main page. It is working, but the page jumps every time a new picture is displayed. Any ideas?

[php]

KA3PMW Website <!-- body,td,th { color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } body { background-color: #eeeeee; } .urbangreymenu{ width: 190px; /*width of menu*/ } .urbangreymenu .headerbar{ font: bold 13px Verdana; color: white; background: #606060 url(images/downgreen.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/ margin-bottom: 0; /*bottom spacing between header and rest of content*/ text-transform: uppercase; padding: 7px 0 7px 31px; /*31px is left indentation of header text*/ } .urbangreymenu ul{ list-style-type: none; margin: 0; padding: 0; margin-bottom: 0; /*bottom spacing between each UL and rest of content*/ } .urbangreymenu ul li{ padding-bottom: 2px; /*bottom spacing between menu items*/ } .urbangreymenu ul li a{ font: normal 12px Arial; color: black; background: #E9E9E9; display: block; padding: 5px 0; line-height: 17px; padding-left: 8px; /*link text is indented 8px*/ text-decoration: none; } .urbangreymenu ul li a:visited{ color: black; } .urbangreymenu ul li a:hover{ /*hover state CSS*/ color: white; background: black; } fadein { position:relative; height:332px; width:500px; margin:0 auto; background: url("slideshow-bg.png") repeat-x scroll left top transparent; padding: 10px; } fadein img { position:absolute; left:10px; top:10px; } <?php $ip = GetHostByName($REMOTE_ADDR); $HOST= gethostbyaddr($_SERVER['REMOTE_ADDR']); $myFile = "ipaddress.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = "IP address = "; fwrite($fh, $stringData); fwrite($fh,$ip); $stringData = " Host Name = "; fwrite($fh, $stringData); fwrite($fh,$HOST); $stringData = " - Date = "; fwrite($fh, $stringData); $stringData = date("m/d/y: H:i:s",time()); fwrite($fh, $stringData); $stringData = " \r\n"; fwrite($fh, $stringData); fclose($fh); ?>
Please wait while the website is loading...
You are visitor # <?php if (file_exists('./home_file.txt')) { $fil = fopen('./home_file.txt', r); $dat = fread($fil, filesize('./home_file.txt')); echo $dat+1; fclose($fil); $fil = fopen('./home_file.txt', w); fwrite($fil, $dat+1); } else { $fil = fopen('./home_file.txt', w); fwrite($fil, 1); echo '1'; fclose($fil); } ?>
Loading Clock...
[/php][/size]

It’s doesn’t jump in firefox for me. The only time I saw it jump was when the time loaded on the right and the scroll bar displayed for the browser window, which always looks like a jump but it’s just the browser adjusting for additional length so the site moves left a little. Also you visitor count is counting every page load rather than a single time when they first visit, using a cookie would be best for that.

I do wish that they would come up with some rules for browsers. I am using IE9 and Chrome and it jumps in both. As for the count, it is set to show how many times the site is visited, not to just cout a visitor once, so it is working properly. At first I thought you meant that every time you visited a page it wae incrementing.

I was doing some work on it this morning so that may also have been a problem.

Thanks.
Dave

If you simply refresh the page the count increases, I guess if you want it that way then yes it is working, but that isn’t really the most accurate way to count page views.

Sponsor our Newsletter | Privacy Policy | Terms of Service