almostbob 866 Retired: passive income ROCKS

Don' worry, az,
'll be me that gets a kicking,
takes about 45-90 minutes for a very sharp mod message,
dos vdanye

almostbob 866 Retired: passive income ROCKS

you are the spammer here and did not use your brain to think before talk. see what i saying the whole sentence before use your dumb brain ok

also master_99 did not say anything about my post, is you the one agree but not related to any of my post, wonder how you survive with your dumb brain

I'm not mature, just old,
I dont care how many a-holes get offended,azetect: five posts zero threads solved, no attaboys
Ardav 1800: posts 237 threads solved, sh_tloads of attaboyson a value scale az, 0-10, you personify zero
STFU
or as a polite person may write,
some solutions under your belt before you get aggressive

diafol commented: Best put down I've read on DW. Still chortling now. +5
almostbob 866 Retired: passive income ROCKS

remove the dimensioning from zero
0pt = 0px = 0%= 0em = 0,
dimensioned zero may put the browser into quirks mode,
it could be as simple as how the browser handles invalid css

almostbob 866 Retired: passive income ROCKS

the image urls are all wrong, some of the spaces are encoded as %20 some are not, on an apache server h is not equal to H, so mixed case filenames are confusing
a url must include a protocol
if a local file, it begins with file: file://localhost/C:/image.jpg and nobody but your login will ever see it
note the difference in slashes between the above and your U:\Bertrand Web Page 2009\BHS WEB\high school\michael-speech.gif which will cause the server to have a small fit

if a 'remote' file the hypertext transfer protocol has no real relationship to the file structure, the html root can be anywhere in the disk file tree, different for each user, and the file may be http://localhost/image.jpg if the root for each user is set to their own folder
Somewhere (usually buried DEEP) in course notes will be a list including base hrefs, at least there should be
for some sites I maintain userfiles can be accessed directly as
http:// ..... ~[user].sitename.com/filename users.sitename.com/[user]/filename www.sitename.com/users/[user]/filename www.sitename.com/~[user]/filename
there is only one copy of the file and apache sorts out the reference,
the risk of confusion is large and quite a few have deleted the 'extra copy' of the file the uploaded, because it was there twice :)

almostbob 866 Retired: passive income ROCKS

return false purpose is to negate the href if javascript is enabled, the onclick attrribute remains, the script will function, the window will resize and then redirect

almostbob 866 Retired: passive income ROCKS

I also have the same problem

Try the same fix
or
post your code for review, thats how it works :'(

almostbob 866 Retired: passive income ROCKS
<?php ob_start("ob_gzhandler"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
</head>
<body><a name='top'></a>
<p style='position:fixed; top:auto; right:0; left:auto; Bottom:0;'>
<a href='..' target='_top'>goto Top</a>
</p>
<?php 
$path="whatever";
$p = split('/', $_SERVER['SCRIPT_FILENAME']);
$script_name = $p[count($p)-1];
$dir_handle = @opendir($path) or die("Unable to open $path");
Function get_Extension($m_FileName){
$path_parts = pathinfo($m_FileName);
if ($path_parts["extension"]) {
$m_Extension = strtolower($path_parts["extension"]);
return(strtoupper($m_Extension)); }
else { return "unknown"; } }
function check_image($filename){
$temp=strtoupper(get_Extension($filename));
if($temp=="PNG")) /*if(($temp=="PNG")||($temp=="JPG")) multiple filetypes */
return (true);
else
return (false); }
 Function get_Files($path) {
 if ($handle = opendir($path)) {	
 while (false !== ($file = readdir($handle))) { 
 if(!is_dir($file) && substr($file,O,1) != "."){				
$m_Files[]=$file;
}}
closedir($handle);	}
if(sizeof($m_Files)>1)
asort($m_Files);
return $m_Files; }
 $files=get_Files($path); 
 $filter_files=array_filter($files,"check_image");
 $maxnr=sizeof($filter_files)-1;
 sort($filter_files);
for ($i=0;$i<sizeof($filter_files);$i++){ echo "$filter_files[$i] <br />"; }
closedir($dir_handle); 
 ?>
</p>
</body></html>
<?php ob_flush(); ?>
almostbob 866 Retired: passive income ROCKS

well considering there arent 35 lines, repost your edited code, so one of the gurus can have an AHA moment
its likely simple, a mismatched set of quotes, but hard to diagnose from an errormessage that has more lines than the code sample

almostbob 866 Retired: passive income ROCKS

the link color you see on pages you visit each day,
reflects the fact you have visited the site before, that link is referenced in your history so shows as 'visited'
If you clear the history, the site link will go back to the standard 'not visited' color.
either you have cleared your browser history, or some maintenance program, (spybot mbam superantispyware, all do it), has cleared your history
the link should return to the 'visited' color until you clear the history again

almostbob 866 Retired: passive income ROCKS

I have a simple portable ide (devphp from sourceforge) installed on a thumbdrive to take to clients offices, they like the image of being able to display php changes locally, but code in notepad++ when actually working

almostbob 866 Retired: passive income ROCKS

that IS the example
that is the entirety of google translator, 1 script call,
assuming your site is properly designed and the menuing system is an include file in each page, you just add the code scrap to , , tutorial , to your menu file and every page gets the google translate box
the translator is intelligent, if you select a language on this page, the language continues on following links to other pages

almostbob 866 Retired: passive income ROCKS

dreamweaver lets you do anything that someone else has already thought of and programmed in.
Not using dreamweaver, lets you do anything that someone else has already thought of, and anything that no-one else has thought of yet

as for the rest of it tutorial

almostbob 866 Retired: passive income ROCKS

embed the google translate widget in your menu include
machine translation is not perfect,
but for an accurate idiomatic human translation you pay too much

<script type='text/javascript' src='http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=150&h=50&title=&border=0&output=js'></script>

set the source language to the correct 2 character setting in the above scrap,(up_source_language=**) or goto google and get a customized translator for your site from the widgets page

almostbob 866 Retired: passive income ROCKS

html does not do what you ask, withiut the assistance of a server script cgi asp php
a form is submitted to something, and that something does the processi ng, there are a number of php contactus scripts prewritten if your server supports php
bignosebird.com as perl cgi
or if you are on a free host with no scripting google for remote hosted mail scripts

almostbob 866 Retired: passive income ROCKS

framesets are old, out of date,
difficult for search engines to index because they always have the same url regardless of content
are oversized as each frame is a complete html file, with all the extra http involved in the transfer

I gave a list of possible topics you may wish to google to get up to date

server includes in shtml
or php includes
or asp includes

probably a good idea to mention thats what they were :P

almostbob 866 Retired: passive income ROCKS

the image has to be inside the <body></body> tags, </body> represents the end of displayable space

almostbob 866 Retired: passive income ROCKS

sorry bloke, without the 'bump' I'd have missed your post

almostbob 866 Retired: passive income ROCKS

google.com US centric
google.co.za Africa centric
latitude longitude only if you are using a geocoder, else they will return undefined

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Map</title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;hl=en&amp;key=ABQIAAAAMyZcwcRoti2iwBokJK2JUhT5nO367DrdQO6qCZ9EALYVXxnLzBTf4gcdFPWcYOz7rnFCjoJLvclb3g" type="text/javascript"></script></head>
<body>
<div id="map" style="width: 1000px; height: 425px"></div>
<a href="http://maps.google.co.za/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=4+chester+drive+bishopscourt&amp;sll=-33.991125,18.442891&amp;sspn=0.010942,0.01929&amp;ie=UTF8&amp;hq=&amp;hnear=4+Chester+Dr+Bishopscourt+Western+Cape&amp;ll=-33.984648,18.447247&amp;spn=0.021707,0.085745&amp;z=16" style="color:#0000FF;text-align:left">View Larger Map</a>
<script type="text/javascript">
var gmarkers = [];
var htmls = [];
var to_htmls = [];
var from_htmls = [];
var i=0;
function tohere(i) {
gmarkers[i].openInfoWindowHtml(to_htmls[i]);
}
function fromhere(i) { gmarkers[i].openInfoWindowHtml(from_htmls[i]); }
// Check to see if this browser can run the Google API
if (GBrowserIsCompatible()) {
// A function to create the marker and set up the event window
function createMarker(point,name,html) {
var marker = new GMarker(point);
// The info window version with the "to here" form open
to_htmls[i] = html + '<br>Directions: <b>To here</b> - <a href="javascript:fromhere(' + i + ')">From here</a>' +
'<br>Start address:<form action="http://maps.google.co.za/maps" method="get" target="_blank">' +
'<input type="text" SIZE=40 MAXLENGTH=40 name="saddr" id="saddr" value="" /><br>' +
'<INPUT value="Get Directions" TYPE="SUBMIT">' +
'<input type="hidden" name="daddr" value="' + name + '"/>';
// The info window version with the "to here" form open
from_htmls[i] = html + '<br>Directions: <a href="javascript:tohere(' + i + ')">To here</a> - <b>From here</b>' +
'<br>End address:<form action="http://maps.google.com/maps" method="get"" target="_blank"> ' +
'<input type="text" SIZE=40 MAXLENGTH=40 name="daddr" id="daddr" value="" /> <br> ' +
'<INPUT value="Get Directions" TYPE="SUBMIT"> ' +
'<input type="hidden" name="saddr" value="' + name + '"/> ';
// The inactive version …
almostbob 866 Retired: passive income ROCKS

spaces in file names
http servers do not like spaces %20 html encoding should replace spaces,
framesets are out of date,

  • not indexed well by search engines

server includes in shtml
or php includes
or asp includes
are the current best practice for creating menu systems

to get the site offline
rename the current index.html file to 'somethingelse.html'
create a new index.html file with just a ,page under development. message
when you want to look type in the full url to somethingelse.html

when its up n running, delete index.html rename somethingelse.html index.html

almostbob 866 Retired: passive income ROCKS

Espresso, from the machine I bought off ebay, the machine is great,
Canada does not have coffee,
stores sell packaged floor sweepings and call it coffee
Going back to Oz for 8 months in Sep, going to bring back a suitcase full of coffee, olivce oil, vegemite

almostbob 866 Retired: passive income ROCKS

please post the code,
not a link to the page

almostbob 866 Retired: passive income ROCKS

to Ardav
yeah, ::- in as much as the google maps page is usually accessed from a html form, and the most reasonable cause is the OP has leftout or misspelled a required hidden input field
its about as much html as anything else, )

To the OP
post your code
the google maps api,
posted in the googlemaps online reference, is finicky
you may have simply leftout or misspelled a required hidden input field

almostbob 866 Retired: passive income ROCKS
extract($_POST);
almostbob 866 Retired: passive income ROCKS

I took your css and pulled all the declarations into order,, first to last within element name,
There are multiple declarations of the same element scattered throughout the file, many of them contradict each other.
Its no wonder the effect is not quite as you expect, as each later declaration changes something of the previous ones
If you collect the effect you do want for each declared element, your css may be much smaller, and appear as you expect onscreen

you can remove any part of a declaration begin in HTML or *, its redundant everything is the child of html that is the child of global * html p or html p or * p is just p

almostbob 866 Retired: passive income ROCKS

<div onmouseover='whatever'><span>bla bla</span<p>bla bla bla</p></div>

almostbob 866 Retired: passive income ROCKS

How did you access/view the CSS accessed by their script?

Ryan

I read the javascript from the link in your code found the css ref

almostbob 866 Retired: passive income ROCKS

look for a section in the google script code &hl=** where ** is the two letter abbreviation for the language and change it to &hl=en the original page had tulips windmills and sabots
html entities... <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;hl=nl&amp;key=" type="text/javascript"></script> becomes <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;hl=en&amp;key=" type="text/javascript"></script>

almostbob 866 Retired: passive income ROCKS

like everybody else says
CSS is the language of layout
as html is the language of markup
its structured text, pretty easy to learn, pretty easy to build up into spectacular effects
all the drop down menus on this site are just css effects and <ul><li></li></ul> unordered lists

Theres nothing to buy, nothing to download except some helpscreens if you really get into it
you can write it in notepad if you must
or notepad2 notepad++ with code syntax highlighting, any ide, any purchased software you already have

Forward => to php & css (Gold)

almostbob 866 Retired: passive income ROCKS

rewrite the question and explain what you are trying to do
this forum is for CSS,
cascading style sheets
not for
counter strike source

almostbob 866 Retired: passive income ROCKS

thinking carefully and slowly,
'obvious idiocy in the code structure' seems to be an understatement
thanks cfrog

extract($row) destroys the $row array and creates variables of its key;value pairs

comment out // extract[$row]; and try the original page again

almostbob 866 Retired: passive income ROCKS

I have no idea, my dummy database had all text fields, and the code functions, thinkning
thought: amend the fieldnames of your existing code either as $variable or remove the extract() code
I have very obviously made an incorrect assumption about the source data somewhere
or made an obvious idiocy in the code structure that should be jumping out at me and isnt

almostbob 866 Retired: passive income ROCKS

that mod_rewrite kind of thing,
is a text file,
like php html cgi asp,
it just tells the server to do something as any other script
it sits in a file called .htaccess (nothing.htaccess just an extension name) in the root folder of the site

if the result isnt what you expect when you type http://mysite.com?this=that&theother you can always delete the .htaccess file without any problem
If you are on an apache hosted site it might be worth the time to paste those five lines (blank before and after the code) to a text file called .htaccess and ftp it to your site to check if it works
bloody easier way to fix it than php scripting
it wasnt that long ago that a person wouldnt consider server side scripts php asp perl for their own use, too hard basket

almostbob 866 Retired: passive income ROCKS
<?php
$con = mysql_connect("...","...","...");
if (!$con)  {  die('Could not connect: ' . mysql_error());  }
mysql_select_db("...", $con);
$result = mysql_query("SELECT * FROM photo_albums ORDER BY uptime DESC");
while($row = mysql_fetch_array($result))  {
echo "<div class='photoThumb'>";
."<a href='viewAlbum.php?aid='$row['aid']'>";
."<img src='$row['filepath']$row['filename']' border='0' />";
.'</a><br/><span class="thumbText">';
."<a href='viewAlbum.php?aid='$row['aid']'>$row['stitle']</a><br/>";
."$row['photog']</span></div>";
}
mysql_close($con); ?>

to my mind once the array $row is extracted $row[variable] ceases to exist and $variable is created

<?php
$con = mysql_connect("...","...","...");
if (!$con) { die('Could not connect: ' . mysql_error()); }
mysql_select_db("...", $con);
$aid = $_GET['aid'];
$select = ("SELECT * FROM 'pictures' WHERE 'aid' = '$aid'");
$result = mysql_query($select) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
extract ($row);
echo "<div class='photoThumb'>";
."<a href='$filepath$filename'>";
."<img src='$filepath$filename' rel='lightbox[\"$aid\"]' border='0' width='100px' />";
."</a><br/></div>";
}
mysql_close($con); ?>

or

<?php
$con = mysql_connect("...","...","...");
if (!$con) { die('Could not connect: ' . mysql_error()); }
mysql_select_db("...", $con);
$aid = $_GET['aid'];
$select = ("SELECT * FROM 'pictures' WHERE 'aid' = '$aid'");
$result = mysql_query($select) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo "<div class='photoThumb'>";
."<a href='$row['filepath']$row['filename']'>";
."<img src='$row['filepath']$row['filename']' rel='lightbox[\"$aid\"]' border='0' width='100px' />";
."</a><br/></div>";
}
mysql_close($con); ?>

dquotes " let php parse the text in the echo statments for variables, (lazy)

almostbob 866 Retired: passive income ROCKS

assuming apache server
I do stuff like that in mod_rewrite on the server .htaccess file

RewriteEngine on
Rewritecond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
// this line blank

(blank lines before and after code)
ref: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

if the url does not begin with www.mysite.com replace it with www.mysite.com
append everything after mysite.com to the new url
tell the browser this is a permanent redirect and alter bookmarks to the correct url

almostbob 866 Retired: passive income ROCKS

Experts built the Titanic
Amateurs built the Ark

almostbob 866 Retired: passive income ROCKS

Teachers are not paid enough,
no matter how much
its not enough

almostbob 866 Retired: passive income ROCKS

AAT is the largest land area in the world so not nice to forget it

<?php
$aussie_states = array(
'AAT' => 'Australian Antarctic Territory',
'ACT' => 'Australian Capital Territory',
'JBT' => 'Jervis Bay Territory',
'NSW' => 'New South Wales',
'NT' => 'Northern Territory',
'QLD' => 'Queensland',
'SA' => 'South Australia',
'TAS' => 'Tasmania',
'VIC' => 'Victoria',
'WA' => 'Western Australia'
);
?>
almostbob 866 Retired: passive income ROCKS

jems, caperjack is right

whether you think you can, or think you can't, you are right

so open the case and look inside
its easier than you think it will be
there are utube videos on howto remove a drive

the power cables have polarised connectors so they only fit 1 way
data cables are striped on one end, connect the cables the same way round as you take them off
If after opening it and having a look, it still seems beyond you, then take it to the shop knowing at least what they are going to do
If the drive isnt karked, only the motherboard, this repair is pisseasy
there are utube videos on howto remove a drive

almostbob 866 Retired: passive income ROCKS
if ($number > 2) { // we get 3 images followed by a break.	echo "</br>"; $number = 0;

may cause validation issues

if ($number > 2) { // we get 3 images followed by a break.	echo "<br />"; $number = 0;

may not

almostbob 866 Retired: passive income ROCKS

Thank you to all who looked at the code. I'm sorry I didn't post the actual code as suggested in the first response.

It sounds like it's actually a very simple fix, so I'll give your suggestions a try and see if that works... I'm sure it will.

Thanks again!

if the suggestions dont work, post your code, coz its still likely going to be an AHA moment

almostbob 866 Retired: passive income ROCKS

is there anywhere in the css file any declaration for td, input, input.text, files shown not complete, these questions are necessary.

are there any included files, external scripts: trackers; advertising; googlesearchbox, anything at all included in the page from any outside source; often those external files have their own css, declared later in the file than yours & override the earlier declaration,

almostbob 866 Retired: passive income ROCKS

you either have to check, "send pictures with email" excuse me I cant remember the exact settings for every mail program, so the images are included in the body of the mail mime, or as previuosly noted, post the images on the net to a host that can be accessed and use that href for the image src
in OE, (the last thing I setup (gmail doesnt require it, its an online server))
[tools]
[options]
[send]
[x] send pictures with message
[ok] (all the way out)

almostbob 866 Retired: passive income ROCKS

put <br> as the first character of the next element ???

almostbob 866 Retired: passive income ROCKS
<p>&nbsp;</p>

or just css style the margins

element {margin-top:1em;}
almostbob 866 Retired: passive income ROCKS

a:visited { color: 333;} vs a:visited { color:#333;} There are four ways to declare color in css

  1. As a standard color name P {color: green}
  2. As a hexadecimal value P {color: #333333} // note the hash
  3. As an RGB percentage P {color: rgb(70%, 0%, 30%)}
  4. As a decimal value from 0 to 255 P {color: rgb(170, 0, 100)}

none of them are just numeric, in lines 11-22

ref:http://www.devx.com/projectcool/Article/19851

tasteypaste commented: Very concise and helpful. +0
almostbob 866 Retired: passive income ROCKS

the page is not complete, for cutnpaste simplicity i Know, so these may be considered doh questions but,,
Is there a DTD declared as the first line of the file, without a dtd the file is html2 and most styling will not work
Are all those multiple stylesheets inside <style></style> there is one there incomplete, I assume copy/paste issues but have to ask a:visited is defined twice is the code shown, is it defined also in the linked stylesheet, the results may not be as you expect because only the last definition of any element actually does anything

<link href="../soundoff.css" rel="stylesheet" type="text/css" />
<style type='text/css'><!--
.titleText { font-size:36px; font-weight:bold; text-align:center; }
.fontSize { font-size:12px; font-weight:bold; text-align:center; }
.textAlignCent { text-align:center; }
.textFont { color:#CC0000; text-align:center; font-size:18px; }
.firstLine { line-height:13px; text-align:left; vertical-align:top; }
.leftAlign { text-align:left; vertical-align:top; line-height:14pt; }
.topMiddle { text-align:center; vertical-align:top; }
a:link { color:#333333; } //no hash in original code will be ignored
a:visited { color:#666; } // will be ignored because of later declaration
a:visited { color:#333333; } //no hash in original code will be ignored
a:hover { color:#333333; } //no hash in original code will be ignored
a:active { color:#333333; } //no hash in original code will be ignored
#search { position:absolute; width:400; height:20; z-index:2; } /* 400what 20what dimension are important, position:absolutel requires a position as top: left:, top: right:, bottom: left:, bottom: right:, pairs or top: right: bottom: left: */
--></style>

incorrect code puts browsers in unpredictable quirks mode

almostbob 866 Retired: passive income ROCKS

for windows that can be accomplished by dragging the command prompt shortcut onto the desktop then anytime you click it you have a command console
there is bound to be a plugin in one of the shareware/freeware repositories to let you continue the background across the cmd window

still not sure if this is what you mean

almostbob 866 Retired: passive income ROCKS

Thank you so much - its work in IE - life saver!

IE non-compliance issues **expletive deleted**, but IE holds ~85% of all browsers so pages have to work in IE, those code scraps are compliant(just) and work across all browsers

As a reference http://www.browsershots.org creates screenshots of your page in just about every browser as a test bed
its distributed processing, (seti, folding, etc)
you can get screens from whatever browser is online at the time you make the request often 50+


glad to be of help, have a lot of assistancedebt to give back thanks to others here

almostbob 866 Retired: passive income ROCKS

& added to airshow's reply
taking over the hardware, for any purpose, is a typical act of malware.
Browser makers release innumerable updates to separate the browser from contact with the underlying hardware
If you did find such an exploit, browser makers would be quick to close it in case some person with 'less than ideal' intent were to use it for other purposes

almostbob 866 Retired: passive income ROCKS

I don't want this for everyone. This is just for me, for my convenience.

Then for why not put it on a thumbdrive in your pocket